pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/51546: xephem package build stops at an rm(1) override prompt



coypu%SDF.ORG@localhost wrote:

> The following reply was made to PR pkg/51546; it has been noted by GNATS.
> 
> From: coypu%SDF.ORG@localhost
> To: gnats-bugs%NetBSD.org@localhost
> Cc: 
> Subject: Re: pkg/51546: xephem package build stops at an rm(1) override prompt
> Date: Sun, 9 Oct 2016 12:00:13 +0000
> 
>  Would something like this work, is that wyh we have ${RM}?
>  
>  
>  Index: Makefile
>  ===================================================================
>  RCS file: /cvsroot/pkgsrc/x11/xephem/Makefile,v
>  retrieving revision 1.63
>  diff -u -p -u -r1.63 Makefile
>  --- Makefile	9 Jul 2016 06:39:18 -0000	1.63
>  +++ Makefile	9 Oct 2016 11:59:07 -0000
>  @@ -55,7 +55,7 @@ do-install:
>   	${INSTALL_DATA} ${WRKDIR}/XEphem ${DESTDIR}${PREFIX}/lib/X11/app-defaults
>   	cd ${WRKSRC}; ${CP} -R auxil catalogs fifos fits gallery help lo \
>   		${DESTDIR}${PREFIX}/share/xephem
>  -	rm ${DESTDIR}${PREFIX}/share/xephem/*/._*
>  +	${RM} ${DESTDIR}${PREFIX}/share/xephem/*/._*
>   	${CHOWN} -R ${SHAREOWN} ${DESTDIR}${PREFIX}/share/xephem
>   
>   .include "../../x11/libX11/buildlink3.mk"

That doesn't work - it just changes the original "rm" to "/bin/rm" which
then fails (as per my other email).

Can we assume that we can use "rm -f" (or "${RM} -f")?  It looks
like the problem is that we are trying to remove ._* files from the
distribution, but one of those is mode 444 so it fails.

Note that running "make install" as root works - the "rm" as root
doesn't care about the permissions on the file.  I using unpriv'd pkgsrc
builds.

Cheers,
Simon.


Home | Main Index | Thread Index | Old Index