diff options
author | gdt <gdt@pkgsrc.org> | 2016-09-14 12:57:55 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2016-09-14 12:57:55 +0000 |
commit | 70392663d9fbeddb3e149dbb621140a563d9a53d (patch) | |
tree | 41ffc199bcfbe3bfe1a1782004b5724ee8d7ce82 /archivers | |
parent | aac108d4dc319030639414280dc75dec68523176 (diff) | |
download | pkgsrc-70392663d9fbeddb3e149dbb621140a563d9a53d.tar.gz |
Make WRKSRC files copied from FILESDIR writable
The contents of FILESDIR may or or may have the user write bit set.
They contain generated files (list.h), and libarchive's build system
recreates these files by opening them for writing without first
removing them.
Discussed on tech-pkg@; thanks to dholland@ for suggesting chmod -R as
both the simplest change and the one least likely to need adjusting.
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/libarchive/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/archivers/libarchive/Makefile b/archivers/libarchive/Makefile index d51adec74cd..c8e87ecf6d0 100644 --- a/archivers/libarchive/Makefile +++ b/archivers/libarchive/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.45 2016/07/01 17:55:22 jperkin Exp $ +# $NetBSD: Makefile,v 1.46 2016/09/14 12:57:55 gdt Exp $ .include "Makefile.common" @@ -12,6 +12,9 @@ CONFIGURE_ARGS+= --disable-bsdtar do-extract: ${CP} -r ${FILESDIR} ${WRKSRC} + # Contents of ${FILESDIR} may not have the u=w bit set, and + # the build system assumes files in ${WRKSRC} are writable. + ${CHMOD} -R u+w ${WRKSRC} # workaround for pkg/45491 CONFIGURE_ENV.SunOS+= ac_cv_header_ext2fs_ext2_fs_h=no |