Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 688624 - media-libs/woff2-1.0.2-r1 does not install executable files
Summary: media-libs/woff2-1.0.2-r1 does not install executable files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-24 18:16 UTC by Miroslav Šulc
Modified: 2020-04-15 08:32 UTC (History)
4 users (show)

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


Attachments
patch for woff2-1.0.2-r1.ebuild -> woff2-1.0.2-r2.ebuild (file_688624.txt,958 bytes, patch)
2019-10-28 05:08 UTC, Wicher Minnaard
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2019-06-24 18:16:49 UTC
this software provides not only libraries, but also some executable files that bring some important functionality. it's these files: woff2_compress, woff2_decompress and woff2_info. unfortunately these are not installed by default cmake handle and hence are missing from the package. it would be appreciated if these could be installed too.
Comment 1 Thomas Fischer 2019-09-08 18:44:37 UTC
Appending the following snipplet to the .ebuild file may do the trick:

src_install() {
        cd ${WORKDIR}/${P}_build
        dobin woff2_compress woff2_decompress || \
                die "Failed to install executables 'woff2_compress' and 'woff2_decompress'"
        cmake-utils_src_install
}


The 'cd' command has a hard-coded path to where the binaries are placed. Maybe there is a better way to determine the path?

I am not sure whether the Gnome Desktop Team is the right assignee, sounds more elevant to the Fonts project ...
Comment 2 Mart Raudsepp gentoo-dev 2019-09-08 20:17:06 UTC
gnome@gentoo.org is the maintainer of this package, which is why it's the assignee...

What's the actual use case for these tools?
Comment 3 Thomas Fischer 2019-09-09 19:35:54 UTC
(In reply to Mart Raudsepp from comment #2)
> What's the actual use case for these tools?
The two command line tools seem to be the best/recommended way to convert between TTF and WOFF2 format on the command line:

https://stackoverflow.com/questions/25851975/convert-font-in-woff2-format-to-something-else

Furthermore, other distributions' packages for woff2 do include both binaries, thus creating expectancy among Gentoo users:
https://packages.debian.org/sid/utils/woff2
https://www.archlinux.org/packages/extra/x86_64/woff2/files/
https://github.com/bramstein/homebrew-webfonttools

I would like to suggest to expand my initial 'dobin' statement include even the 'woff2_info' binary which allows to retrieve (technical) information on a given .woff2 file.
Comment 4 Wicher Minnaard 2019-10-28 05:08:00 UTC
Created attachment 594206 [details, diff]
patch for woff2-1.0.2-r1.ebuild -> woff2-1.0.2-r2.ebuild

- Update to EAPI7
- Install woff2_{compress,decompress,info} when "utils" use flag is set

Signed-off-by: Wicher <wicher@gavagai.eu>
Comment 5 Hans de Graaff gentoo-dev Security 2020-04-15 08:32:59 UTC
This has now been fixed in woff2-1.0.2-r2, except that we install the cli tools unconditionally.