pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/56547: Package p5-Socket6-0.29nb2.tgz is compressed by xz not gz -- no update via pkgin possible



>Number:         56547
>Category:       pkg
>Synopsis:       Package p5-Socket6-0.29nb2.tgz is compressed by xz not gz -- no update via pkgin possible
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 13 16:35:00 +0000 2021
>Originator:     Oliver Mueller
>Release:        8.2
>Organization:
self-employed IT consultant, IT journalist, and Sr. Developer at OpenNMS
>Environment:
NetBSD REMOVED 8.2 NetBSD 8.2 (GENERIC) #0: Tue Mar 31 05:08:40 UTC 2020  mkrepro%mkrepro.NetBSD.org@localhost:
/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
When I try to upgrade my installed packages from pkgin I receive these error messages:

```
$ sudo pkgin update
reading local summary...
processing local summary...
processing remote summary (http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/8.2/All)...
pkg_summary.bz2                 100% 3264KB  25.5KB/s   02:08

$ sudo pkgin upgrade
calculating dependencies...done.

1 package to upgrade:
  perl-5.32.1

0 to refresh, 1 to upgrade, 0 to install
0B to download, 1434K to install

proceed ? [Y/n] y
pgrading perl-5.32.1...
pkg_install warnings: 1, errors: 1
pkg_install error log can be found in /var/db/pkgin/pkg_install-err.log
```

Problem listed in log is:
---Dec 13 16:36:11: upgrading perl-5.32.1...
pkg_add: Warning: package `perl-5.32.1' was built for a platform:
pkg_add: NetBSD/i386 8.0 (pkg) vs. NetBSD/i386 8.2 (this host)
pkg_add: Can't open +CONTENTS of depending package p5-Socket6-0.29
pkg_add: 1 package addition failed

Cause of the problem is a wrong compressed tarball:
$ file /var/db/pkgin/cache/p5-Socket6-0.29nb2.tgz
/var/db/pkgin/cache/p5-Socket6-0.29nb2.tgz: XZ compressed data

It's compressed by xz and should be by gzip.

>How-To-Repeat:
Run the following commands on a NetBSD/i386 8.2 host:

1. Put this repository into /usr/pkg/etc/pkgin/repositories.conf:
   http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/$arch/$osrelease/All

2. Refresh local and remote package lists:
   sudo pkgin update

3. Try to install or upgrade p5-Socket6:
   ( cd /var/db/pkgin/cache && sudo pkg_add ./p5-Socket6-0.29nb2 ) # install
   ( cd /var/db/pkgin/cache && sudo pkg_add -U ./p5-Socket6-0.29nb2 ) # upgrade

>Fix:
Decompress /var/db/pkgin/cache/p5-Socket6-0.29nb2.tgz by xz and compress it with gzip:

cp /var/db/pkgin/cache/p5-Socket6-0.29nb2.tgz /tmp/p5-Socket6-0.29nb2.txz
xz -d < /tmp/p5-Socket6-0.29nb2.txz | gzip > /tmp/p5-Socket6-0.29nb2.tgz

Put /tmp/p5-Socket6-0.29nb2.tgz into the repository and regenerate pkg_summary.


Home | Main Index | Thread Index | Old Index