Testing wanted: pkgmk with --ignore-new option
Hi there, I've done an update to pkgmk to add symbolic error codes (fairly coarse for now), and to optionally ignore footprint missmatches if no files are missing (also see bug #221 for more information on this). I've prepared an updated pkgutils port; you can get it via httpup sync http://jw.smts.ch/files/crux/ports#pkgutils pkgutils To make prt-get use that new feature, edit /etc/prt-get.conf and add the following line: makecommand pkgmk -in Note that it is recommended to avoid using --ignore-new/-in during packaging, since footprint missmatches should always be looked at in this phase. Please let me know if you have comments or feedback! Cheers, Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
On Wed, Mar 04, 2009 at 19:08:28 +0100, Johannes Winkelmann wrote:
Hi there,
I've done an update to pkgmk to add symbolic error codes (fairly coarse for now), and to optionally ignore footprint missmatches if no files are missing (also see bug #221 for more information on this).
I've prepared an updated pkgutils port; you can get it via httpup sync http://jw.smts.ch/files/crux/ports#pkgutils pkgutils
I've just discovered a problem, I'll upload a new version in a bit and send another mail... sorry for the noise. Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
On Wed, Mar 04, 2009 at 19:22:10 +0100, Johannes Winkelmann wrote: [...]
I've just discovered a problem, I'll upload a new version in a bit and send another mail... sorry for the noise. Fixed; still available from the same place: http://jw.smts.ch/files/crux/ports/pkgutils/
Make sure you use 5.33.1-pre4. Thanks, Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
Hello, Johannes. On Wed, 4 Mar 2009 19:39:05 +0100 Johannes Winkelmann <jw@smts.ch> wrote:
On Wed, Mar 04, 2009 at 19:22:10 +0100, Johannes Winkelmann wrote: [...]
I've just discovered a problem, I'll upload a new version in a bit and send another mail... sorry for the noise. Fixed; still available from the same place: http://jw.smts.ch/files/crux/ports/pkgutils/
Make sure you use 5.33.1-pre4.
I hope there is still some interest in this functionality. I am attaching the patch against pkgutils-5.34.2 (made from the Johannes' provided tarball). -- Mikhail Kolesnik JID: mike_k at jabber.org ICQ: 260259143 IRC: mike_k at freenode/#crux, rusnet/#yalta
On Sat, Sep 12, 2009 at 12:45:36AM +0300, Mikhail Kolesnik wrote:
Hello, Johannes.
On Wed, 4 Mar 2009 19:39:05 +0100 Johannes Winkelmann <jw@smts.ch> wrote:
On Wed, Mar 04, 2009 at 19:22:10 +0100, Johannes Winkelmann wrote: [...]
I've just discovered a problem, I'll upload a new version in a bit and send another mail... sorry for the noise. Fixed; still available from the same place: http://jw.smts.ch/files/crux/ports/pkgutils/
Make sure you use 5.33.1-pre4.
I hope there is still some interest in this functionality. I am attaching the patch against pkgutils-5.34.2 (made from the Johannes' provided tarball).
Thanks. I've splitted the patch into two, one patch for the new error codes and one with the --ignore-new stuff. The later is slightly modified, added the option as comment to pkgmk.conf, added the option to --help output. regards Juergen -- Juergen Daubert | mailto:jue@jue.li Korb, Germany | http://jue.li/crux
On Wed, 04 Mar 2009 19:08:28 +0100 Johannes Winkelmann wrote:
Hi there,
I've done an update to pkgmk to add symbolic error codes (fairly coarse for now), and to optionally ignore footprint missmatches if no files are missing (also see bug #221 for more information on this).
Pkgmk that Han Boetes modified few years back (which I use without problems so far), has something similar wrt footprint mismatches (and a few extra goodies that made my life when making ports a bit easier :) ) e.g (output modified for clarity) =======> WARNING: Footprint mismatch found: MISSING lrwxrwxrwx root/root usr/lib/libpurple-client.so -> libpurple-client.so.0.5.4 MISSING lrwxrwxrwx root/root usr/lib/libpurple-client.so.0 -> libpurple-client.so.0.5.4 MISSING -rwxr-xr-x root/root usr/lib/libpurple-client.so.0.5.4 NEW lrwxrwxrwx root/root usr/lib/libpurple-client.so -> libpurple-client.so.0.5.5 NEW lrwxrwxrwx root/root usr/lib/libpurple-client.so.0 -> libpurple-client.so.0.5.5 NEW -rwxr-xr-x root/root usr/lib/libpurple-client.so.0.5.5 MISSING lrwxrwxrwx root/root usr/lib/libpurple.so -> libpurple.so.0.5.4 MISSING lrwxrwxrwx root/root usr/lib/libpurple.so.0 -> libpurple.so.0.5.4 MISSING -rwxr-xr-x root/root usr/lib/libpurple.so.0.5.4 NEW lrwxrwxrwx root/root usr/lib/libpurple.so -> libpurple.so.0.5.5 NEW lrwxrwxrwx root/root usr/lib/libpurple.so.0 -> libpurple.so.0.5.5 NEW -rwxr-xr-x root/root usr/lib/libpurple.so.0.5.5 NEW -rw-r--r-- root/root usr/share/purple/ca-certs/AOL_Member_CA.pem NEW -rw-r--r-- root/root usr/share/purple/ca-certs/America_Online_Root_Certification_Authority_1.pem NEW -rw-r--r-- root/root usr/share/purple/ca-certs/VeriSign_International_Server_Class_3_CA.pem [u]pdate footprint/[e]rror/[i]gnore footprint mismatch [u/e/i] u =======> Footprint updated. =======> Building `/usr/pkgmk/package/pidgin#2.5.5-1.pkg.tar.gz' succeeded. =======> Leaving fakeroot environment [snip]
Please let me know if you have comments or feedback! Cheers, Johannes
I always wondered why vanilla pkgmk doesn't have something similar, I'm glad to see that it might get such a usefull, imho, feature.Default 'throw an error, remove all' behaviour always seemed a bit abrupt to me, not to mention frustrating when I made a typo in Pkgfile or forgot to remove some junk file, and pkgmk happily deletes both source and built package that took an hour to compile(that was the default behaviour, iirc).Oh, memories, memories ;) I'm sure you'll come up with some nice/elegant/usefull solution, Johannes, you have pretty good track record so far :) Pedja -- Zombie processes haunting the computer
On Sat, Mar 07, 2009 at 03:32:37PM +0100, Predrag Ivanovic wrote:
On Wed, 04 Mar 2009 19:08:28 +0100 Johannes Winkelmann wrote:
Hi there,
I've done an update to pkgmk to add symbolic error codes (fairly coarse for now), and to optionally ignore footprint missmatches if no files are missing (also see bug #221 for more information on this).
Pkgmk that Han Boetes modified few years back (which I use without problems so far), has something similar wrt footprint mismatches (and a few extra goodies that made my life when making ports a bit easier :) )
I always wondered why vanilla pkgmk doesn't have something similar, I'm glad to see that it might get such a usefull, imho, feature.Default 'throw an error, remove all' behaviour always seemed a bit abrupt to me, not to mention frustrating when I made a typo in Pkgfile or forgot to remove some junk file, and pkgmk happily deletes both source and built package that took an hour to compile(that was the default behaviour, iirc).Oh, memories, memories ;) I'm sure you'll come up with some nice/elegant/usefull solution, Johannes, you have pretty good track record so far :)
The reason is simple, unattended installs. The last thing I want is my package manager sitting around waiting for me to tell it what to do until it attempts to compile the next package. Failing the way it does, it the simplest (and imho best) way to do it. -- Lucas Hazel <lucas@die.net.au>
On Sat, Mar 07, 2009 at 03:32:37PM +0100, Predrag Ivanovic wrote:
On Wed, 04 Mar 2009 19:08:28 +0100 Johannes Winkelmann wrote:
Hi there,
I've done an update to pkgmk to add symbolic error codes (fairly coarse for now), and to optionally ignore footprint missmatches if no files are missing (also see bug #221 for more information on this).
Pkgmk that Han Boetes modified few years back (which I use without problems so far), has something similar wrt footprint mismatches (and a few extra goodies that made my life when making ports a bit easier :) )
I always wondered why vanilla pkgmk doesn't have something similar, I'm glad to see that it might get such a usefull, imho, feature.Default 'throw an error, remove all' behaviour always seemed a bit abrupt to me, not to mention frustrating when I made a typo in Pkgfile or forgot to remove some junk file, and pkgmk happily deletes both source and built package that took an hour to compile(that was the default behaviour, iirc). Well, pkgmk only removes src/pkg files when one asks for it (using the '-c/--clean' option), so in normal operation this should never happen. Of course, if there's a build error like the typo in the Pkgfile you mention, no package is created in the first place. To me, this seems the right behaviour, since this only happens during the packaging phase, where we don't want to provide too many shortcuts to avoid problems for
Hi there, On Sun, Mar 08, 2009 at 18:21:09 +1100, lucas@die.net.au wrote: the users later on. In case of footprint mismatches which this patch addresses, the package file is always kept and can be pkgadd'ed if the user is "happy" with the mismatch. The problem so far was that there was no way for tools like prt-get to know that a footprint mismatch happened, and thus it could not ask the user to review it, similar to Han's pkgutils. Also, there was no distinction between "only new files" mismatches (the ones which are typically caused by optional dependencies) and mixed "new/missing" mismatches (which should typically be looked at). Now, the patch did not add this distinction either but added a flag to treat "only new" mismatches as non-error, but maybe it would be better to return an error anyway, and let the caller (user or tools) take this decision. I'll have to think about this a bit more though.
Oh, memories, memories ;) I'm sure you'll come up with some nice/elegant/usefull solution, Johannes, you have pretty good track record so far :) Thanks for your trust :-)
The reason is simple, unattended installs. The last thing I want is my package manager sitting around waiting for me to tell it what to do until it attempts to compile the next package. Failing the way it does, it the simplest (and imho best) way to do it. Yeah, this is important to me as well. However if pkgmk has better return values, there's still the possibiliy to implement (optional) interactive modes in tools.
Somehow related, I was wondering if lack of md5sum and footprint files should be considered an error; I think it should. These files should be created only during packaging, but not when building packages from a published ports tree. Opinions? Cheers, Johannes -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch
Hello, Johannes. On Sun, 8 Mar 2009 11:25:02 +0100 Johannes Winkelmann <jw@smts.ch> wrote:
Somehow related, I was wondering if lack of md5sum and footprint files should be considered an error; I think it should. These files should be created only during packaging, but not when building packages from a published ports tree. Opinions?
Yes and (even if the port's source is fetched from svn/git/whatever during the build process) having an empty '.md5sum' seems more consistent than having no file at all. Could that be enforced on the pkgmk level? Say, having a switch that would make it fail in attempt to build a package from a port with no '.footprint' or '.md5sum'. That switch can be used by default in the prt-get.conf. Port maintainer would create port as usual, but the user would feel himself a little more safer. -- Mikhail Kolesnik JID: mike_k at jabber.org ICQ: 260259143 IRC: mike_k at freenode/#crux, rusnet/#yalta
participants (5)
-
Johannes Winkelmann
-
Juergen Daubert
-
lucas@die.net.au
-
Mikhail Kolesnik
-
Predrag Ivanovic