You are not logged in.

#1 2011-09-13 01:14:17

kjslag
Member
Registered: 2009-11-03
Posts: 43

[SOLVED] makepkg xz compression flags (eg -1)

Compressing built packages takes a long time, especially for large packages. I can't figure out how to add the -1 option to xz. Is that currently possible? Otherwise, I'll add a feature request.

Last edited by kjslag (2011-09-13 02:52:13)

Offline

#2 2011-09-13 01:18:53

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] makepkg xz compression flags (eg -1)

You can change the compression on built packages to something lighter like gzip, or even just leave them as tarballs. See PKGEXT at the bottom of /etc/makepkg.conf

Offline

#3 2011-09-13 01:34:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] makepkg xz compression flags (eg -1)

+1 for tarballs, if you don't mind the extra space they take up.

[karol@black ~]$ tail /etc/makepkg.conf 
#
# WARNING: Do NOT modify these variables unless you know what you are
#          doing.
#
#PKGEXT='.pkg.tar.xz'
PKGEXT='.pkg.tar'
#PKGEXT='.pkg.tar.gz'
SRCEXT='.src.tar.gz'

# vim: set ft=sh ts=2 sw=2 et:
[karol@black xnview]$ file xnview-1.70-5-i686.pkg.tar 
xnview-1.70-5-i686.pkg.tar: POSIX tar archive
[karol@black xnview]$ du -sh xnview-1.70-5-i686.pkg.tar*
5,7M	xnview-1.70-5-i686.pkg.tar
2,6M	xnview-1.70-5-i686.pkg.tar.gz
1,3M	xnview-1.70-5-i686.pkg.tar.xz

https://bugs.archlinux.org/task/24765

Last edited by karol (2011-09-13 01:39:35)

Offline

#4 2011-09-13 02:02:05

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: [SOLVED] makepkg xz compression flags (eg -1)

You can also pass options to gzip, bzip2 and xz using an environment variable (see their man pages, use XZ_OPT for xz). I've tested it and it works fine with makepkg.

Offline

#5 2011-09-13 02:51:55

kjslag
Member
Registered: 2009-11-03
Posts: 43

Re: [SOLVED] makepkg xz compression flags (eg -1)

sweet, thx. plain tarballs are great.

Offline

Board footer

Powered by FluxBB