Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13426 - media-libs/netpbm-10.11.4.ebuild doesnt handle svga USE-flag
Summary: media-libs/netpbm-10.11.4.ebuild doesnt handle svga USE-flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Martin Holzer (RETIRED)
URL:
Whiteboard:
Keywords:
: 13399 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-07 11:26 UTC by christoph wegener
Modified: 2003-02-09 17:43 UTC (History)
2 users (show)

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


Attachments
emerge output (output.log,10.70 KB, text/plain)
2003-01-07 11:57 UTC, christoph wegener
Details

Note You need to log in before you can comment on or make changes to this bug.
Description christoph wegener 2003-01-07 11:26:17 UTC
the netpbm-10.11.4 package has support for SVGAlib in it
(netpbm-10.11.4/other/ppmsvgalib.c)

But the ebuild doesnt handle the variable (LINUXSVGALIB) in Makefile.config !!
Comment 1 christoph wegener 2003-01-07 11:57:34 UTC
Created attachment 7052 [details]
emerge output

output from make command
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-01-07 12:01:46 UTC
do have media-libs/svgalib installed ?
Comment 3 christoph wegener 2003-01-07 12:06:30 UTC
ooops, sorry, forgot that:

i dont have svgalib installed because svgalib is x86 only!
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-01-07 12:16:09 UTC
and you have 

-svga in your use flag ?
Comment 5 Mark Guertin 2003-01-07 13:46:54 UTC
netpbm-10.11.4.ebuild doesn't attempt to handle the svgalib dependancy at all. 
If possible from their configure it should be disabled unless svga USE is set. 
THis makes it unusable on anything htat is non x86 currently.
Comment 6 Mark Guertin 2003-01-07 14:47:53 UTC
*** Bug 13399 has been marked as a duplicate of this bug. ***
Comment 7 christoph wegener 2003-01-07 18:26:47 UTC
martin,

my initial description wasnt very descriptive. i thought it would be obvious
that i have -svga in my use flags, cos this feature is not available on the ppc
platform.

please bear with me. i'm new to gentoo bugreporting. :-)

so, what to do? remove all keywords from the ebuild except "~x86" ?

that would stop more bugreports on this problem.

and reopen a new bugreport, to introduce the useflag dependancy for svga. (mark
can you do this?)
Comment 8 christoph wegener 2003-01-07 18:35:16 UTC
mark, martin, im a little bit confused with the names. :-?

i meant martin NOT mark.
Comment 9 Mark Guertin 2003-01-07 18:48:45 UTC
no, it's ok the way it is right now.  Martin did some work on it, but it's 
still being fussy.  I'm going to attempt a slightly different approach on it 
tomorrow and we'll see how it goes.  If tomorrow I can't resolve it I'll make 
it -ppc temporarily until it can get fixed 
 
Comment 10 christoph wegener 2003-01-13 13:46:16 UTC
ok, i succesfully emerged netpbm-10.4.11 now. so, the fixes from martin seem to
work for me. :-)
Comment 11 Martin Holzer (RETIRED) gentoo-dev 2003-01-18 09:46:12 UTC
gerk: how about you ?
does it works for you ?
Comment 12 Mark Guertin 2003-01-18 11:10:10 UTC
yep Martin 
 
sorry, it's ok for me as well I think.  I will re-test tonight and close this bug if it's ok 
Comment 13 Joshua Kinard gentoo-dev 2003-01-21 23:20:02 UTC
Just thought I'd add that I reported a bug for this package for sparc, in which

cc -c -I/usr/obj/portage/netpbm-10.11.4/work/netpbm-10.11.4/generator -I.  \
    -pedantic -mcpu=ultrasparc -mtune=ultrasparc -O3 -pipe -fomit-frame-pointer
-Wall -Wno-uninitialized -Wmissing-declarations -Wimplicit -Wwrite-strings  -o
ppmpat.o ppmpat.c
ppmpat.c: In function `sq_assign_colors':
ppmpat.c:860: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
make[1]: *** [ppmpat.o] Error 1
make[1]: Leaving directory
`/usr/obj/portage/netpbm-10.11.4/work/netpbm-10.11.4/generator'
make: *** [generator/all] Error 2

!!! ERROR: media-libs/netpbm-10.11.4 failed.
!!! Function src_compile, Line 46, Exitcode 2
!!! (no error message)

prevents the ebuild from completing.  My bug was marked a duplicate of this bug,
and it seems in order to resolve this situation, svgalib is needed.  However,
svgalib is currently "~x86 -ppc -sparc".  According to comments here, it seems
this error is resolved on ppc, but it does not compile to completetion on sparc.

gtf/gtfcalc.c: In function `GTF_calcTimings':
gtf/gtfcalc.c:125: warning: `hPeriod' might be used uninitialized in this function
gtf/gtfcalc.c:128: warning: `hPeriodEst' might be used uninitialized in this
function
gtf/gtfcalc.c:128: warning: `vSyncBP' might be used uninitialized in this function
gtf/gtfcalc.c:128: warning: `vBackPorch' might be used uninitialized in this
function
gtf/gtfcalc.c:129: warning: `vTotalLines' might be used uninitialized in this
function
gtf/gtfcalc.c:131: warning: `idealDutyCycle' might be used uninitialized in this
function
gtf/gtfcalc.c: At top level:
gtf/gtfcalc.c:333: warning: return type of `main' is not `int'
make[1]: Leaving directory
`/usr/obj/portage/svgalib-1.9.17-r1/work/svgalib-1.9.17/utils'
(cd lrmi-0.6m;\
make)
make[1]: Entering directory
`/usr/obj/portage/svgalib-1.9.17-r1/work/svgalib-1.9.17/lrmi-0.6m'
gcc -c  -g -Wall -o lrmi.o lrmi.c
lrmi.c:16:22: asm/vm86.h: No such file or directory
In file included from lrmi.c:28:
lrmi.h:17:20: sys/io.h: No such file or directory
lrmi.c:182: field `vm' has incomplete type
lrmi.c:183: confused by earlier errors, bailing out
make[1]: *** [lrmi.o] Error 1
make[1]: Leaving directory
`/usr/obj/portage/svgalib-1.9.17-r1/work/svgalib-1.9.17/lrmi-0.6m'
make: *** [lrmi] Error 2

!!! ERROR: media-libs/svgalib-1.9.17-r1 failed.
!!! Function src_compile, Line 64, Exitcode 2
!!! Failed to build libraries and utils!


Any idea on this would be welcome, otherwise, I think it would be safer to mark
netpbm-10.11.4 as -sparc as well.
Comment 14 Mark Guertin 2003-01-30 11:27:37 UTC
for the PPC side of things , it is 100% good to go now, I will add ppc stable keyword to it
Comment 15 Martin Holzer (RETIRED) gentoo-dev 2003-02-09 17:43:59 UTC
fixed

thx