Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32296 - lufs package is not compatible with 2.6 kernel (but is with 2.5) => patch included in the bug
Summary: lufs package is not compatible with 2.6 kernel (but is with 2.5) => patch inc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Peter Johanson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-29 16:46 UTC by Guillaume Destuynder (RETIRED)
Modified: 2004-12-14 10:03 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Destuynder (RETIRED) gentoo-dev 2003-10-29 16:46:14 UTC
lufs 0.9.6 (latest) only has 2.5 kernel support
here is a little patch to the ebuild so that it works correctly with 2.6 kernel


Reproducible: Always
Steps to Reproduce:
1. emerge lufs
2. failure, kernel 2.6.0 not supported
3.

Actual Results:  
failed to emerge

Expected Results:  
nothing special, just use the patch for people using developement kernel

at the end of the src_unpack() function, add this for 2.6 kernel support :
(i do not know if it breaks 2.5 support. if u need to be sure, cp 2.5 folder
instead of linking it, and sed the Makefile like i did sed the configure after
that configure has been run (hope to be clear:p))


    cd ${S}/kernel/Linux
    ln -s 2.5 2.6
                                                                                
    cd ${S}
    mv configure configure.orig
    sed -e 's/linux\/modversions.h/linux\/config\/modversions.h/' configure.orig
> configure || die
Comment 1 Guillaume Destuynder (RETIRED) gentoo-dev 2003-10-29 16:52:57 UTC
wups
the ebuild patch stuff is wrong
stupid copy paste, was my old buffer :PP
here's the right one:

    cd ${S}/kernel/Linux
    ln -s 2.5 2.6
                                                                        
       
    cd ${S}
    mv configure configure.orig
    sed -e 's/linux\/modversions.h/config\/modversions.h/' configure.orig
> configure || die
    chmod +x configure
}
Comment 2 Radek Podgorny 2003-10-31 11:45:06 UTC
Take a look at bug 32415...

Radek
Comment 3 Wout Mertens (RETIRED) gentoo-dev 2003-11-25 17:27:34 UTC
I version-bumped it. Can you test if the new version now compiles on Linux 2.6? Thanks.
Comment 4 Daath 2003-12-01 01:10:48 UTC
Doesn't compile for me - A little later I will try with only -march=i686 to see if  that changes anything...
Comment 5 Daath 2003-12-01 03:46:49 UTC
Erh, ok I tried:

CXXFLAGS="-march=i686" emerge lufs

And right after configure it does:

###############################################################################
 supported filesystems: localfs locasefs ftpfs gnetfs sshfs gvfs
 suid files: lufsmnt & lufsumount.
###############################################################################
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/lufs-0.9.7/work/lufs-0.9.7'
Making all in kernel
make[2]: Entering directory `/var/tmp/portage/lufs-0.9.7/work/lufs-0.9.7/kernel'
Making all in Linux
make[3]: Entering directory `/var/tmp/portage/lufs-0.9.7/work/lufs-0.9.7/kernel/Linux'
Making all in 2.6
make[4]: Entering directory `/var/tmp/portage/lufs-0.9.7/work/lufs-0.9.7/kernel/Linux/2.6'
make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules
make[5]: Entering directory `/usr/src/linux-2.6.0-test11-gentoo'
Makefile:405: /usr/src/linux-2.6.0-test11-gentoo/arch/x86/Makefile: No such file or directory
make[5]: *** No rule to make target `/usr/src/linux-2.6.0-test11-gentoo/arch/x86/Makefile'.  Stop.
make[5]: Leaving directory `/usr/src/linux-2.6.0-test11-gentoo'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/var/tmp/portage/lufs-0.9.7/work/lufs-0.9.7/kernel/Linux/2.6'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/lufs-0.9.7/work/lufs-0.9.7/kernel/Linux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/lufs-0.9.7/work/lufs-0.9.7/kernel'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/lufs-0.9.7/work/lufs-0.9.7'
make: *** [all] Error 2

!!! ERROR: sys-fs/lufs-0.9.7 failed.
!!! Function src_compile, Line 391, Exitcode 2
!!! emake failed

My emerge info:

Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test11-gentoo)
=================================================================
System uname: 2.6.0-test11-gentoo i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -mcpu=pentium3 -O3 -pipe -mfpmath=sse -mmmx -msse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -mcpu=pentium3 -O3 -pipe -mfpmath=sse -mmmx -msse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://ftp.gentoo.skynet.be/ http://gentoo.oregonstate.edu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bonobo cdr crypt cups curl directfb encode esd foomaticdb gd gdbm gif gnome gpm gtk imap imlib java jpeg kde libg++ libwww mad maildir mcal mikmod mmx motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl svga tcpd truetype x86 xml xml2 xmms xv zlib"
Comment 6 Daniel Armyr 2004-03-30 13:21:58 UTC
Yeah, I got that error too. 
There seems to be a problem in that the ebuild assumes the x86 architecture is called x86 in the kernel tree. It is in fact caller i386. But making a link from /usr/src/linux-2.6.X/arch/x86 to /usr/src/linux-2.6.X/arch/x86 solves this particular issue. A patch to some make-file might be a more appropriate solution though.
Comment 7 Guillaume Destuynder (RETIRED) gentoo-dev 2004-09-17 17:40:00 UTC
looks like fixed now no?
this bug might need to be closed/fixed then, its been monthes
Comment 8 Stefan Schweizer (RETIRED) gentoo-dev 2004-10-12 03:55:52 UTC
Can you please try if this is fixed by Bug 67212, comment that it works and add a dependency?
Comment 9 Stefan Schweizer (RETIRED) gentoo-dev 2004-12-14 10:03:47 UTC
Kernel 2.6 is supported now with fuse.