Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45180 - Fixed build problem with lufs on 2.6 where you already have the lufs module build
Summary: Fixed build problem with lufs on 2.6 where you already have the lufs module b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Peter Johanson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-19 18:06 UTC by Andre Stemmet
Modified: 2004-12-14 10:10 UTC (History)
3 users (show)

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


Attachments
added --prefix=/bin to the config (lufs-0.9.7.ebuild.patch,937 bytes, patch)
2004-03-19 19:16 UTC, Andre Stemmet
Details | Diff
patch for disablekernelsupport (patch,1.39 KB, patch)
2004-05-21 05:48 UTC, Marien Zwart (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Stemmet 2004-03-19 18:06:10 UTC
Added an use option (lufsnokernel) to the ebuild to alow the building of lufs without building the kernel.

Reproducible: Always
Steps to Reproduce:
1.fixed
2.
3.




*** /usr/portage/sys-fs/lufs/lufs-0.9.7.ebuild Tue Nov 25 18:25:42 2003
--- /home/portage/overlay/sys-fs/lufs/lufs-0.9.7.ebuild Fri Mar 19 18:44:31 2004
*************** DEPEND="virtual/linux-sources"
*** 11,17 ****
  RDEPEND=""
  KEYWORDS="~x86 ~amd64"
  SLOT="0"
! IUSE="lufsusermount"

  src_unpack() {
        unpack ${A}
--- 11,17 ----
  RDEPEND=""
  KEYWORDS="~x86 ~amd64"
  SLOT="0"
! IUSE="lufsusermount lufsnokernel"

  src_unpack() {
        unpack ${A}
*************** src_unpack() {
*** 35,40 ****
--- 35,53 ----
        epatch ${FILESDIR}/gentoo-gcc332fix-${PV}.patch
  }

+ src_compile() {
+
+       local myconf=
+
+       use lufsnokernel && myconf="${myconf} --disable-kernel-support"
+
+       ./configure ${myconf} || die
+
+       einfo "Make"
+       make all || die "Failed to build lufs!"
+       einfo "Make completed"
+ }
+
  src_install () {
        dodoc AUTHORS COPYING ChangeLog Contributors INSTALL \
                NEWS README THANKS TODO
Comment 1 Andre Stemmet 2004-03-19 19:16:16 UTC
Created attachment 27669 [details, diff]
added --prefix=/bin to the config

changed
local myconf= 
to
local myconf="--prefix=/usr "
Comment 2 Marien Zwart (RETIRED) gentoo-dev 2004-05-21 05:48:01 UTC
Created attachment 31792 [details, diff]
patch for disablekernelsupport

This was apparently added to lufs-0.9.7-r2, but has two (or maybe three)
problems:

- IUSE calls the USE flag "disablekernelsupport" while the rest of the ebuild
uses "nokernelsupport". This patch makes it use "disablekernelsupport"
throughout.
- Even with "disablekernelsupport" enabled it still calls various functions
from the kmod eclass which require the kernel source to be writable. This is
obviously unnecessary when the kernel module is not built. This patch attempts
to fix that.
- The new use flag doesn't show up in ufed. This is probably because it's not
in  /usr/portage/profiles/use.local. I don't know why it's not listed there.

Please note that I've only tested this with "disablekernelsupport" enabled.
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2004-10-12 03:58:09 UTC
Can you please try if this is fixed by Bug 67212, comment if it works and add a dependency?
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2004-12-14 10:10:38 UTC
I believe this bug is no longer relevant with the latest changes to the lufs ebuild.