diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
commit | 7b29169fff9e7c624890c5edffe85def8a293136 (patch) | |
tree | 47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/core/lshw | |
parent | c491dea779dac29afff3578bf8245943817c2339 (diff) | |
download | linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2 |
LinHES 6.01.00
Diffstat (limited to 'abs/core/lshw')
-rw-r--r-- | abs/core/lshw/PKGBUILD | 26 | ||||
-rw-r--r-- | abs/core/lshw/abi_stdlib.diff | 10 | ||||
-rw-r--r-- | abs/core/lshw/gcc4.3.patch | 282 |
3 files changed, 318 insertions, 0 deletions
diff --git a/abs/core/lshw/PKGBUILD b/abs/core/lshw/PKGBUILD new file mode 100644 index 0000000..b2d786b --- /dev/null +++ b/abs/core/lshw/PKGBUILD @@ -0,0 +1,26 @@ +# Contributor: Stefano Zamprogno <stefano dot zamprogno at gmail dot com> +# Contributor: Chuck Yang <Chuck.Yang@gmail.com> + +pkgname=lshw +pkgver=B.02.13 +pkgrel=1 +pkgdesc="A small tool to provide detailed information on the hardware configuration of the machine." +url="http://ezix.org/project/wiki/HardwareLiSter" +license=('GPL') +source=(http://ezix.org/software/files/lshw-B.02.13.tar.gz abi_stdlib.diff) +md5sums=('e94c728ed037ca706436b5ef71aa392d' '8696f9e8ecb71bedf374b538e8634d2d') +arch=('i686' 'x86_64') +depends=('gtk2') +makedepends=('gcc') + +build() { + cd $startdir/src/$pkgname-$pkgver + + patch -Np0 -i ../abi_stdlib.diff || return 1 + + make || return 1 + make gui || return 1 + make DESTDIR=$startdir/pkg/ install + make DESTDIR=$startdir/pkg/ install-gui +} + diff --git a/abs/core/lshw/abi_stdlib.diff b/abs/core/lshw/abi_stdlib.diff new file mode 100644 index 0000000..8ab61a0 --- /dev/null +++ b/abs/core/lshw/abi_stdlib.diff @@ -0,0 +1,10 @@ +--- src/core/abi.cc 2008-05-24 22:30:21.000000000 -0500 ++++ src/core/abi.cc 2008-05-24 22:29:28.000000000 -0500 +@@ -9,6 +9,7 @@ + #include "osutils.h" + #include <unistd.h> + #include <dirent.h> ++#include <stdlib.h> + + __ID("@(#) $Id: mem.cc 1352 2006-05-27 23:54:13Z ezix $"); + diff --git a/abs/core/lshw/gcc4.3.patch b/abs/core/lshw/gcc4.3.patch new file mode 100644 index 0000000..70b1b12 --- /dev/null +++ b/abs/core/lshw/gcc4.3.patch @@ -0,0 +1,282 @@ +diff -Naur lshw-B.02.12.01-old/src/core/blockio.cc lshw-B.02.12.01/src/core/blockio.cc +--- lshw-B.02.12.01-old/src/core/blockio.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/blockio.cc 2008-05-01 14:35:02.000000000 -0600 +@@ -7,6 +7,8 @@ + #define _LARGEFILE_SOURCE + #define _FILE_OFFSET_BITS 64 + ++#include <cstdlib> ++#include <cstring> + #include "version.h" + #include "blockio.h" + #include "osutils.h" +diff -Naur lshw-B.02.12.01-old/src/core/cdrom.cc lshw-B.02.12.01/src/core/cdrom.cc +--- lshw-B.02.12.01-old/src/core/cdrom.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/cdrom.cc 2008-05-01 14:15:33.000000000 -0600 +@@ -15,6 +15,7 @@ + * + */ + ++#include <limits.h> + #include "version.h" + #include "cdrom.h" + #include "partitions.h" +diff -Naur lshw-B.02.12.01-old/src/core/cpuid.cc lshw-B.02.12.01/src/core/cpuid.cc +--- lshw-B.02.12.01-old/src/core/cpuid.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/cpuid.cc 2008-05-01 14:11:32.000000000 -0600 +@@ -1,3 +1,5 @@ ++#include <cstdlib> ++#include <cstring> + #include "version.h" + #include "cpuid.h" + #include <stdio.h> +diff -Naur lshw-B.02.12.01-old/src/core/cpuinfo.cc lshw-B.02.12.01/src/core/cpuinfo.cc +--- lshw-B.02.12.01-old/src/core/cpuinfo.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/cpuinfo.cc 2008-05-01 14:06:49.000000000 -0600 +@@ -1,3 +1,4 @@ ++#include <cstdlib> + #include "version.h" + #include "cpuinfo.h" + #include "osutils.h" +diff -Naur lshw-B.02.12.01-old/src/core/device-tree.cc lshw-B.02.12.01/src/core/device-tree.cc +--- lshw-B.02.12.01-old/src/core/device-tree.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/device-tree.cc 2008-05-01 14:05:05.000000000 -0600 +@@ -9,6 +9,8 @@ + * + */ + ++#include <cstdlib> ++#include <cstring> + #include "version.h" + #include "device-tree.h" + #include "osutils.h" +diff -Naur lshw-B.02.12.01-old/src/core/fb.cc lshw-B.02.12.01/src/core/fb.cc +--- lshw-B.02.12.01-old/src/core/fb.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/fb.cc 2008-05-01 14:23:24.000000000 -0600 +@@ -4,6 +4,8 @@ + * + */ + ++#include <cstdlib> ++#include <cstring> + #include "version.h" + #include "fb.h" + #include <sys/types.h> +diff -Naur lshw-B.02.12.01-old/src/core/hw.cc lshw-B.02.12.01/src/core/hw.cc +--- lshw-B.02.12.01-old/src/core/hw.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/hw.cc 2008-05-01 13:59:33.000000000 -0600 +@@ -7,10 +7,12 @@ + #include <vector> + #include <map> + #include <sstream> +-#include <unistd.h> ++#include <stdlib.h> + #include <stdio.h> ++#include <string.h> + #include <ctype.h> + #include <unistd.h> ++#include <limits.h> + #include <sys/utsname.h> + + using namespace hw; +diff -Naur lshw-B.02.12.01-old/src/core/ide.cc lshw-B.02.12.01/src/core/ide.cc +--- lshw-B.02.12.01-old/src/core/ide.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/ide.cc 2008-05-01 14:13:01.000000000 -0600 +@@ -10,6 +10,8 @@ + * by calling scan_disk() and scan_cdrom(), as appropriate. + */ + ++#include <cstdlib> ++#include <cstring> + #include "version.h" + #include "cpuinfo.h" + #include "osutils.h" +diff -Naur lshw-B.02.12.01-old/src/core/ideraid.cc lshw-B.02.12.01/src/core/ideraid.cc +--- lshw-B.02.12.01-old/src/core/ideraid.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/ideraid.cc 2008-05-01 14:44:23.000000000 -0600 +@@ -3,6 +3,8 @@ + * + */ + ++#include <cstdlib> ++#include <cstring> + #include "version.h" + #include "cpuinfo.h" + #include "osutils.h" +diff -Naur lshw-B.02.12.01-old/src/core/lvm.cc lshw-B.02.12.01/src/core/lvm.cc +--- lshw-B.02.12.01-old/src/core/lvm.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/lvm.cc 2008-05-01 14:40:42.000000000 -0600 +@@ -9,6 +9,8 @@ + * + */ + ++#include <cstdlib> ++#include <cstring> + #include "version.h" + #include "lvm.h" + #include "osutils.h" +diff -Naur lshw-B.02.12.01-old/src/core/mounts.cc lshw-B.02.12.01/src/core/mounts.cc +--- lshw-B.02.12.01-old/src/core/mounts.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/mounts.cc 2008-05-01 14:54:07.000000000 -0600 +@@ -4,6 +4,8 @@ + * + */ + ++#include <cstdlib> ++#include <cstring> + #include "version.h" + #include "mounts.h" + #include "osutils.h" +diff -Naur lshw-B.02.12.01-old/src/core/osutils.cc lshw-B.02.12.01/src/core/osutils.cc +--- lshw-B.02.12.01-old/src/core/osutils.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/osutils.cc 2008-05-01 14:08:08.000000000 -0600 +@@ -1,3 +1,4 @@ ++#include <cstring> + #include "version.h" + #include "osutils.h" + #include <sstream> +diff -Naur lshw-B.02.12.01-old/src/core/parisc.cc lshw-B.02.12.01/src/core/parisc.cc +--- lshw-B.02.12.01-old/src/core/parisc.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/parisc.cc 2008-05-01 14:28:11.000000000 -0600 +@@ -9,6 +9,7 @@ + * + */ + ++#include <cstdlib> + #include "version.h" + #include "device-tree.h" + #include "osutils.h" +diff -Naur lshw-B.02.12.01-old/src/core/partitions.cc lshw-B.02.12.01/src/core/partitions.cc +--- lshw-B.02.12.01-old/src/core/partitions.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/partitions.cc 2008-05-01 14:33:22.000000000 -0600 +@@ -14,6 +14,8 @@ + #define _LARGEFILE_SOURCE + #define _FILE_OFFSET_BITS 64 + ++#include <cstdlib> ++#include <cstring> + #include "version.h" + #include "partitions.h" + #include "blockio.h" +diff -Naur lshw-B.02.12.01-old/src/core/pci.cc lshw-B.02.12.01/src/core/pci.cc +--- lshw-B.02.12.01-old/src/core/pci.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/pci.cc 2008-05-01 14:09:46.000000000 -0600 +@@ -1,3 +1,5 @@ ++#include <cstdlib> ++#include <cstring> + #include "version.h" + #include "pci.h" + #include "osutils.h" +diff -Naur lshw-B.02.12.01-old/src/core/pcmcia.cc lshw-B.02.12.01/src/core/pcmcia.cc +--- lshw-B.02.12.01-old/src/core/pcmcia.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/pcmcia.cc 2008-05-01 14:45:40.000000000 -0600 +@@ -1,3 +1,4 @@ ++#include <cstdlib> + #include "version.h" + #include "pcmcia.h" + #include "osutils.h" +diff -Naur lshw-B.02.12.01-old/src/core/pcmcia-legacy.cc lshw-B.02.12.01/src/core/pcmcia-legacy.cc +--- lshw-B.02.12.01-old/src/core/pcmcia-legacy.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/pcmcia-legacy.cc 2008-05-01 14:17:18.000000000 -0600 +@@ -1,3 +1,5 @@ ++#include <cstdlib> ++#include <cstring> + #include "version.h" + #include "pcmcia-legacy.h" + #include "osutils.h" +diff -Naur lshw-B.02.12.01-old/src/core/pnp.cc lshw-B.02.12.01/src/core/pnp.cc +--- lshw-B.02.12.01-old/src/core/pnp.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/pnp.cc 2008-05-01 14:21:45.000000000 -0600 +@@ -6,6 +6,7 @@ + * + * + */ ++#include <cstdlib> + #include "version.h" + #include "pnp.h" + +diff -Naur lshw-B.02.12.01-old/src/core/print.cc lshw-B.02.12.01/src/core/print.cc +--- lshw-B.02.12.01-old/src/core/print.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/print.cc 2008-05-01 14:02:00.000000000 -0600 +@@ -7,6 +7,8 @@ + * + */ + ++#include <cstdlib> ++#include <cstring> + #include "print.h" + #include "options.h" + #include "version.h" +diff -Naur lshw-B.02.12.01-old/src/core/scsi.cc lshw-B.02.12.01/src/core/scsi.cc +--- lshw-B.02.12.01-old/src/core/scsi.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/scsi.cc 2008-05-01 14:18:40.000000000 -0600 +@@ -1,3 +1,5 @@ ++#include <cstdlib> ++#include <cstring> + #include "version.h" + #include "mem.h" + #include "cdrom.h" +diff -Naur lshw-B.02.12.01-old/src/core/smp.cc lshw-B.02.12.01/src/core/smp.cc +--- lshw-B.02.12.01-old/src/core/smp.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/smp.cc 2008-05-01 14:56:39.000000000 -0600 +@@ -4,6 +4,7 @@ + * + */ + ++#include <cstring> + #include "version.h" + #include "smp.h" + #include <sys/types.h> +diff -Naur lshw-B.02.12.01-old/src/core/spd.cc lshw-B.02.12.01/src/core/spd.cc +--- lshw-B.02.12.01-old/src/core/spd.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/spd.cc 2008-05-01 14:20:10.000000000 -0600 +@@ -1,3 +1,5 @@ ++#include <cstdlib> ++#include <cstring> + #include "version.h" + #include "spd.h" + #include "osutils.h" +diff -Naur lshw-B.02.12.01-old/src/core/sysfs.cc lshw-B.02.12.01/src/core/sysfs.cc +--- lshw-B.02.12.01-old/src/core/sysfs.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/sysfs.cc 2008-05-01 14:26:29.000000000 -0600 +@@ -4,6 +4,7 @@ + * + */ + ++#include <cstring> + #include "version.h" + #include "sysfs.h" + #include "osutils.h" +diff -Naur lshw-B.02.12.01-old/src/core/usb.cc lshw-B.02.12.01/src/core/usb.cc +--- lshw-B.02.12.01-old/src/core/usb.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/usb.cc 2008-05-01 14:24:55.000000000 -0600 +@@ -7,6 +7,8 @@ + #define _GNU_SOURCE + #endif + ++#include <cstdlib> ++#include <cstring> + #include "version.h" + #include "usb.h" + #include "osutils.h" +diff -Naur lshw-B.02.12.01-old/src/core/volumes.cc lshw-B.02.12.01/src/core/volumes.cc +--- lshw-B.02.12.01-old/src/core/volumes.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/core/volumes.cc 2008-05-01 14:50:09.000000000 -0600 +@@ -6,6 +6,8 @@ + #define _LARGEFILE_SOURCE + #define _FILE_OFFSET_BITS 64 + ++#include <cstdlib> ++#include <cstring> + #include "version.h" + #include "volumes.h" + #include "blockio.h" +diff -Naur lshw-B.02.12.01-old/src/lshw.cc lshw-B.02.12.01/src/lshw.cc +--- lshw-B.02.12.01-old/src/lshw.cc 2008-05-01 13:22:58.000000000 -0600 ++++ lshw-B.02.12.01/src/lshw.cc 2008-05-01 14:58:24.000000000 -0600 +@@ -1,3 +1,5 @@ ++#include <cstdlib> ++#include <cstring> + #include "hw.h" + #include "print.h" + #include "main.h" |