Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 127272

Summary: svgalib-1.9.21-r1 fails to build with userpriv enabled in features
Product: Gentoo Linux Reporter: Tom Fredrik Blenning Klaussen <bfg-dev>
Component: New packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED WORKSFORME    
Severity: normal CC: johnm
Priority: Low    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build error

Description Tom Fredrik Blenning Klaussen 2006-03-23 00:33:33 UTC
When userpriv is enabled svgalib fails to build.
Workaround is obviously to disable userpriv.
Comment 1 Tom Fredrik Blenning Klaussen 2006-03-23 00:34:42 UTC
Created attachment 82924 [details]
Build error

Log of build error
Comment 2 John Mylchreest (RETIRED) gentoo-dev 2006-03-23 07:43:12 UTC
SUBDIRS is incorrect.
check out the linux-mod:use_m() function.
its simple as pie to use in an ebuild.

inherit linux-mod

and at the end of pkg_unpack:
convert_to_m Makefile;

assuming of course Makefile is the correct file which exports the SUBDIR declaration.

Tom, could you please try the above?

in pkg_unpack at the end just add:

convert_to_m Makefile;

see if it fixes your problem?
Comment 3 John Mylchreest (RETIRED) gentoo-dev 2006-03-23 07:50:12 UTC
It might actually need O= defined as well thinking abiout it, since M= isnt neccessarily a sole fix.
Comment 4 John Mylchreest (RETIRED) gentoo-dev 2006-03-23 08:00:42 UTC
For the record, if you do need O= then I would suggest:

pkg_unpack:
convert_to_m Makefile

src_compile:
mkdir ${WORKDIR}/kmod/
make O=${WORKDIR}/kmod/ yadda

src_install:
insinto ${ROOT}/usr/src/${KV_FULL}/video/
doins ${WORKDIR}/kmod/modulename.${KV_OBJ}

of course, MODULE_NAMES="modulename(video:${S})" would handle a lot of it for you in linux_mod-src_compile
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2006-09-02 07:27:12 UTC
1.9.25 works for me with userpriv enabled, please reopen if this is still a problem