Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339334 - media-libs/freetype-2.4.1: USE="utils" non-Prefix hardcoded paths
Summary: media-libs/freetype-2.4.1: USE="utils" non-Prefix hardcoded paths
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: Other Other
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-01 09:48 UTC by Niklas Johansson
Modified: 2010-11-04 10:28 UTC (History)
0 users

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


Attachments
emerge --info =media-libs/freetype-2.4.1 (A,4.69 KB, text/plain)
2010-10-01 09:49 UTC, Niklas Johansson
Details
emerge -pqv =media-libs/freetype-2.4.1 (B,104 bytes, text/plain)
2010-10-01 09:50 UTC, Niklas Johansson
Details
build.log (C,149.61 KB, text/plain)
2010-10-01 09:50 UTC, Niklas Johansson
Details
environment (D,125.15 KB, text/plain)
2010-10-01 09:50 UTC, Niklas Johansson
Details
shebangs emerge --info =media-libs/freetype-2.4.1 (A,4.77 KB, text/plain)
2010-11-04 08:45 UTC, Niklas Johansson
Details
shebangs emerge -pqv =media-libs/freetype-2.4.1 (B,103 bytes, text/plain)
2010-11-04 08:46 UTC, Niklas Johansson
Details
shebangs build.log (build.log,169.24 KB, text/plain)
2010-11-04 08:46 UTC, Niklas Johansson
Details
shebangs environment (environment,123.64 KB, text/plain)
2010-11-04 08:47 UTC, Niklas Johansson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Niklas Johansson 2010-10-01 09:48:56 UTC
In gentoo prefix, unable to emerge freetype-2.4.1

/usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_lock_io'
/usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_unlock_io'

