pkgsrc-Bugs archive

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

pkg/53671: lang/rust build breaks on read-only source tree



>Number:         53671
>Category:       pkg
>Synopsis:       lang/rust build breaks on read-only source tree
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 16 09:30:00 +0000 2018
>Originator:     Hauke Fath
>Release:        NetBSD 8.99.25
>Organization:
Technische Universitaet Darmstadt
>Environment:
	
	
System: NetBSD Gstoder 8.99.25 NetBSD 8.99.25 (GA-MA770-UD3-$Revision$) #0: Thu Oct 4 16:59:35 CEST 2018 hf@Hochstuhl:/var/obj/netbsd-builds/developer/amd64/sys/arch/amd64/compile/GA-MA770-UD3 amd64
Architecture: x86_64
Machine: amd64
>Description:

	Building lang/rust on a read-only pkgsrc source tree 

% fgrep WRKOBJDIR /etc/mk.conf 
WRKOBJDIR =                     /var/obj/pkgsrc
PACKAGES =                      ${WRKOBJDIR}/packages
%

	breaks with

[...]
/bin/cp -f /var/obj/pkgsrc/lang/rust/work/rustc-1.29.1-src/src/vendor/libc/.cargo-checksum.json.patched  /var/obj/pkgsrc/lang/rust/work/rustc-1.29.1-src/src/vendor/libc/.cargo-checksum.json
/bin/rm -f /amd/hochstuhl/public/pkgsrc/lang/rust/files/c++-wrap
/bin/rm -f /amd/hochstuhl/public/pkgsrc/lang/rust/files/clang++-wrap
/bin/rm -f /amd/hochstuhl/public/pkgsrc/lang/rust/files/clang-wrap
/bin/ln -s /amd/hochstuhl/public/pkgsrc/lang/rust/files/gcc-wrap /amd/hochstuhl/public/pkgsrc/lang/rust/files/c++-wrap
ln: /amd/hochstuhl/public/pkgsrc/lang/rust/files/c++-wrap: Read-only file system
*** Error code 1

	The relevant changes (not really explained in the log message)
	in lang/rust/Makefile are

[...]
1.55         (he       13-Oct-18): .if ${OPSYS} == "NetBSD"
1.55         (he       13-Oct-18):      ${RM} -f ${.CURDIR}/files/c++-wrap
1.58         (he       15-Oct-18):      ${RM} -f ${.CURDIR}/files/clang++-wrap
1.58         (he       15-Oct-18):      ${RM} -f ${.CURDIR}/files/clang-wrap
1.55         (he       13-Oct-18):      ${LN} -s ${.CURDIR}/files/gcc-wrap ${.CURDIR}/files/c++-wrap
1.58         (he       15-Oct-18):      ${LN} -s ${.CURDIR}/files/gcc-wrap ${.CURDIR}/files/clang++-wrap
1.58         (he       15-Oct-18):      ${LN} -s ${.CURDIR}/files/gcc-wrap ${.CURDIR}/files/clang-wrap
1.57         (he       13-Oct-18):      ${CHMOD} +x ${.CURDIR}/files/gcc-wrap
1.55         (he       13-Oct-18): .endif
[...]


	
>How-To-Repeat:

	Build package from a read-only tree.

	
>Fix:

	Yes, please.

	

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index