Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Nov 2012 15:56:14 +0100 (CET)
From:      Gerald Pfeifer <gerald@pfeifer.com>
To:        gnome@FreeBSD.org
Subject:   Re: PATCH: fontconfig: don't run ${LDCONFIG} as user, or at least don't abort
Message-ID:  <alpine.LNX.2.00.1211041554540.2266@tuna.site>
In-Reply-To: <alpine.LNX.2.00.1208050601400.3055@gerinyyl.fvgr>
References:  <alpine.LNX.2.00.1208050601400.3055@gerinyyl.fvgr>

index | next in thread | previous in thread | raw e-mail

I now applied the second patch after maintainer timeout.  If you prefer, 
the first patch still could be factored in to do this conditionally as 
Mk/bsd.port.mk does.

Though I am wondering whether this really shouldn't be handled 
differently (more by the general ports infrastructure).

Gerald

On Sun, 5 Aug 2012, Gerald Pfeifer wrote:
> In a test environment of mine I am installing packages as ordinary
> user, with INSTALL_AS_USER=1.
> 
> Now, I actually would have thought that the ports/Mk infrastructure
> takes care of running ${LDCONFIG} at the right point in time, but in
> any case, the two patches below both fix the failure in post-install.
> 
> The second is more in line with what Mk/bsd.port.mk does for the
> plist -- @exec ${LDCONFIG} -m ${USE_LDCONFIG} || ${TRUE} -- and is
> the one I'd recommend.
> 
> Okay?
> 
> Gerald
> 
> Index: fontconfig/Makefile
> ===================================================================
> RCS file: /home/pcvs/ports/x11-fonts/fontconfig/Makefile,v
> retrieving revision 1.80
> diff -u -r1.80 Makefile
> --- fontconfig/Makefile	20 May 2012 17:40:21 -0000	1.80
> +++ fontconfig/Makefile	5 Aug 2012 04:01:01 -0000
> @@ -61,9 +61,10 @@
>  		s|%%LOCALBASE%%|${LOCALBASE}|' < ${FILESDIR}/pkg-install.in \
>  		> ${PKGINSTALL}
>  .if !defined(PACKAGE_BUILDING)
> +. if !defined(INSTALL_AS_USER)
>  	@${LDCONFIG} -m ${PREFIX}/lib
> +. endif
>  	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
> -
>  .endif
>  
>  .include <bsd.port.post.mk>
> 
> 
> Index: fontconfig/Makefile
> ===================================================================
> RCS file: /home/pcvs/ports/x11-fonts/fontconfig/Makefile,v
> retrieving revision 1.80
> diff -u -r1.80 Makefile
> --- fontconfig/Makefile	20 May 2012 17:40:21 -0000	1.80
> +++ fontconfig/Makefile	5 Aug 2012 04:16:09 -0000
> @@ -61,7 +61,7 @@
>  		s|%%LOCALBASE%%|${LOCALBASE}|' < ${FILESDIR}/pkg-install.in \
>  		> ${PKGINSTALL}
>  .if !defined(PACKAGE_BUILDING)
> -	@${LDCONFIG} -m ${PREFIX}/lib
> +	-@${LDCONFIG} -m ${PREFIX}/lib
>  	@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
>  
>  .endif
> 


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.LNX.2.00.1211041554540.2266>