Summary: | [patch] japanese/alias-fonts: convert to USES=metaport | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Andriy Voskoboinyk <avos> |
Component: | Individual Port(s) | Assignee: | Philip M. Gollucci <pgollucci> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | CQG00620 |
Priority: | --- | Keywords: | patch |
Version: | Latest | Flags: | pgollucci:
maintainer-feedback+
|
Hardware: | Any | ||
OS: | Any | ||
Attachments: |
Created attachment 158864 [details]
portlint.log
Created attachment 158865 [details]
poudriere-9.3-i386-before.log
Created attachment 158866 [details]
poudriere-9.3-i386-after.log
Take. Hello. I'm a maintainer of this port. Current japanese/alias-fonts has a problem. This port added additional entries to existing fonts.alias placed in ${PREFIX}/share/fonts/local/. This file was shared by the all other ports that were depended on japanese/alias-fonts. But now these ports installs fonts (include fonts.alias) to its own directory (${FONTSDIR}) under ${PREFIX}/share/fonts/ with USES=fonts. So ${PREFIX}/share/fonts/local/ is not present anywhere, and japanese/alias-fonts fails to update fonts.alias. This is still reported by the Andriy's log (poudriere-9.3-i386-after.log): | ===> Registering installation for ja-alias-fonts-1.0_9 | [93i386-default] Installing ja-alias-fonts-1.0_9... | mv: rename /usr/local/share/fonts/local/fonts.alias to /usr/local/share/fonts/ local/fonts.alias.orig: No such file or directory | Couldn't rename /usr/local/share/fonts/local/fonts.alias. | pkg-static: POST-INSTALL script failed If I create a new directory or file for japanese/alias-fonts to fix the problem, I cannot use USES=metaport, can I? It seems to me that it is difficult to use USES=metaport in this port. BTW, I have planned to fix the problem, and remove the fonts.alias update scripts (pkg-install and pkg-deinstall) from this port (like japanese/k10). It simply installs fonts.alias to ${FONTSDIR} by ${INSTALL_DATA} with USES=fonts. New patch and logs are ready. Philip, do I have to create a new bug report for new patch, or add a comment to this report with the patch? new patch will be fine. Created attachment 159537 [details]
A patch for japanese/alias-fonts
OK. My patch includes following:
(1) Change the install directory from ${PKG_PREFIX}/lib/X11/fonts/local
(doesn't exist anymore) to ${FONTSDIR} with USES=fonts.
(2) Remove fonts.alias updating scripts (pkg-install and pkg-deinstall).
Simply install fonts.alias with ${INSTALL_DATA}.
(3) Add pkg-message.in for appropriate fontpath setting.
(4) Bump PORTREVISION.
This patch doesn't use USES=metaport, because it installs fonts.alias
to ${FONTSDIR}.
Created attachment 159538 [details]
poudriere testport log without my patch (10.1-RELEASE amd64)
Created attachment 159539 [details]
poudriere testport log with my patch (10.1-RELEASE amd64)
Created attachment 159540 [details] poudriere testport log with my patch and a patch in [Bug 200063] (10.1-RELEASE amd64) Current japanese/font-shinonome which is depended by this port has a problem ([Bug 200063])(*) and still not fixed. This log is created with my patch and a patch attached in the bug report. (*) https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200063 maintainer timeout (CQG00620@nifty.ne.jp ; 32 days) A commit references this bug: Author: pgollucci Date: Wed Aug 19 19:47:19 UTC 2015 New revision: 394809 URL: https://svnweb.freebsd.org/changeset/ports/394809 Log: japanese/alias-fonts: convert to USES=font - remove pkg-{install,deinstall} scripts - add pkg-message for how to setup fontpath - bump portrevision PR: 201629 Submitted by: CQG00620@nifty.ne.jp (maintainer) Changes: head/japanese/alias-fonts/Makefile head/japanese/alias-fonts/files/ head/japanese/alias-fonts/files/fonts.alias head/japanese/alias-fonts/files/pkg-message.in head/japanese/alias-fonts/pkg-deinstall head/japanese/alias-fonts/pkg-install |
Created attachment 158863 [details] Makefile.diff