Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#33879 - [pciutils] build optimization

Attached to Project: Arch Linux
Opened by hi117 (hi117) - Friday, 15 February 2013, 20:09 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 25 February 2013, 16:15 GMT
Task Type General Gripe
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Very Low
Priority Normal
Reported Version 4.0.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:
The build process for pciutils can be optimized by not building the entire project twice.

Here is a patch to only build the part you want in the first pass and to build the entire project in the second pass:
--- PKGBUILD.orig 2013-02-15 15:04:18.804100280 -0500
+++ PKGBUILD 2013-02-15 15:04:28.194102673 -0500
@@ -15,7 +15,7 @@

build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- make OPT="${CFLAGS} -fPIC -DPIC" ZLIB=no SHARED=no PREFIX=/usr SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all
+ make OPT="${CFLAGS} -fPIC -DPIC" ZLIB=no SHARED=no PREFIX=/usr SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man lib/libpci.a
cp lib/libpci.a "${srcdir}/"
make clean
make OPT="${CFLAGS}" ZLIB=no SHARED=yes PREFIX=/usr SHAREDIR=/usr/share/hwdata MANDIR=/usr/share/man all

Steps to Reproduce:
N/A
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Monday, 25 February 2013, 16:15 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in svn

Loading...