Full output
../freetype-2.4.1/builds/unix/libtool --mode=link i686-pc-linux-gnu-gcc -Wl,-O1 -lz -o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/ftdiff /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftdiff.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/common.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftcommon.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1/objs/libfreetype.la  /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/graph.a -R/usr/lib -L/usr/lib -lX11 -lm
../freetype-2.4.1/builds/unix/libtool --mode=link i686-pc-linux-gnu-gcc -Wl,-O1 -lz -o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/ftgamma /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftgamma.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/common.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftcommon.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1/objs/libfreetype.la  /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/graph.a -R/usr/lib -L/usr/lib -lX11 -lm
libtool: link: i686-pc-linux-gnu-gcc -Wl,-O1 -o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/.libs/ftdiff /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftdiff.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/common.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftcommon.o  /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1/objs/.libs/libfreetype.so -lz /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/graph.a -L/usr/lib -lX11 -lm -Wl,-rpath -Wl,/local/export/scratch/gentoo/usr/lib -Wl,-rpath -Wl,/usr/lib
../freetype-2.4.1/builds/unix/libtool --mode=link i686-pc-linux-gnu-gcc -Wl,-O1 -lz -o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/ftgrid /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftgrid.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/common.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftcommon.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1/objs/libfreetype.la  /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/graph.a -R/usr/lib -L/usr/lib -lX11 -lm
/usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_lock_io'
/usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_unlock_io'
collect2: ld returned 1 exit status
make: *** [/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/ftdiff] Error 1
make: *** Waiting for unfinished jobs....
libtool: link: i686-pc-linux-gnu-gcc -Wl,-O1 -o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/.libs/ftgamma /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftgamma.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/common.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftcommon.o  /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1/objs/.libs/libfreetype.so -lz /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/graph.a -L/usr/lib -lX11 -lm -Wl,-rpath -Wl,/local/export/scratch/gentoo/usr/lib -Wl,-rpath -Wl,/usr/lib
/usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_lock_io'
/usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_unlock_io'
collect2: ld returned 1 exit status
make: *** [/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/ftgamma] Error 1
libtool: link: i686-pc-linux-gnu-gcc -Wl,-O1 -o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/.libs/ftgrid /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftgrid.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/common.o /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/ftcommon.o  /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1/objs/.libs/libfreetype.so -lz /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/obj/graph.a -L/usr/lib -lX11 -lm -Wl,-rpath -Wl,/local/export/scratch/gentoo/usr/lib -Wl,-rpath -Wl,/usr/lib
/usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_lock_io'
/usr/lib/libxcb-xlib.so.0: undefined reference to `_xcb_unlock_io'
collect2: ld returned 1 exit status
make: *** [/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1/bin/ftgrid] Error 1
 * ERROR: media-libs/freetype-2.4.1 failed:
  * 
 * Call stack:
 *     ebuild.sh, line  53:  Called call-ebuildshell 'src_compile'
 *   environment, line 602:  Called src_compile
 *   environment, line 3302:  Called die
 * The specific snippet of code:
 *           emake || die "ft2demos emake failed";
 * 
 * If you need support, post the output of 'emerge --info =media-libs/freetype-2.4.1',
 * the complete build log and the output of 'emerge -pqv =media-libs/freetype-2.4.1'.
 * The complete build log is located at '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/temp/build.log'.
 * The ebuild environment file is located at '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/temp/environment'.
 * S: '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1'

 * Messages for package media-libs/freetype-2.4.1:

 * ERROR: media-libs/freetype-2.4.1 failed:
 *   ft2demos emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  53:  Called call-ebuildshell 'src_compile'
 *   environment, line 602:  Called src_compile
 *   environment, line 3302:  Called die
 * The specific snippet of code:
 *           emake || die "ft2demos emake failed";
 * 
 * If you need support, post the output of 'emerge --info =media-libs/freetype-2.4.1',
 * the complete build log and the output of 'emerge -pqv =media-libs/freetype-2.4.1'.
 * The complete build log is located at '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/temp/build.log'.
 * The ebuild environment file is located at '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/temp/environment'.
 * S: '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1'
*   ft2demos emake failed


Reproducible: Always
Comment 1 Niklas Johansson 2010-10-01 09:49:34 UTC
Change to gentoo/alt
Comment 2 Niklas Johansson 2010-10-01 09:49:57 UTC
Created attachment 249156 [details]
emerge --info =media-libs/freetype-2.4.1
Comment 3 Niklas Johansson 2010-10-01 09:50:16 UTC
Created attachment 249158 [details]
 emerge -pqv =media-libs/freetype-2.4.1
Comment 4 Niklas Johansson 2010-10-01 09:50:39 UTC
Created attachment 249160 [details]
build.log
Comment 5 Niklas Johansson 2010-10-01 09:50:55 UTC
Created attachment 249162 [details]
environment
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2010-10-01 10:57:26 UTC
The libxcb-xlib.so issue is very old:

http://www.gentoo.org/proj/en/desktop/x/x11/libxcb-1.4-upgrade-guide.xml

But not sure how that applies to Gentoo prefix, so moving to maintainers ->
Comment 7 Niklas Johansson 2010-10-01 12:23:03 UTC
> But not sure how that applies to Gentoo prefix, so moving to maintainers ->

I think I have found a important part clue:
  It is not using the correct path

I tried:
$ ls $EPREFIX/usr/lib/libxcb-xlib.so.0
ls: cannot access [...] No such file or directory

$ ls /usr/lib/libxcb-xlib.so.0
/usr/lib/libxcb-xlib.so.0@


Which means that it trying to use the system copy of libxcb-xlib and not the "gentoo prefix" version.


Comment 8 Niklas Johansson 2010-11-03 16:25:05 UTC
My guess is that there is "prefix" problem when building this package. My error stems from that this package try to use the systems /usr/lib folder instead of the prefix one.

I found this in one of the readme files*

 X11 issues
    ----------

    When building the demos, the build system tries to detect your X11
    path  by  looking for  the  patterns  `X11/bin', `X11R6/bin',  and
    `X11R5/bin' in your current path  (in this order).  If no X11 path
    is found, some demo programs  will not be able to display graphics
    and  will fail.   If you  have X11  in an  unusual place,  use the
    X11_PATH make  variable.  More  than one directory,  if necessary,
    must be separated with spaces.  Example:

        make X11_PATH="/usr/openwin /usr/local/X11R6"

    If  you don't  have X11  at all,  fix the  definition of  the EXES
    variable as described in the top-level Makefile.

* located here:
$EPREFIX/var/tmp/portage/media-libs/freetype-2.4.1/work/ft2demos-2.4.1
Comment 9 Niklas Johansson 2010-11-03 16:28:58 UTC
YES!!

I found a solution. By 
   export X11_PATH="$EPREFIX/usr/lib"

I manage to build this package correctly.
Comment 10 Fabian Groffen gentoo-dev 2010-11-03 19:47:11 UTC
I tried to fix this following your directions in the ebuild.  Can you try in an hour from now or so to see if it now really works for you?
Comment 11 Niklas Johansson 2010-11-03 22:27:18 UTC
(In reply to comment #10)
> I tried to fix this following your directions in the ebuild.  Can you try in an
> hour from now or so to see if it now really works for you?
>

Thanks for taking the time to work this out so quickly.

However, the new ebuild did not work for me. This is the error message, if you need the rest (logs) let me know. But it seems like there is some sort of syntax error. 

* Messages for package media-libs/freetype-2.4.1:

 * ERROR: media-libs/freetype-2.4.1 failed:
 *   Aborting due to QA concerns: invalid shebangs found
 * 
 * Call stack:
 *   misc-functions.sh, line 1697:  Called install_qa_check
 *   misc-functions.sh, line  210:  Called install_qa_check_prefix
 *   misc-functions.sh, line  858:  Called die
 * The specific snippet of code:
 *              die "Aborting due to QA concerns: invalid shebangs found"
Comment 12 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-11-04 00:14:46 UTC
There should be a couple more lines that tell us _what_ the invalid shebang is.
Comment 13 Fabian Groffen gentoo-dev 2010-11-04 07:32:31 UTC
that's actually portage's fault, so the package builds now.
Comment 14 Niklas Johansson 2010-11-04 08:41:55 UTC
(In reply to comment #13)
> that's actually portage's fault, so the package builds now.
> 

I sync and tried again. This is what I get.

libtool: install: /local/export/scratch/gentoo/usr/bin/install -m 755 ../ft2demos-2.4.1/bin/.libs/ftvalid /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/image/local/export/scratch/gentoo//usr/bin/ftvalid
libtool: install: /local/export/scratch/gentoo/usr/bin/install -m 755 ../ft2demos-2.4.1/bin/.libs/ftview /local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/image/local/export/scratch/gentoo//usr/bin/ftview
 * ERROR: media-libs/freetype-2.4.1 failed:
 *   Aborting due to QA concerns: invalid shebangs found
 * 
 * Call stack:
 *   misc-functions.sh, line 1697:  Called install_qa_check
 *   misc-functions.sh, line  210:  Called install_qa_check_prefix
 *   misc-functions.sh, line  858:  Called die
 * The specific snippet of code:
 *              die "Aborting due to QA concerns: invalid shebangs found"
 * 
 * If you need support, post the output of 'emerge --info =media-libs/freetype-2.4.1',
 * the complete build log and the output of 'emerge -pqv =media-libs/freetype-2.4.1'.
 * The complete build log is located at '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/temp/build.log'.
 * The ebuild environment file is located at '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/temp/environment'.
 * S: '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1'

 * Messages for package media-libs/freetype-2.4.1:

 * ERROR: media-libs/freetype-2.4.1 failed:
 *   Aborting due to QA concerns: invalid shebangs found
 * 
 * Call stack:
 *   misc-functions.sh, line 1697:  Called install_qa_check
 *   misc-functions.sh, line  210:  Called install_qa_check_prefix
 *   misc-functions.sh, line  858:  Called die
 * The specific snippet of code:
 *              die "Aborting due to QA concerns: invalid shebangs found"
 * 
 * If you need support, post the output of 'emerge --info =media-libs/freetype-2.4.1',
 * the complete build log and the output of 'emerge -pqv =media-libs/freetype-2.4.1'.
 * The complete build log is located at '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/temp/build.log'.
 * The ebuild environment file is located at '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/temp/environment'.
 * S: '/local/export/scratch/gentoo/var/tmp/portage/media-libs/freetype-2.4.1/work/freetype-2.4.1'
Comment 15 Niklas Johansson 2010-11-04 08:45:46 UTC
Created attachment 253147 [details]
shebangs emerge --info =media-libs/freetype-2.4.1
Comment 16 Niklas Johansson 2010-11-04 08:46:19 UTC
Created attachment 253149 [details]
shebangs emerge -pqv =media-libs/freetype-2.4.1
Comment 17 Niklas Johansson 2010-11-04 08:46:55 UTC
Created attachment 253151 [details]
shebangs build.log
Comment 18 Niklas Johansson 2010-11-04 08:47:27 UTC
Created attachment 253153 [details]
shebangs environment
Comment 19 Fabian Groffen gentoo-dev 2010-11-04 09:58:37 UTC
please try to downgrade your portage to 17133
Comment 20 Niklas Johansson 2010-11-04 10:28:11 UTC
(In reply to comment #19)
> please try to downgrade your portage to 17133
> 

That did the trick. Thank you for the help and the fix of this issue.