Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291986 - media-fonts/font-util-1.1.1 needs to link against libgen on IRIX
Summary: media-fonts/font-util-1.1.1 needs to link against libgen on IRIX
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-05 14:47 UTC by Stuart Shelton
Modified: 2011-12-15 18:20 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2009-11-05 14:47:46 UTC
... and potentially on other platforms with basename() in <libgen.h>?

The ebuild needs to inherit flag-o-matic and include 'append-libs' (at least for IRIX).

I changed the ebuild as follows, but I'm not sure if this is the best solution, or if this skips any build-steps...

--- font-util-1.1.1.ebuild.dist
+++ font-util-1.1.1.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Header: /var/cvsroot/gentoo-x86/media-fonts/font-util/font-util-1.1.1.ebuild,v 1.1 2009/10/12 17:18:59 remi Exp $
 
-inherit x-modular
+inherit x-modular flag-o-matic
 
 EGIT_REPO_URI="git://anongit.freedesktop.org/xorg/font/util"
 DESCRIPTION="X.Org font utilities"
@@ -14,3 +14,11 @@
 DEPEND="${RDEPEND}"
 
 CONFIGURE_OPTIONS="--with-mapdir=${EROOT}/usr/share/fonts/util"
+
+src_compile() {
+       [[ $CHOST == *-irix* ]] && append-libs -lgen
+
+       econf
+       emake || die "emake failed."
+}
+

(I'd attach this as a patch if I was sure that it was right...)
Comment 1 Stuart Shelton 2009-11-05 17:37:46 UTC
Actually, econf and emake should be handled by 'x_modular_src_compile', shouldn't they?
Comment 2 Fabian Groffen gentoo-dev 2009-11-11 13:52:10 UTC
you can do the append-libs in pkg_setup phase, so you don't have to bother about any default actions that are deeply hidden in these ebuilds.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-03-15 16:17:22 UTC
What is the status here? I would like to propose this package for inclusion into gentoo-x86 tree.
Comment 4 Stuart Shelton 2010-03-16 17:49:59 UTC
Well, the ebuild hasn't been updated so it's still broken on any prefix arch with basename() in libgen.so - but I can't see that affecting x86 at all.
Comment 5 Fabian Groffen gentoo-dev 2011-12-15 18:20:39 UTC
We are sorry to close this bug.  We lack the man-power and devotion to support mips-irix in the tree.