newer version of sys-apps/hwinfo available
Created attachment 91324 [details] sys-apps/hwinfo-12.29.ebuild ebuild for sys-apps/hwinfo
Created attachment 91325 [details, diff] files/hwinfo-12.29-gentoo.patch This patches sys-apps/hwinfo to compile on Gentoo. It removes one portion of code that uses TIOCGDEV which is SuSE-specific. This part taken from Debian. It also uses wireless_copy.h from wpa_supplicant as our current version of kernel headers don't have the relevant information. Idea also taken from Debian. The full patch is 45K mainly because it contains wireless_copy.h, so an alternative would be to also download wpa_supplicant in the ebuild and copy the wireless_copy.h out of it.
Created attachment 91327 [details, diff] files/hwinfo-12.29-gentoo.patch Submitted wrong version of patch before. This one uses the CFLAG -fPIC as did the upstream Makefile to avoid TEXTRELs.
13.0 in the tree now, using debian patchset -4.
Created attachment 92492 [details, diff] files/hwinfo-13.0-makefile-fixes.patch (In reply to comment #4) > 13.0 in the tree now, using debian patchset -4. > 13.0 doesn't compile with gcc 3.4.6, -Wno-pointer-sign doesn't exist. It also doesn't compile with custom CFLAGS, (-O2 -g are hardcoded in the Makefile). The attached patch fixes this.
sys-apps/hwinfo-13.0 doesn't contain all the fixes in the original ebuild
sys-apps/hwinfo-13.0 doesn't compile with the stable sys-kernel/linux-headers-2.6.11-r2 The wireless_copy.h is needed in that case (See comment 2) gcc -c -fPIC -O2 -march=pentium-m -pipe -fomit-frame-pointer -I../../src/hd -I /usr/include/dbus-1.0 -I /usr/lib64/dbus-1.0/include -I /usr/lib/dbus-1.0/include wlan.c wlan.c: In function `wpa_driver_wext_set_wpa': wlan.c:1065: error: `SIOCSIWAUTH' undeclared (first use in this function) wlan.c:1065: error: (Each undeclared identifier is reported only once wlan.c:1065: error: for each function it appears in.) wlan.c: In function `wpa_driver_wext_set_auth_alg': wlan.c:1080: error: `IW_AUTH_ALG_OPEN_SYSTEM' undeclared (first use in this function) wlan.c:1082: error: `IW_AUTH_ALG_SHARED_KEY' undeclared (first use in this function) wlan.c:1084: error: `IW_AUTH_ALG_LEAP' undeclared (first use in this function) wlan.c:1092: error: `IW_AUTH_80211_AUTH_ALG' undeclared (first use in this function) wlan.c:1098: error: `SIOCSIWAUTH' undeclared (first use in this function) wlan.c: In function `wpa_driver_wext_set_key': wlan.c:1114: error: `IW_ENCODE_SEQ_MAX_SIZE' undeclared (first use in this function) wlan.c:1118: error: dereferencing pointer to incomplete type wlan.c:1121: error: dereferencing pointer to incomplete type wlan.c:1128: error: dereferencing pointer to incomplete type wlan.c:1132: error: dereferencing pointer to incomplete type wlan.c:1132: error: `IW_ENCODE_EXT_GROUP_KEY' undeclared (first use in this function) wlan.c:1134: error: dereferencing pointer to incomplete type wlan.c:1134: error: `IW_ENCODE_EXT_SET_TX_KEY' undeclared (first use in this function) wlan.c:1138: error: dereferencing pointer to incomplete type wlan.c:1140: error: dereferencing pointer to incomplete type wlan.c:1142: error: invalid use of undefined type `struct iw_encode_ext' wlan.c:1143: error: dereferencing pointer to incomplete type wlan.c:1147: error: dereferencing pointer to incomplete type wlan.c:1147: error: `IW_ENCODE_ALG_NONE' undeclared (first use in this function) wlan.c:1150: error: dereferencing pointer to incomplete type wlan.c:1150: error: `IW_ENCODE_ALG_WEP' undeclared (first use in this function) wlan.c:1153: error: dereferencing pointer to incomplete type wlan.c:1153: error: `IW_ENCODE_ALG_TKIP' undeclared (first use in this function) wlan.c:1156: error: dereferencing pointer to incomplete type wlan.c:1156: error: `IW_ENCODE_ALG_CCMP' undeclared (first use in this function) wlan.c:1164: error: dereferencing pointer to incomplete type wlan.c:1164: error: `IW_ENCODE_EXT_RX_SEQ_VALID' undeclared (first use in this function) wlan.c:1165: error: dereferencing pointer to incomplete type wlan.c:1171: error: `SIOCSIWENCODEEXT' undeclared (first use in this function) make[2]: *** [wlan.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/hwinfo-13.0/work/hwinfo-13.0/src/hd' make[1]: *** [subdirs] Error 2 make[1]: Leaving directory `/var/tmp/portage/hwinfo-13.0/work/hwinfo-13.0/src' make: *** [subdirs] Error 2 !!! ERROR: sys-apps/hwinfo-13.0 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile hwinfo-13.0.ebuild, line 38: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant.
(In reply to comment #5) > 13.0 doesn't compile with gcc 3.4.6, -Wno-pointer-sign doesn't exist. It also > doesn't compile with custom CFLAGS, (-O2 -g are hardcoded in the Makefile). Bug 142542. (In reply to comment #7) > sys-apps/hwinfo-13.0 doesn't compile with the stable > sys-kernel/linux-headers-2.6.11-r2 Bug 143088. Closing this one, not a dumpspace.