Frieder Bürzele wrote:
Dominique Michel wrote:
One more:
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../src
-I.. -O3
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0
-I/usr/include/freetype2 -I/usr/include/alsa -pthread
-I/usr/include/lash-1.0
-I/usr/include/alsa -DPIXMAPSDIR=@PIXDIR@ -Wall -Werror -MT
sample-editor.o
PIXDIR is not set correctly
I added a workaround to the ebuild which set the dir manually
-MD -MP -MF ".deps/sample-editor.Tpo" -c -o sample-editor.o
sample-editor.c; \
then mv -f ".deps/sample-editor.Tpo" ".deps/sample-editor.Po"; else
rm -f
".deps/sample-editor.Tpo"; exit 1; fi sample-editor.c: In function
'sample_editor_init': sample-editor.c:180: error: stray '@' in
program
sample-editor.c:180: error: stray '@' in program sample-editor.c:180:
error:
'PIXDIR' undeclared (first use in this function) sample-editor.c:180:
error:
(Each undeclared identifier is reported only once
sample-editor.c:180:
error:
for each function it appears in.) sample-editor.c:180: error:
expected
')'
before string constant sample-editor.c:190: error: stray '@' in
program
sample-editor.c:190: error: stray '@' in program sample-editor.c:190:
error:
expected ')' before string constant make[3]: *** [sample-editor.o]
Error 1
make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving
directory
`/var/tmp/portage/specimen-0.5.1-r1/work/specimen-0.5.1/src/gui'
make[2]: ***
[all-recursive] Error 1 make[2]: Leaving directory
`/var/tmp/portage/specimen-0.5.1-r1/work/specimen-0.5.1/src' make[1]:
*** [all]
Error 2 make[1]: Leaving directory
`/var/tmp/portage/specimen-0.5.1-r1/work/specimen-0.5.1/src' make:
***
[all-recursive] Error 1
!!! ERROR: media-sound/specimen-0.5.1-r1 failed.
Cheers
I'm in the same PIXDIR mess:
sample-editor.c: In function `sample_editor_init':
sample-editor.c:180: error: stray '@' in program
sample-editor.c:180: error: stray '@' in program
sample-editor.c:180: error: `PIXDIR' undeclared (first use in this
function)
sample-editor.c:180: error: (Each undeclared identifier is reported
only
once
sample-editor.c:180: error: for each function it appears in.)
sample-editor.c:180: error: syntax error before string constant
sample-editor.c:190: error: stray '@' in program
sample-editor.c:190: error: stray '@' in program
sample-editor.c:190: error: syntax error before string constant
make[3]: *** [sample-editor.o] Error 1
make[3]: *** Waiting for unfinished jobs....
sampletab.c: In function `file_button_new':
sampletab.c:180: error: stray '@' in program
sampletab.c:180: error: stray '@' in program
sampletab.c:180: error: `PIXDIR' undeclared (first use in this
function)
sampletab.c:180: error: (Each undeclared identifier is reported only
once
sampletab.c:180: error: for each function it appears in.)
sampletab.c:180: error: syntax error before string constant
make[3]: *** [sampletab.o] Error 1
make[3]: Leaving directory
`/var/tmp/portage/specimen-0.5.1-r1/work/specimen-0.5.1/src/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/specimen-0.5.1-r1/work/specimen-0.5.1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/var/tmp/portage/specimen-0.5.1-r1/work/specimen-0.5.1/src'
make: *** [all-recursive] Error 1
I see what your sed command in the ebuild is trying to do, but it's not
taking on my system. after the above faiure I can do:
brian@Selah /var/tmp/portage/specimen-0.5.1-r1/work/specimen-0.5.1 $
grep PIXDIR= configure
PIXDIR="\\\"\$(pkgdatadir)/pixmaps/\\\""
then
brian@Selah /var/tmp/portage/specimen-0.5.1-r1/work/specimen-0.5.1 $
audo sed -i -e
's|^PIXDIR\=.*|PIXDIR=\"/usr/share/specimen/pixmaps/\"|g'
configure
brian@Selah /var/tmp/portage/specimen-0.5.1-r1/work/specimen-0.5.1 $
grep PIXDIR= configure
PIXDIR="/usr/share/specimen/pixmaps/"
so the command works, but it doesn't get executed by the ebuild? am I
missing something? I tried emerging as root instead of sudo, and I got
the same error.
/brian