are here some SBo developer ?
Hi , i have 2 nice request for sbo repository
All know , after package creation , all the trash files are in /tmp/SBo why ? Here a simply way to clean at the final build process 1 - create a secured subdirectories to work Code:
TMP=${TMP:-/tmp/SBo/$PRGNAM} 2 - after pkg creation , simply Code:
rm -Rf $TMP &>/dev/null NO MORE TRASH IN /tmp ,after package compilations....no danger because TMP are a uniq subdirectory and no delete the other works in process. |
Well, you could argue that a successful build should remove the working files when it's complete. A failed build, on the other hand, should leave the files in place so that you can see how the build failed.
|
Quote:
rm $TMP but TMP now is a /tmp/SBo/$PRGNAME PRGNAM=pepe TMP=${TMP:-/tmp/SBo/$PRGNAM} PKG=$TMP/package-$PRGNAM when make dirs all point to pepe ...pecause PRGNAM is unique per script rm $TMP then remove /tmp/SBo/pepe subdirectory ... ___________________________ I have entirely system scripts build ,similar to sbo , but my scripts grep ever the most new version on project pages , and try to compile it. One gui application , start when system starts , .. run scripts , and when see new versions , gui appears with new pacakges to build... that system is developed for slackware based distro , but some things can go SBo easy if want. example: latest version of ffmpeg Code:
curl -s https://www.ffmpeg.org/download.html | grep latest | head -1 | cut -d "w" -f1 | sed "s/ //g" |
No, you didn't understand him, he said that it is useful to remove the files ONLY if the build is successful.
And I disagree with you, I don't want my packages deleted even if they were successful. Take wine for example, it takes forever for it to build, if the script removes it, I can't even make a backup for later uses without modifying the script. The better approach is for you to clean /tmp acording to your needs. |
Quote:
Its very easy to understand.. ok , test that little modified ... crunch , i try this because little process , around only 20 seconds to pkg creation. TEST , anr return to say something ... Code:
#!/bin/sh |
at the final you have
/tmp/crunch-3.6-i486-1_SBo.tgz and /tmp/SBo ..clean --------------- modifications are very little.. only when all finish # Clean here rm -rf $TMP &>/dev/null and changed # Modified TMP TMP=${TMP:-/tmp/SBo/$PRGNAM} |
USUARIONUEVO, You didn't add anything useful or necessary; nor should you force your opinon onto others. There are some Slackbuild scripts that do add different directory locations, or an option to delete the source and package directory at the end. However, this is more complexity that is strictly needed, and you have not provided a compelling reason for your modification.
Currently, when each SBo script runs, it deletes any old package directories, if they exist, and recreates them. When the script finishes, we have the following: Source files: /tmp/SBo/$PROGNAM-$VERSION Package tree: /tmp/SBo/package-$PROGNAM final package: /tmp/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz Nice and simple. K.I.S.S. You can easily create your own script for cron to periodically delete old entries in /tmp/SBo/ should you decide there is too much junk in /tmp. |
OK , im not force nothing , i say is a more nice end script clean after put me a trash on /tmp/SBo
But , yea , can put a crontab ... but i hope no get you compiling nothing when your crontab go delete /tmp/SBo like as qt5 :D , because you loose. KISS :) |
Quote:
I have tmp mountet to tmpfs, so after a boot it's always clean, that is where the build happens, and configured sbopgk, to place finale packages into my home folder, but you can also set the $OUTPUT variable to the place where you want to have your package, eg home, if you do not use sbopkg so the build is in tmp and the final package where you want, this works already |
Quote:
Quote:
The alternative approach of maximising parallelism within each build (-jn, distcc) doesn't have all that hassle. [1] That classic problem has a classic solution, so never say never ;) |
*removed*
|
Mmm-hmm, whatevs, slackrepo already has ways of handling all those use cases for existing SBo-style SlackBuilds :p
|
Quote:
|
I did not intend to make any kind of personal attack on you GazL and to the extent that post #12 can be read as such I apologise unreservedly for leaving that interpretation open. Quite the reverse, I thought it was interesting that some of your use cases are the same as some of my use cases. Again, if you think my cack-handed attempt at levity is inappropriate then I apologise unreservedly and I hope you'll reconsider blanking your post.
|
I liked USUARIONUEVO
I will incorporate this in my personal slackbuilds Because every after compile i need to enter in /tmp and delete SBo folder |
All times are GMT -5. The time now is 03:12 AM. |