Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 242342 - [patch] media-libs/svgalib-1.9.25 failes to compile against 2.6.27
Summary: [patch] media-libs/svgalib-1.9.25 failes to compile against 2.6.27
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 242708
  Show dependency tree
 
Reported: 2008-10-16 14:07 UTC by Markos Chandras (RETIRED)
Modified: 2008-10-28 20:09 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge.info,3.94 KB, text/plain)
2008-10-16 14:08 UTC, Markos Chandras (RETIRED)
Details
kernel-2.6.27.patch (kernel-2.6.27.patch,1.70 KB, patch)
2008-10-17 00:01 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markos Chandras (RETIRED) gentoo-dev 2008-10-16 14:07:44 UTC
media-libs/svgalib-1.9.25 failes to compile 

Reproducible: Always

Steps to Reproduce:
1.emerge media-libs/svgalib-1.9.25


Actual Results:  
  CC [M]  /var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/displaystart.o
/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/main.c: In function ‘init_module’:
/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/main.c:660: error: too few arguments to function ‘device_create’
/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/main.c:708: error: too few arguments to function ‘device_create’
make[2]: *** [/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper/main.o] Error 1
make[1]: *** [_module_/var/tmp/portage/media-libs/svgalib-1.9.25/work/svgalib-1.9.25/kernel/svgalib_helper] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo'
make: *** [default] Error 2
 *
 * ERROR: media-libs/svgalib-1.9.25 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3464:  Called linux-mod_src_compile
 *             environment, line 2638:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                                          CC=\"$(get-KERNEL_CC)\"                                          LDFLAGS=\"$(get_abi_LDFLAGS)\"     ${BUILD_FIXES}                                           ${BUILD_PARAMS}                            ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CC=i686-pc-linux-gnu-gcc LDFLAGS=  KDIR=/usr/src/linux default
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-libs/svgalib-1.9.25/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/svgalib-1.9.25/temp/environment'.
 *


Expected Results:  
media-libs/svgalib-1.9.25 should compile find
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2008-10-16 14:08:50 UTC
Created attachment 168668 [details]
emerge --info
Comment 2 Ed Catmur 2008-10-17 00:01:55 UTC
Created attachment 168754 [details, diff]
kernel-2.6.27.patch

Possible patch.
Comment 3 Francisco José Cañizares Santofimia 2008-10-19 15:50:52 UTC
(In reply to comment #2)
> Created an attachment (id=168754) [edit]
> kernel-2.6.27.patch
> 
> Possible patch.
> 

It compiles. Haven't tried to execute svgalib, though.

However, it's very important that this patch should be applied the last (this is, after the other patches in the ebuild), like this:

	epatch "${FILESDIR}"/${PN}-1.9.25-linux2.6.patch
	epatch "${FILESDIR}"/${PN}-1.9.19-pic.patch #51698
	epatch "${FILESDIR}"/${PN}-1.9.25-build.patch
	epatch "${FILESDIR}"/${P}-linux-2.6.27.patch

As you can see, the patch posted here is the last (I changed the name for easy to identify to me).
Comment 4 Len Meakin 2008-10-20 15:32:25 UTC
The svgalib package compiles successfully with the patch applied. I can also confirm expected functionality of the svgalib_helper module.
Comment 5 Jonas M. Gastal 2008-10-28 02:39:55 UTC
I can't seem to compile svgalib even with the attached patch, my problem is that portage complains $EPATCH_SOURCE is not defined, I'm not a newbie in linux, but I just recently started using gentoo and can't seem to find any info about this.

(In reply to comment #3)
> (In reply to comment #2)
> > Created an attachment (id=168754) [edit]
> > kernel-2.6.27.patch
> > 
> > Possible patch.
> > 
> 
> It compiles. Haven't tried to execute svgalib, though.
> 
> However, it's very important that this patch should be applied the last (this
> is, after the other patches in the ebuild), like this:
> 
>         epatch "${FILESDIR}"/${PN}-1.9.25-linux2.6.patch
>         epatch "${FILESDIR}"/${PN}-1.9.19-pic.patch #51698
>         epatch "${FILESDIR}"/${PN}-1.9.25-build.patch
>         epatch "${FILESDIR}"/${P}-linux-2.6.27.patch
> 
> As you can see, the patch posted here is the last (I changed the name for easy
> to identify to me).
> 

Comment 6 Jonas M. Gastal 2008-10-28 02:53:26 UTC
Nevermind that, I figured it out, I had improperly named the patch...
Sorry for the stupid mistake, you should ignore my previous comment.

Patch works for me.

(In reply to comment #5)
> I can't seem to compile svgalib even with the attached patch, my problem is
> that portage complains $EPATCH_SOURCE is not defined, I'm not a newbie in
> linux, but I just recently started using gentoo and can't seem to find any info
> about this.
> 
> (In reply to comment #3)
> > (In reply to comment #2)
> > > Created an attachment (id=168754) [edit]
> > > kernel-2.6.27.patch
> > > 
> > > Possible patch.
> > > 
> > 
> > It compiles. Haven't tried to execute svgalib, though.
> > 
> > However, it's very important that this patch should be applied the last (this
> > is, after the other patches in the ebuild), like this:
> > 
> >         epatch "${FILESDIR}"/${PN}-1.9.25-linux2.6.patch
> >         epatch "${FILESDIR}"/${PN}-1.9.19-pic.patch #51698
> >         epatch "${FILESDIR}"/${PN}-1.9.25-build.patch
> >         epatch "${FILESDIR}"/${P}-linux-2.6.27.patch
> > 
> > As you can see, the patch posted here is the last (I changed the name for easy
> > to identify to me).
> > 
> 

Comment 7 Paul de Vrieze (RETIRED) gentoo-dev 2008-10-28 20:09:29 UTC
Thanks for the patch. I've added it to the ebuild, and things should work now until the next time the kernel changes something.