From phfbettega at gmail.com Fri Oct 7 23:37:22 2016 From: phfbettega at gmail.com (phfbettetga) Date: Fri, 7 Oct 2016 20:37:22 -0300 Subject: [sbopkg-users] Using build option (with -i cli option) prevents sbopkg to use queue Message-ID: Hello, excuse me if this is a problem already discussed, I couldn't find something about. Using aMule as example, I normally do the following: sbopkg -R -k -i aMule There are dependencies, so I choose queue file and sbopkg shows all readme for all files in queue and builds all packages in the right order. But If I want to pass some build option, for example: sbopkg -R -k -i aMule:WEBSERVER=yes with this command sbopkg doesn't consider the queue anymore. It shows only the main package to build, in this case only aMule is presented. I have Slackware 14.2 with sbopkg 0.38.1 installed. Am I doing something wrong or missed some sbopkg usage? Thanks in advance, Paulo From willysr at sbopkg.org Sun Oct 9 00:03:21 2016 From: willysr at sbopkg.org (Willy Sudiarto Raharjo) Date: Sun, 9 Oct 2016 07:03:21 +0700 Subject: [sbopkg-users] Using build option (with -i cli option) prevents sbopkg to use queue In-Reply-To: References: Message-ID: > But If I want to pass some build option, for example: > sbopkg -R -k -i aMule:WEBSERVER=yes > > with this command sbopkg doesn't consider the queue anymore. > It shows only the main package to build, in this case only aMule is > presented. Hi Paulo, have you try sbopkg -R -k -i "aMule:WEBSERVER=yes" ? -- Willy Sudiarto Raharjo -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From phfbettega at gmail.com Sun Oct 9 03:46:48 2016 From: phfbettega at gmail.com (phfbettetga) Date: Sun, 9 Oct 2016 00:46:48 -0300 Subject: [sbopkg-users] Using build option (with -i cli option) prevents sbopkg to use queue In-Reply-To: References: Message-ID: <62054360-a8af-768e-c7d0-33eb93ef69c5@gmail.com> Hi Willy, thanks for reply. Running sbopkg -R -k -i "aMule:WEBSERVER=yes" didn't work, sbopkg still doesn't show the queue. sbopkg -i "aMule:WEBSERVER=yes" didn't work too. (without -k since the packages are already installed) There are other quote combinations that 'sbopkg -h' shows, but I don't know if they are working. I would run something like sbopkg '-i wxPython cryptopp aMule:WEBSERVER=yes' to build aMule with some build option, but sbopkg returns everything else after wxPython as build options to wxPython. -------------- sbopkg '-i wxPython cryptopp aMule:WEBSERVER=yes' One or more build option files for the wxPython SlackBuild script were found: Command line options: cryptopp aMule WEBSERVER="yes" Use (N)one, (C)ommand line options, or (A)bort?: a --------------- On 08-10-2016 21:03, Willy Sudiarto Raharjo wrote: >> But If I want to pass some build option, for example: >> sbopkg -R -k -i aMule:WEBSERVER=yes >> >> with this command sbopkg doesn't consider the queue anymore. >> It shows only the main package to build, in this case only aMule is >> presented. > > > Hi Paulo, > > have you try sbopkg -R -k -i "aMule:WEBSERVER=yes" ? > > > > > _______________________________________________ > sbopkg-users mailing list > sbopkg-users at sbopkg.org > http://sbopkg.org/mailman/listinfo/sbopkg-users > From willysr at sbopkg.org Thu Oct 13 10:14:16 2016 From: willysr at sbopkg.org (Willy Sudiarto Raharjo) Date: Thu, 13 Oct 2016 17:14:16 +0700 Subject: [sbopkg-users] Using build option (with -i cli option) prevents sbopkg to use queue In-Reply-To: <62054360-a8af-768e-c7d0-33eb93ef69c5@gmail.com> References: <62054360-a8af-768e-c7d0-33eb93ef69c5@gmail.com> Message-ID: <377c9a7a-36b4-8e8b-154b-59c6a939953a@sbopkg.org> > Hi Willy, thanks for reply. > Running sbopkg -R -k -i "aMule:WEBSERVER=yes" didn't work, > sbopkg still doesn't show the queue. > > sbopkg -i "aMule:WEBSERVER=yes" didn't work too. > (without -k since the packages are already installed) > > > There are other quote combinations that 'sbopkg -h' shows, > but I don't know if they are working. > I would run something like > sbopkg '-i wxPython cryptopp aMule:WEBSERVER=yes' > > to build aMule with some build option, but sbopkg returns > everything else after wxPython as build options to wxPython. > > -------------- > sbopkg '-i wxPython cryptopp aMule:WEBSERVER=yes' > > One or more build option files for the wxPython > SlackBuild script were found: > > Command line options: cryptopp aMule WEBSERVER="yes" > > Use (N)one, (C)ommand line options, or (A)bort?: a Hi i finally found the problem If you look at the code at these lines https://github.com/sbopkg/sbopkg/blob/master/src/usr/sbin/sbopkg#L3710 sbopkg will only execute one of them, either build option, saved option, or queue, but not all or two of them. For now, i have raised an issue to prevent it to be forgotten https://github.com/sbopkg/sbopkg/issues/22 any help is appreciated :) -- Willy Sudiarto Raharjo -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From phfbettega at gmail.com Thu Oct 13 14:32:17 2016 From: phfbettega at gmail.com (phfbettetga) Date: Thu, 13 Oct 2016 11:32:17 -0300 Subject: [sbopkg-users] Using build option (with -i cli option) prevents sbopkg to use queue In-Reply-To: <377c9a7a-36b4-8e8b-154b-59c6a939953a@sbopkg.org> References: <62054360-a8af-768e-c7d0-33eb93ef69c5@gmail.com> <377c9a7a-36b4-8e8b-154b-59c6a939953a@sbopkg.org> Message-ID: <2fedd71a-9584-dc7c-3352-da5c41b86b37@gmail.com> Hi Willy, the sbopkg script is very complex, I was trying to find were the options are parsed. I don't have experience with large scripts like sbopkg, just $0.02 :) It seems that the var $LDOPTIONS doesn't get set when there are build options declared, since the value ' (Q)ueue,' isn't displayed. Maybe declaring build options prevent sbopkg to search for queue files, or if the search happens, it get lost at some point. On 13-10-2016 07:14, Willy Sudiarto Raharjo wrote: >> Hi Willy, thanks for reply. >> Running sbopkg -R -k -i "aMule:WEBSERVER=yes" didn't work, >> sbopkg still doesn't show the queue. >> >> sbopkg -i "aMule:WEBSERVER=yes" didn't work too. >> (without -k since the packages are already installed) >> >> >> There are other quote combinations that 'sbopkg -h' shows, >> but I don't know if they are working. >> I would run something like >> sbopkg '-i wxPython cryptopp aMule:WEBSERVER=yes' >> >> to build aMule with some build option, but sbopkg returns >> everything else after wxPython as build options to wxPython. >> >> -------------- >> sbopkg '-i wxPython cryptopp aMule:WEBSERVER=yes' >> >> One or more build option files for the wxPython >> SlackBuild script were found: >> >> Command line options: cryptopp aMule WEBSERVER="yes" >> >> Use (N)one, (C)ommand line options, or (A)bort?: a > > Hi > > i finally found the problem > If you look at the code at these lines > https://github.com/sbopkg/sbopkg/blob/master/src/usr/sbin/sbopkg#L3710 > > sbopkg will only execute one of them, either build option, saved option, > or queue, but not all or two of them. > > For now, i have raised an issue to prevent it to be forgotten > https://github.com/sbopkg/sbopkg/issues/22 > > any help is appreciated :) > > > > > _______________________________________________ > sbopkg-users mailing list > sbopkg-users at sbopkg.org > http://sbopkg.org/mailman/listinfo/sbopkg-users > From willysr at sbopkg.org Thu Oct 13 15:21:41 2016 From: willysr at sbopkg.org (Willy Sudiarto Raharjo) Date: Thu, 13 Oct 2016 22:21:41 +0700 Subject: [sbopkg-users] Using build option (with -i cli option) prevents sbopkg to use queue In-Reply-To: <2fedd71a-9584-dc7c-3352-da5c41b86b37@gmail.com> References: <62054360-a8af-768e-c7d0-33eb93ef69c5@gmail.com> <377c9a7a-36b4-8e8b-154b-59c6a939953a@sbopkg.org> <2fedd71a-9584-dc7c-3352-da5c41b86b37@gmail.com> Message-ID: <8110cd60-0dda-9f83-425d-6df893de0bee@sbopkg.org> > Hi Willy, the sbopkg script is very complex, I was trying to find were the > options are parsed. Yes i know, it's quite complex :) > I don't have experience with large scripts like sbopkg, just $0.02 :) > It seems that the var $LDOPTIONS doesn't get set when there are > build options declared, since the value ' (Q)ueue,' isn't displayed. > Maybe declaring build options prevent sbopkg to search for queue files, > or if the search happens, it get lost at some point. It seems when using build options, queue is not yet supported for now -- Willy Sudiarto Raharjo -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: From phfbettega at gmail.com Sun Oct 16 03:01:11 2016 From: phfbettega at gmail.com (phfbettetga) Date: Sun, 16 Oct 2016 01:01:11 -0200 Subject: [sbopkg-users] Using build option (with -i cli option) prevents sbopkg to use queue In-Reply-To: <8110cd60-0dda-9f83-425d-6df893de0bee@sbopkg.org> References: <62054360-a8af-768e-c7d0-33eb93ef69c5@gmail.com> <377c9a7a-36b4-8e8b-154b-59c6a939953a@sbopkg.org> <2fedd71a-9584-dc7c-3352-da5c41b86b37@gmail.com> <8110cd60-0dda-9f83-425d-6df893de0bee@sbopkg.org> Message-ID: Hi Willy, thanks for the info. Thanks Paulo On 13-10-2016 12:21, Willy Sudiarto Raharjo wrote: > > It seems when using build options, queue is not yet supported for now > > > > > _______________________________________________ > sbopkg-users mailing list > sbopkg-users at sbopkg.org > http://sbopkg.org/mailman/listinfo/sbopkg-users >