Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139835 - sys-apps/hwinfo-12.29 (version bump)
Summary: sys-apps/hwinfo-12.29 (version bump)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 139837
  Show dependency tree
 
Reported: 2006-07-09 18:54 UTC by Marcus Furlong
Modified: 2006-08-07 07:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
sys-apps/hwinfo-12.29.ebuild (hwinfo-12.29.ebuild,1.02 KB, text/plain)
2006-07-09 18:55 UTC, Marcus Furlong
Details
files/hwinfo-12.29-gentoo.patch (hwinfo-12.29-gentoo.patch,43.05 KB, patch)
2006-07-09 19:01 UTC, Marcus Furlong
Details | Diff
files/hwinfo-12.29-gentoo.patch (hwinfo-12.29-gentoo.patch,43.06 KB, patch)
2006-07-09 20:02 UTC, Marcus Furlong
Details | Diff
files/hwinfo-13.0-makefile-fixes.patch (hwinfo-13.0-makefile-fixes.patch,449 bytes, patch)
2006-07-22 07:05 UTC, Marcus Furlong
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Furlong 2006-07-09 18:54:17 UTC
newer version of sys-apps/hwinfo available
Comment 1 Marcus Furlong 2006-07-09 18:55:23 UTC
Created attachment 91324 [details]
sys-apps/hwinfo-12.29.ebuild

ebuild for sys-apps/hwinfo
Comment 2 Marcus Furlong 2006-07-09 19:01:13 UTC
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.
Comment 3 Marcus Furlong 2006-07-09 20:02:25 UTC
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.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-07-21 21:41:35 UTC
13.0 in the tree now, using debian patchset -4. 
Comment 5 Marcus Furlong 2006-07-22 07:05:06 UTC
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.
Comment 6 Marcus Furlong 2006-07-22 07:05:52 UTC
sys-apps/hwinfo-13.0 doesn't contain all the fixes in the original ebuild
Comment 7 Marcus Furlong 2006-07-22 07:08:07 UTC
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.

Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-08-07 07:25:49 UTC
(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.