pkgsrc-Users archive

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

Package suffix isn't set properly when PKG_COMPRESSION is specified



Hi, everyone!

I noticed that setting PKG_COMPRESSION to bzip2 doesn't change the packages suffix.
The option "-F bzip2" is correctly passed to pkg_create, but the package filename suffix remains .tgz.

The following patch fixed this:

root@suri:/usr/pkgsrc/mk/pkgformat# PATH=/pkg/bin:$PATH /pkg/bin/cvs diff .
cvs diff: Diffing .
cvs diff: Diffing pkg
Index: pkg/package.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/pkgformat/pkg/package.mk,v
retrieving revision 1.16
diff -r1.16 package.mk
11a12,19
> .else
> .  if ${PKG_COMPRESSION} == gzip
> PKG_SUFX=	.tgz
> .  elif ${PKG_COMPRESSION} == bzip2
> PKG_SUFX=	.tbz
> .  else
> WARNINGS+=		"Unsupported value for PKG_COMPRESSION"
> .  endif
cvs diff: Diffing pkg/templates
cvs diff: Diffing pkg/tests


--
Aleksej Lebedev


Home | Main Index | Thread Index | Old Index