Summary: | net-wireless/madwifi-ng-0.9.3.3 version bump needed for 2.6.23 kernels | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | Steev Klimaszewski (RETIRED) <steev> |
Status: | RESOLVED FIXED | ||
Severity: | trivial | CC: | christian.gmeiner, gengor, gentoo.org, j.thrussell, jieryn, mobile+disabled, pacho, willard.dawson, world.root |
Priority: | High | ||
Version: | 2007.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 195298 | ||
Attachments: |
madwifi-ng-0.9.3.2.ebuild
patch-madwifi-r2630-2.6.23-build-fix.diff |
Description
Juergen Rose
2007-09-12 10:31:19 UTC
This should be filed upstream at madwifi.org's bugtracker. Please find the relevant patch there: http://madwifi.org/attachment/ticket/1476/patch-madwifi-r2630-2.6.23-build-fix.diff?format=raw (In reply to comment #2) > Please find the relevant patch there: > > http://madwifi.org/attachment/ticket/1476/patch-madwifi-r2630-2.6.23-build-fix.diff?format=raw > What is the best way to patch the gentoo-package madwifi-ng-ng-0.9.3.2, so that the package is still installed by emerge? Juergen Created attachment 132082 [details]
madwifi-ng-0.9.3.2.ebuild
Create a portage overlay, and put the ebuild into (for example) /usr/local/portage/net-wireless/madwifi-ng/
Created attachment 132084 [details]
patch-madwifi-r2630-2.6.23-build-fix.diff
Put this into:
/usr/local/portage/net-wireless/madwifi-ng/files/
Juergen: After downloading these 2 files, you should see this: http://gentoo-wiki.com/Portage_Overlay does this help you ? :-) Hello Joel, I put the madwifi-ng-0.9.3.2.ebuild (attachment id=132082) and patch-madwifi-r2630-2.6.23-build-fix.diff (attachment id=132084) in the new directory /usr/local/portage/net-wireless/madwifi-ng/ and studied http://gentoo-wiki.com/Portage_Overlay. Then I did 'emerge -pvuD madwifi-ng' and I got: ... Calculating dependencies |!!! Manifest file not found: '/usr/local/portage/net-wireless/madwifi-ng/Manifest' ... done! [ebuild UD] net-wireless/madwifi-ng-tools-0.9.3.1 [0.9.3.2] 3,407 kB [ebuild UD] net-wireless/madwifi-ng-0.9.3.1 [0.9.3.2] USE="-injection" 0 kB Why emerge want to downgrade madwifi-ng? I moved /usr/local/portage/net-wireless/madwifi-ng/ in my home directory and did again 'emerge -pvD madwifi-ng' Calculating dependencies... done! [ebuild R ] net-wireless/madwifi-ng-tools-0.9.3.2 0 kB So the downgrade seems to me to come from the new overlay. I moved back ~/madwifi-ng/ to /usr/local/portage/net-wireless/ and did 'emerge -vuD madwifi-ng'. But it fails with: CC [M] /var/tmp/portage/net-wireless/madwifi-ng-0.9.3.1/work/madwifi-0.9.3.1/net80211/if_media.o cc1: warnings being treated as errors In file included from /var/tmp/portage/net-wireless/madwifi-ng-0.9.3.1/work/madwifi-0.9.3.1/net80211/if_media.h:44, from /var/tmp/portage/net-wireless/madwifi-ng-0.9.3.1/work/madwifi-0.9.3.1/net80211/if_media.c:67: /var/tmp/portage/net-wireless/madwifi-ng-0.9.3.1/work/madwifi-0.9.3.1/net80211/../net80211/ieee80211_linux.h:485: warning: 'struct file_operations' declared inside pa rameter list /var/tmp/portage/net-wireless/madwifi-ng-0.9.3.1/work/madwifi-0.9.3.1/net80211/../net80211/ieee80211_linux.h:485: warning: its scope is only this definition or declar ation, which is probably not what you want make[2]: *** [/var/tmp/portage/net-wireless/madwifi-ng-0.9.3.1/work/madwifi-0.9.3.1/net80211/if_media.o] Error 1 make[1]: *** [_module_/var/tmp/portage/net-wireless/madwifi-ng-0.9.3.1/work/madwifi-0.9.3.1/net80211] Error 2 make[1]: Leaving directory `/usr/src_thinkpad/linux-2.6.23-rc8' make: *** [all] Error 2 I am not sure, did emerge use the overlay or not? Any further hint? Hi Juergen, I hope we're not cluttering this page too much (but after all, it is "your" bug) :-) For portage to consider your ebuild as valid, you need to validate it with: cd /usr/local/portage/net-wireless/madwifi-ng ebuild madwifi-ng-0.9.3.2.ebuild digest That will generate some metadata, called the manifests. The manifests allow Portage to verify the integrity of a package, to ensure it wasn't corrupted or tampered with. If the manifest is missing or if the cryptographic signature for one file doesn't match, Portage will consider the package as masked, and will (in your case) attempt to install the previous version. Note that in your case, there is the original (non-overlayed) madwifi-ng 0.9.3.2 "below" your overlay yet 0.9.3.1 got installed instead. This is (almost certainly) a design decision in Portage: overlays replace the package versions below them. In short: Your overlayed madwifi-ng 0.9.3.2 has a manifest problem, so Portage rules out madwifi-ng 0.9.3.2 completely, including the original one. That's probably why it tried to install 0.9.3.1 (yet it failed because it's not compatible with kernel 2.6.23). So... try the "ebuild ... digest" and it should work ! If it doesn't, please feel free to e-mail me :-) (In reply to comment #2) > Please find the relevant patch there: > http://madwifi.org/attachment/ticket/1476/patch-madwifi-r2630-2.6.23-build-fix.diff?format=raw Reopen; we need this patch. The patch fixes the compilation error, but I still get the access violation problem: --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-net-wireless_-_madwifi-ng-0.9.3.2-9913.log" open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda -------------------------------------------------------------------------------- (In reply to comment #10) > The patch fixes the compilation error, but I still get the access violation > problem: Not here, we have Bug 135745 for this. (In reply to comment #11) > (In reply to comment #10) > > The patch fixes the compilation error, but I still get the access violation > > problem: > > Not here, we have Bug 135745 for this. > Sorry and thanks a lot for the link i have the same access violation for rt2500: # emerge -av rt2500 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] net-wireless/rt2500-1.1.0_pre2007071515 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB Would you like to merge these packages? [Yes/No] y >>> Verifying ebuild Manifests... >>> Emerging (1 of 1) net-wireless/rt2500-1.1.0_pre2007071515 to / * rt2500-1.1.0_pre2007071515.tar.gz RMD160 ;-) ... [ ok ] * rt2500-1.1.0_pre2007071515.tar.gz SHA1 ;-) ... [ ok ] * rt2500-1.1.0_pre2007071515.tar.gz SHA256 ;-) ... [ ok ] * rt2500-1.1.0_pre2007071515.tar.gz size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking rt2500-1.1.0_pre2007071515.tar.gz ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.23-gentoo_port4 * Checking for suitable kernel configuration options... [ ok ] >>> Unpacking source... >>> Unpacking rt2500-1.1.0_pre2007071515.tar.gz to /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515 ... * Preparing rt2500 module make: Entering directory `/usr/src/linux-2.6.23-gentoo' CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rtmp_main.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/mlme.o /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rtmp_main.c: In function 'RT2500_open': /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rtmp_main.c:395: warning: 'deprecated_irq_flag' is deprecated (declared at include/linux/interrupt.h:64) CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/connect.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/sync.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/assoc.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/auth.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/auth_rsp.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rtmp_data.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rtmp_init.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/sanity.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rtmp_wep.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/wpa.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/md5.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rtmp_tkip.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rtmp_info.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/eeprom.o LD [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rt2500.o Building modules, stage 2. MODPOST 1 modules CC /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rt2500.mod.o LD [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rt2500.ko make: Leaving directory `/usr/src/linux-2.6.23-gentoo' >>> Source compiled. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-net-wireless_-_rt2500-1.1.0_pre2007071515-12995.log" open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda open_wr: /usr/src/linux-2.6.23-gentoo/null.gcda -------------------------------------------------------------------------------- on others kernel i don't have it: emerge -av rt2500 These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] net-wireless/rt2500-1.1.0_pre2007071515 248 kB Total: 1 package (1 new), Size of downloads: 248 kB Would you like to merge these packages? [Yes/No] y >>> Verifying ebuild Manifests... >>> Emerging (1 of 1) net-wireless/rt2500-1.1.0_pre2007071515 to / >>> Downloading 'http://distfiles.gentoo.org/distfiles/rt2500-1.1.0_pre2007071515.tar.gz' --19:45:56-- http://distfiles.gentoo.org/distfiles/rt2500-1.1.0_pre2007071515.tar.gz => `/usr/portage/distfiles/rt2500-1.1.0_pre2007071515.tar.gz' Resolving distfiles.gentoo.org... 64.50.238.52, 64.50.236.52, 216.165.129.135, ... Connecting to distfiles.gentoo.org|64.50.238.52|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 253,229 (247K) [application/x-gzip] 100%[==============================================================================================================================================================================================================================================================================>] 253,229 113.59K/s 19:45:59 (113.29 KB/s) - `/usr/portage/distfiles/rt2500-1.1.0_pre2007071515.tar.gz' saved [253229/253229] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking rt2500-1.1.0_pre2007071515.tar.gz ;-) ... [ ok ] * Determining the location of the kernel source code * Found kernel source directory: * /usr/src/linux * Found sources for kernel version: * 2.6.22.1-rt9_port4 * Checking for suitable kernel configuration options... [ ok ] >>> Unpacking source... >>> Unpacking rt2500-1.1.0_pre2007071515.tar.gz to /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515 ... * Preparing rt2500 module make: Entering directory `/usr/src/linux-2.6.22.1-rt9' CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rtmp_main.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/mlme.o /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rtmp_main.c: In function 'RT2500_open': /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rtmp_main.c:395: warning: 'deprecated_irq_flag' is deprecated (declared at include/linux/interrupt.h:68) CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/connect.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/sync.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/assoc.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/auth.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/auth_rsp.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rtmp_data.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rtmp_init.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/sanity.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rtmp_wep.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/wpa.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/md5.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rtmp_tkip.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rtmp_info.o CC [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/eeprom.o LD [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rt2500.o Building modules, stage 2. MODPOST 1 modules CC /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rt2500.mod.o LD [M] /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/work/rt2500-cvs-2007071515/Module/rt2500.ko make: Leaving directory `/usr/src/linux-2.6.22.1-rt9' >>> Source compiled. >>> Test phase [not enabled]: net-wireless/rt2500-1.1.0_pre2007071515 >>> Install rt2500-1.1.0_pre2007071515 into /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/image/ category net-wireless * Installing rt2500 module * Preparing file for modules.d ... [ ok ] >>> Completed installing rt2500-1.1.0_pre2007071515 into /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/image/ strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment lib/modules/2.6.22.1-rt9_port4/net/rt2500.ko >>> Merging net-wireless/rt2500-1.1.0_pre2007071515 to / >>> Setting SELinux security labels /usr/sbin/setfiles: labeling files, pretending /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/image is / /usr/sbin/setfiles: labeling files under /var/tmp/portage/net-wireless/rt2500-1.1.0_pre2007071515/image/ matchpathcon_filespec_eval: hash table stats: 19 elements, 19/65536 buckets used, longest chain length 1 /usr/sbin/setfiles: Done. --- /lib/ --- /lib/modules/ --- /lib/modules/2.6.22.1-rt9_port4/ --- /lib/modules/2.6.22.1-rt9_port4/net/ >>> /lib/modules/2.6.22.1-rt9_port4/net/rt2500.ko --- /etc/ --- /etc/modules.d/ >>> /etc/modules.d/rt2500 --- /usr/ --- /usr/share/ --- /usr/share/doc/ >>> /usr/share/doc/rt2500-1.1.0_pre2007071515/ >>> /usr/share/doc/rt2500-1.1.0_pre2007071515/README.bz2 >>> /usr/share/doc/rt2500-1.1.0_pre2007071515/TESTING.bz2 >>> /usr/share/doc/rt2500-1.1.0_pre2007071515/THANKS.bz2 >>> /usr/share/doc/rt2500-1.1.0_pre2007071515/iwpriv_usage.txt.bz2 >>> /usr/share/doc/rt2500-1.1.0_pre2007071515/FAQ.bz2 >>> /usr/share/doc/rt2500-1.1.0_pre2007071515/CHANGELOG.bz2 * Updating module dependencies for 2.6.22.1-rt9_port4 ... WARNING: //lib/modules/2.6.22.1-rt9_port4/kernel/drivers/media/video/zr36060.ko needs unknown symbol videocodec_unregister WARNING: //lib/modules/2.6.22.1-rt9_port4/kernel/drivers/media/video/zr36060.ko needs unknown symbol videocodec_register WARNING: //lib/modules/2.6.22.1-rt9_port4/kernel/drivers/pci/hotplug/nozomi.ko needs unknown symbol pci_module_init [ ok ] * Adding module to moduledb. >>> net-wireless/rt2500-1.1.0_pre2007071515 merged. >>> Recording net-wireless/rt2500 in "world" favorites file... >>> No packages selected for removal by clean >>> Auto-cleaning packages... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. Network: AR5005G 802.11abg NIC (rev 01); amd64, sys-kernel/gentoo-sources 2.6.23 suggested patch worked fine for me. haven't needed an overlay, added the one line and continued with ebuild compile ... Thanks, Gerrit. Please, don't clutter this bug with off-topic comments about sandbox violation and read bug 135745 instead. *** Bug 196367 has been marked as a duplicate of this bug. *** *** Bug 196406 has been marked as a duplicate of this bug. *** Committed 0.9.3.3 to cvs, thanks again for the report |