Date: Sun, 22 Nov 2015 01:18:32 +0100 From: Jan Beich <jbeich@vfemail.net> To: "Mikhail T." <mi+thun@aldan.algebra.com> Cc: gnome@freebsd.org, gecko@freebsd.org Subject: Re: Non-prefix safe ports Message-ID: <4mge-yjhj-wny@vfemail.net> References: <563A5861.6020706__9360.56868308715$1446667952$gmane$org@aldan.algebra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
"Mikhail T." <mi+thun@aldan.algebra.com> writes:
> Building out a new machine from scratch using /opt (rather than the
> usual /usr/local) as LOCALBASE, I found the following two ports, which
> break:
poudriere testport -P would have been easier. That said it would be nice
to have them as periodic exp-runs. I'm sure there're way more ports
with broken PREFIX != LOCALBASE e.g., anything lua-*.
>
> * multimedia/openh264 - the files built by the port get installed into
> stage/usr/local/... instead of stage/opt -- I had to manually move
> the files around before "make install" succeeded
This affects all ports with USES=webplugin. Fixing isn't trivial, so
better file a bug or it will be forgotten.
> * graphics/gtk-update-icon-cache - at configure-stage, the port
> wrongly complaints, that the cairo installed on the system does not
> support X11. After I created a symlink: /usr/local -> ../opt, the
> problem went away.
make(1) flow control is evaluated at parsing time. Try using sh(1)
conditional to postpone it until the target is run.
Index: graphics/gtk-update-icon-cache/Makefile
===================================================================
--- graphics/gtk-update-icon-cache/Makefile (revision 402206)
+++ graphics/gtk-update-icon-cache/Makefile (working copy)
@@ -36,17 +36,15 @@ ALL_TARGET= ${PORTNAME}
PLIST_FILES= bin/gtk-update-icon-cache
# man/man1/gtk-update-icon-cache.1.gz
-.include <bsd.port.pre.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|-DGDK_PIXBUF_DISABLE_DEPRECATED||g' \
${WRKSRC}/configure
pre-configure:
-.if !exists(${LOCALBASE}/libdata/pkgconfig/cairo-xlib.pc)
- @${ECHO_CMD} "${PKGNAME}: Needs cairo with X11 support enabled."
- @${FALSE}
-.endif
+ @if [ ! -e ${LOCALBASE}/libdata/pkgconfig/cairo-xlib.pc ]; then \
+ ${ECHO_CMD} "${PKGNAME}: Needs cairo with X11 support enabled."; \
+ exit 1; \
+ fi
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/gtk/gtk-update-icon-cache \
@@ -54,4 +52,4 @@ do-install:
# @${INSTALL_MAN} ${WRKSRC}/docs/reference/gtk/gtk-update-icon-cache.1 \
# ${STAGEDIR}${PREFIX}/man/man1/
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQF8BAEBCgBmBQJWUQnYXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREQjQ0MzY3NEM3RDIzNTc4NkUxNDkyQ0VF
NEM3Nzg4MzQ3OURCRERCAAoJEOTHeINHnb3bbjwIALsR8STrUFCxDsRmBFmuWhMc
QQciz9/6F4AxeG196dlK6KMvjzcjGJ/MDxKjfYBPVvSUX3LZ3m7UxZe7xhX0Z3Dk
5dUuzQneZUkLXkqzsNV5hPobpa6gTMllqbTe/QNkC79osfJLwX0C9tB8pHdpRrxM
Spnsk3Lr3j100XYpoE67Rb+TlFHxBpQ8tuX1cEYkb/yQxVKnlq3kOIaTxIf/btzN
yAI6dpa7fVTDefUM0q2NllLnqUb4TvPgVrsR9aGG8Hk4DUgeE1EQLl8nO/q0o5nw
byUoRLdq2K8gpUF4CA+vBkKtoTvRMgr5vN/3uDHScXYoxIXKIlMrp/xjDipzE8o=
=BaZ6
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4mge-yjhj-wny>
