Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712064 - media-fonts/font-misc-misc: EAPI 7 request for BDEPEND
Summary: media-fonts/font-misc-misc: EAPI 7 request for BDEPEND
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-03-10 15:38 UTC by David Michael
Modified: 2020-08-06 19:11 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 David Michael 2020-03-10 15:38:24 UTC
I was experimenting with --root-deps=rdeps to find bad dependencies for sysroot builds, and this package was an issue.  It needs its build-time dependencies installed in /.

Reproducible: Always

Steps to Reproduce:
1. emerge --root-deps=rdeps font-misc-misc  # in a sysroot without host bdftopcf

Actual Results:  
The configure script fails to find the bdftopcf program.

Expected Results:  
It should work with proper ROOT dependencies.

Here is a patch I tested to update the package.  Note that xorg-3.eclass no longer sets --with-fontdir, so the configure script falls back to pkg-config.  That is a problem because pkgconf always prepends the sysroot path to fontutil's fontrootdir variable even though it is a hard-coded string "/usr/share/fonts".  The end result is that the font files get installed into $SYSROOT$SYSROOT/usr/share/fonts, so I had to add back --with-fontdir to fix it.  Maybe that could be a separate bug for xorg-3.eclass (or font.eclass).

--- media-fonts/font-misc-misc/font-misc-misc-1.1.2-r1.ebuild
+++ media-fonts/font-misc-misc/font-misc-misc-1.1.2-r1.ebuild
@@ -1,12 +1,15 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
-inherit xorg-2
+EAPI=7
+inherit font xorg-3
 
 DESCRIPTION="X.Org miscellaneous fonts"
 
 KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
 IUSE=""
 
-DEPEND="x11-apps/bdftopcf"
+DEPEND="media-fonts/font-util"
+BDEPEND="x11-apps/bdftopcf"
+
+XORG_CONFIGURE_OPTIONS=("--with-fontdir=${EPREFIX}/usr/share/fonts/${PN##*-}")
Comment 1 Matt Turner gentoo-dev 2020-03-11 07:08:16 UTC
There's obviously a pile of media-fonts/font-* files. I'm happy to take pull request that bumps them to EAPI=7 -- but it'll be a little bit of work.

I ripped out font support from xorg-3 because at the time font.eclass didn't support EAPI=7. Presumably we could restore that support now and bump the fonts to EAPI=7.

Low on my priority list, hence the request for a pull request.
Comment 2 Larry the Git Cow gentoo-dev 2020-08-06 19:11:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f53db51f7f3746dd308706aaea9d417c94d7c30f

commit f53db51f7f3746dd308706aaea9d417c94d7c30f
Author:     Henrik Pihl <ahvenas@gmail.com>
AuthorDate: 2020-08-02 18:58:35 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2020-08-06 19:11:03 +0000

    media-fonts/font-misc-misc: upgrade to EAPI 7
    
    Closes: https://bugs.gentoo.org/712064
    Package-Manager: Portage-3.0.1, Repoman-2.3.23
    Signed-off-by: Henrik Pihl <ahvenas@gmail.com>
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 media-fonts/font-misc-misc/font-misc-misc-1.1.2-r2.ebuild | 9 +++++++++
 1 file changed, 9 insertions(+)