Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153553 - net-dialup/fritzcapi-2.6.43 does not compile on linux-2.6.19-rc3
Summary: net-dialup/fritzcapi-2.6.43 does not compile on linux-2.6.19-rc3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on: kernel-sandbox
Blocks:
  Show dependency tree
 
Reported: 2006-10-31 06:42 UTC by Martin von Gagern
Modified: 2007-02-04 23:52 UTC (History)
3 users (show)

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


Attachments
fritzcapi-2.6.43.ebuild with s/config.h/autoconf.h/ (fritzcapi-2.6.43.ebuild,5.12 KB, text/plain)
2006-10-31 06:51 UTC, Martin von Gagern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2006-10-31 06:42:42 UTC
Trying to emerge fritzcapi, I run into
1. missing include file linux/config.h
2. sandbox violations for astest

For 1. I will attach a fixed ebuild, while 2. depends on bug 149307.
Comment 1 Martin von Gagern 2006-10-31 06:51:52 UTC
Created attachment 100883 [details]
fritzcapi-2.6.43.ebuild with s/config.h/autoconf.h/

Changes:
1. change linux/config.h to linux/autoconf.h inspired by bug 151317 comment 1
2. drop dodir /etc as baselayout should ensure this
3. keepdir /lib/firmware as dodir doesn't behave well when upgrading
Note that SRC_URI is no longer available, but I found no alternative so far.

--- /usr/portage/net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild
+++ /usr/local/portage/net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild
@@ -114,12 +114,13 @@
                sed -i "s:\$(PWD)/../lib/driver-lib.o:${S}/e2220pc/lib/driver-lib.o:" ${i}
                convert_to_m ${i}
        done
+       find -name \*.[hc] -print0 | xargs -0 sed -i 's:#include <linux/config\.h>:#include <linux/autoconf.h>:'
 }
 
 src_install() {
        linux-mod_src_install
 
-       dodir /lib/firmware /etc
+       keepdir /lib/firmware
 
        [ "${FRITZCAPI_BUILD_TARGETS/xusb_CZ/}" != "${FRITZCAPI_BUILD_TARGETS}" ] && \
                dodoc "${S}/fritz.xusb_CZ/README.fxusb_CZ"
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2006-11-14 12:37:43 UTC
Stefan, can you take care of this?
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2006-11-14 13:12:17 UTC
The source is no longer available from SuSE. Not much we can do about this.

By looking in the AVM ftp://ftp.avm.de/cardware/ I see that the drivers all seem to be in End of Maintainance state. So really - time to use the misdn driver ;)

Just sad that misdn cannot do fcusb2. I will fix this and my other kernel mod ebuilds as soon as the depend bug is fixed and I get a working 2.6.19 up somewhere.

In the meantime I mailed kkeil to ask about the suse tarball.
Comment 4 Martin von Gagern 2006-11-14 13:27:36 UTC
(In reply to comment #3)
> By looking in the AVM ftp://ftp.avm.de/cardware/ I see that the drivers all
> seem to be in End of Maintainance state. So really - time to use the misdn
> driver ;)

According to the isdn4linux list mISDN does not support Fax - at least as of 2006-07-24 that is. That is the main reason I switched back to the closed source drivers.

> Just sad that misdn cannot do fcusb2. I will fix this and my other kernel mod
> ebuilds as soon as the depend bug is fixed and I get a working 2.6.19 up
> somewhere.

Thanks.

> In the meantime I mailed kkeil to ask about the suse tarball.

Hope it gets moved somewhere where people can at least toy with it, even if noone feels particularly inclined to be officially responsible for the thing.
Comment 5 Sven 2006-11-19 07:01:03 UTC
(In reply to comment #3)
> time to use the misdn driver ;)

misdn 1.0.4 doesn't compile with 2.6.19 - not only because of the sandbox violations. misdn also tried to include linux/config.h, which does not exist anymore in 2.6.19.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-12-01 07:27:40 UTC
*** Bug 156808 has been marked as a duplicate of this bug. ***
Comment 7 Stefan Schweizer (RETIRED) gentoo-dev 2006-12-01 11:06:40 UTC
thanks, I added this ebuild. I am hoping to find a better source for the download too
Comment 8 Martin von Gagern 2007-02-04 23:52:41 UTC
Just for the record: a patch referenced by bug 163366 comment 3 addresses the missing config.h by simply removing the corresponding include file.
Never touch a running system, so I'd leave it as it is, but let's keep this in mind in case the switch to autoconf.h causes trouble one day.