Mantis - pkg_get
Viewing Issue Advanced Details
4823 regular use major always 2011-09-15 00:23 2011-09-16 13:53
flod  
bonivart  
normal  
closed  
fixed  
none    
none  
0004823: pkgutil 2.5. breaks gpg handling
After updating to 2.5 the gpg check code is broken.
I guess the problem is around line # 764:
        $status = system( "/opt/csw/bin/gpg", split( ' ', $gpghomedir ),
            "$catalog.asc", "2>", "/dev/null" );

I am not sure that stream redirection can be used with the array form of system(). After removing ", "2>", "/dev/null"" everything works again.
The real fix is a question of taste.

--
LANG=C pkgutil -UD
DEBUG:root_path:
DEBUG:Checking binary: /usr/sfw/bin/wget ... OK
DEBUG:wget: /usr/sfw/bin/wget
DEBUG:Checking binary: /bin/gzip ... OK
DEBUG:gzip: /bin/gzip
DEBUG:workdir: /var/opt/csw/pkgutil
DEBUG:pkgdir: /var/opt/csw/pkgutil/packages
DEBUG:arch: i386
DEBUG:os rel: 5.10
DEBUG:primary mirror: http://csw.informatik.uni-erlangen.de/csw/current/i386/5.10 [^]
DEBUG:Catalog http://csw.informatik.uni-erlangen.de/csw/current/i386/5.10 [^] age in days: 0
=> Fetching new catalog and descriptions (http://csw.informatik.uni-erlangen.de/csw/current/i386/5.10) [^] if available ...
--2011-09-15 00:19:44-- http://csw.informatik.uni-erlangen.de/csw/current/i386/5.10/catalog [^]
Resolving www-proxy.rz.uni-ulm.de... 134.60.1.151
Connecting to www-proxy.rz.uni-ulm.de|134.60.1.151|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 623895 (609K) [text/plain]
Saving to: `/var/opt/csw/pkgutil/catalog.csw.informatik.uni-erlangen.de_csw_current_i386_5.10.tmp'

100%[========================================================================================================================================================================>] 623,895 --.-K/s in 0.1s

2011-09-15 00:19:45 (4.49 MB/s) - `/var/opt/csw/pkgutil/catalog.csw.informatik.uni-erlangen.de_csw_current_i386_5.10.tmp' saved [623895/623895]

--2011-09-15 00:19:45-- http://csw.informatik.uni-erlangen.de/csw/current/i386/5.10/descriptions [^]
Resolving www-proxy.rz.uni-ulm.de... 134.60.1.151
Connecting to www-proxy.rz.uni-ulm.de|134.60.1.151|:3128... connected.
Proxy request sent, awaiting response... 200 OK
Length: 179139 (175K) [text/plain]
Saving to: `/var/opt/csw/pkgutil/descriptions.csw.informatik.uni-erlangen.de_csw_current_i386_5.10.tmp'

100%[========================================================================================================================================================================>] 179,139 --.-K/s in 0.02s

2011-09-15 00:19:45 (9.82 MB/s) - `/var/opt/csw/pkgutil/descriptions.csw.informatik.uni-erlangen.de_csw_current_i386_5.10.tmp' saved [179139/179139]

DEBUG:GPG catalog: 1
Checking integrity of /var/opt/csw/pkgutil/catalog.csw.informatik.uni-erlangen.de_csw_current_i386_5.10 with gpg.
DEBUG:CSWcswpki not installed
gpg: Signature made Wed Sep 14 00:34:02 2011 MEST using DSA key ID 9306CC77
gpg: Good signature from "OpenCSW catalog signing <board@opencsw.org>"
DEBUG:GPG signature: Good
usage: gpg [options] [filename]
Catalog signature is not correct!
--
uname -a
SunOS moon 5.10 Generic_147441-01 i86pc i386 i86pc
Issue History
2011-09-15 00:23 flod New Issue
2011-09-15 02:53 bwalton Note Added: 0009260
2011-09-15 11:25 bonivart Status new => assigned
2011-09-15 11:25 bonivart Assigned To => bonivart
2011-09-15 11:26 bonivart Note Added: 0009261
2011-09-15 15:25 flod Note Added: 0009262
2011-09-15 15:54 bonivart Note Added: 0009263
2011-09-15 17:17 flod Note Added: 0009264
2011-09-15 19:48 bwalton Note Added: 0009269
2011-09-15 23:17 flod Note Added: 0009270
2011-09-16 10:18 bonivart Note Added: 0009271
2011-09-16 13:53 bonivart Note Added: 0009272
2011-09-16 13:53 bonivart Status assigned => closed
2011-09-16 13:53 bonivart Resolution open => fixed

Notes
(0009260)
bwalton   
2011-09-15 02:53   
Try the 2.5.1 release...this bug was caught and corrected already.

Thanks
-Ben
(0009261)
bonivart   
2011-09-15 11:26   
Yes, it's fixed in 2.5.1 but that one has not migrated to current/dublin, it's only in unstable. How can I force that?
(0009262)
flod   
2011-09-15 15:25   
Hmm. It's not really perfect when a version with a known bug is released.
2.5.1 was released 2011-09-11 according to the web site.
I got the update to 2.5 at 2011-09-14 via catalog.

Another question is there a web view of the pkgutil repository with diffs / patches?
I only found
https://pkgutil.svn.sourceforge.net/svnroot/pkgutil/ [^]
but thats only trunk/tags and not very helpful to look at the revision history?
(0009263)
bonivart   
2011-09-15 15:54   
You're using current, it has had 2.5 since 2011-09-06 and the bug was not known then of course. v2.5.1 has only been uploaded to unstable, I don't know how to get it to current so people using current will still get 2.5. I'm trying to get help to get 2.5.1 into current.

The repo browser you found can show code diffs between any versions you like. Every released version has a tag so you can see the SVN revision. There's also this page to describe the release: http://pkgutil.wikidot.com/release-history. [^]
(0009264)
flod   
2011-09-15 17:17   
Yes, I am on current.
I update daily per cron via a mirror. So I thought there is a maximum delay of 1 day. No, idea why it takes so long to propagate to the machines.
mirror=http://csw.informatik.uni-erlangen.de/csw/current [^]
Thank you for explaining it.

I didn't know yet that the distibutions are now used actively (current/stable/unstable/testing).

I manually went up some levels
from the referenced
https://pkgutil.svn.sourceforge.net/svnroot/pkgutil/trunk/ [^]
to
https://pkgutil.svn.sourceforge.net/ [^] .
From there one can show diffs. */svnroot/* seems to be more suitable for machines.
(0009269)
bwalton   
2011-09-15 19:48   
http://pkgutil.svn.sourceforge.net/viewvc/pkgutil/trunk/pkgutil?r1=410&r2=412 [^]

That links shows the change required to get gpg working again...is that what you're after?

Thanks
-Ben
(0009270)
flod   
2011-09-15 23:17   
I got pkgutil working with the change I mentioned in the bug report.
I just wanted to know where I could view code changes for the next time :-)

I found some official text about stable and current on
http://www.opencsw.org/use-it/ [^]

"unstable" seems to be mentioned on the wiki in a proposal
http://wiki.opencsw.org/releases-and-staging [^]
I wasn't aware that this is already active.

Anyway in the proposal it says that current will be symlinked to unstable.
So to me it looks like the status now is that the target of the proposal is not yet reached and documentation is missing.
(0009271)
bonivart   
2011-09-16 10:18   
With the help of Maciej v2.5.1 is now in current. :)

Regarding distributions, simply put we have experimental where we put newly built packages to be tested by maintainers and people who want to test new/fixed packages, this is not a complete distribution.

Then we have unstable which is where we upload packages after testing (in experimental). We don't recommend every user to use this distribution.

After that we have current which is what you're using. It's the first level recommended for general use. What is confusing here is that current has also been called unstable but now they will be two different levels.

Going forward we may bring life back to the stable distribution but we have get things settled with the above levels first.
(0009272)
bonivart   
2011-09-16 13:53   
I'm closing this bug now since it's fixed in 2.5.1 and it has been distributed to "current".

Regarding your other questions I encourage you to post on the users mailing list, others may well be interested in this as well. I promise that we will answer there and everyone can read it.