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!
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!
FS#5813 - lshwd 1.1.3-4 does not compile
Attached to Project:
Arch Linux
Opened by Karolina Lindqvist (karolinali) - Friday, 10 November 2006, 16:38 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 11 November 2006, 10:58 GMT
Opened by Karolina Lindqvist (karolinali) - Friday, 10 November 2006, 16:38 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 11 November 2006, 10:58 GMT
|
DetailsI could not get lshwd to compile cleanly due missing reference to -lz in the makefile.
The following patches fixes the problem: +++ PKGBUILD 2006-11-10 17:25:17.000000000 +0100 @@ -9,13 +9,14 @@ depends=('pciutils' 'usbutils' 'libusb') source=(http://user-contributions.org/projects/lshwd/source/$pkgname-$pkgver.tar.gz hwd - byte.patch) + byte.patch makefile.patch) md5sums=(493ae06aada341f0bde063aab3c4167f 42d52005cce7b05c528d07424313769e 1b6ef6be5b6a20faf32d201a94f92516) build() { cd $startdir/src/$pkgname-$pkgver patch -Np1 -i ${startdir}/src/byte.patch || return 1 + patch -Np1 -i ${startdir}/src/makefile.patch || return 1 make || return 1 install -D -m755 ../hwd $startdir/pkg/etc/rc.d/hwd install -D -m755 lshwd $startdir/pkg/usr/bin/lshwd The file makefile.patch: *** tmp/lshwd-1.1.3/Makefile Fri Mar 4 06:38:21 2005 --- lshwd-1.1.3/Makefile Fri Nov 10 16:22:04 2006 *************** *** 3,9 **** #CC = ncc -ncgcc -ncld -ncfabs CFLAGS =-I. -Wall -O2 #-DDEBUG #-D_GNU_SOURCE ! LIBS = -lpci -lusb OBJFILES = lshwd.c usb_names.c psaux.c pcmcia.c #OBJFILES = lshwd.o usb_names.o psaux.o pcmcia.o --- 3,9 ---- #CC = ncc -ncgcc -ncld -ncfabs CFLAGS =-I. -Wall -O2 #-DDEBUG #-D_GNU_SOURCE ! LIBS = -lpci -lusb -lz OBJFILES = lshwd.c usb_names.c psaux.c pcmcia.c #OBJFILES = lshwd.o usb_names.o psaux.o pcmcia.o |
This task depends upon
Closed by Jan de Groot (JGC)
Sunday, 04 February 2007, 12:33 GMT
Reason for closing: Works for me
Additional comments about closing: This was a bug in pciutils, which suddenly needed zlib. It's either removed from pciutils, or is linked during compile time, which makes sure -lz is no longer needed in apps that link to pciutils.
Sunday, 04 February 2007, 12:33 GMT
Reason for closing: Works for me
Additional comments about closing: This was a bug in pciutils, which suddenly needed zlib. It's either removed from pciutils, or is linked during compile time, which makes sure -lz is no longer needed in apps that link to pciutils.