pkgsrc-Changes archive

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

CVS commit: pkgsrc/archivers/libarchive



Module Name:    pkgsrc
Committed By:   gdt
Date:           Wed Sep 14 12:57:55 UTC 2016

Modified Files:
        pkgsrc/archivers/libarchive: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 pkgsrc/archivers/libarchive/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/archivers/libarchive/Makefile
diff -u pkgsrc/archivers/libarchive/Makefile:1.45 pkgsrc/archivers/libarchive/Makefile:1.46
--- pkgsrc/archivers/libarchive/Makefile:1.45   Fri Jul  1 17:55:22 2016
+++ pkgsrc/archivers/libarchive/Makefile        Wed Sep 14 12:57:55 2016
@@ -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



Home | Main Index | Thread Index | Old Index