[sbopkg-discuss] Re: Suggestion: Automatic Rebuild of Installed Packages

Chess Griffin chess at chessgriffin.com
Thu Dec 4 20:15:16 UTC 2008


Robby Workman wrote:
> On Thu, 4 Dec 2008 11:21:04 -0800 (PST)
> samac <cotterochan at googlemail.com> wrote:
> 
>> Hi
>>
>> I don't know if this would be possible, or even desirable, but as
>> Slackware 12.2 is on the horizon it might be worth thinking about.
>>
>> My thoughts are that once Slackware has been updated to 12.2, I will
>> have to re-build all the slackbuild packages that I have installed, so
>> that they take advantage of the newly installed versions. Could this
>> be automated by having a menu entry similar to "List installed Sbo
>> packages", where it lists all the packages installed and pipes it to
>> the build script, then once all the packages are built, has an option
>> to install.
>>
>> I know that I could do all of this one item at a time, but I am
>> essentially a lazy person, and as sbopkg has made administrating
>> slackbuilds so easy, I was hoping that this might be a worthwhile
>> improvement.
> 
> 
> Perhaps a worthy improvement, but without some way to determine the
> order, I'm not sure how doable it is -- e.g. if binX depends on libX,
> then you have to build libX first.  

Indeed, that has been the issue so far.  One improvement I plan to add
after 12.2 is released is the ability to install packages after they are
built using sbopkg's command line interface, and, since it already
builds packages in the order they are listed, you could conceivably
build and install deps and the final pkg in one go.  So, currently you
can do this:

# sbopkg -b "pkg1 pkg2 pkg3"

and it will build (not install) in that order.  By extending it to
installation, you could have:

# sbopkg -i "dep1 dep2 myfavoritepkg"

which would build, and then install, in that order.  I already have this
working for the most part and will commit the code after 12.2 is released.

Once I get this going, then I might be able to do something similar in
the dialog interface.  Perhaps there can be a way for the user to
manually queue up which packages to build and install in the order
presented, like a bulk build/install.  This would essentially, put the
dependency resolution on the user, which is what Slackware does already.
 :-)  I am sure there are some corner cases where this may not work, but
it should cover at least 95% of the software in SBo.

I have not done any of that work yet, but maybe that is something that
can be put on the TODO.

-- 
Chess Griffin
GPG Key:  0x84F0D7B6
http://www.chessgriffin.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://sbopkg.org/pipermail/sbopkg-users/attachments/20081204/991609c4/attachment.asc>


More information about the sbopkg-users mailing list