tech-pkg archive

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

www/serf install permissions fix



Hello!

On macOS Sierra (10.12.3) with pkgsrc -current, www/serf fails to
install due to a failed file permissions check:

===
=> Checking file permissions in serf-1.3.9
warning: /pkg_comp/work/pkg/www/serf/work/.destdir/opt/pkg/include/serf-1/serf.h: group-writable file.
error: /pkg_comp/work/pkg/www/serf/work/.destdir/opt/pkg/include/serf-1/serf.h: world-writable file.
warning: /pkg_comp/work/pkg/www/serf/work/.destdir/opt/pkg/include/serf-1/serf_bucket_types.h: group-writable file.
error: /pkg_comp/work/pkg/www/serf/work/.destdir/opt/pkg/include/serf-1/serf_bucket_types.h: world-writable file.
warning: /pkg_comp/work/pkg/www/serf/work/.destdir/opt/pkg/include/serf-1/serf_bucket_util.h: group-writable file.
error: /pkg_comp/work/pkg/www/serf/work/.destdir/opt/pkg/include/serf-1/serf_bucket_util.h: world-writable file.
3 errors and 3 warnings.
*** Error code 1
===

The permissions of the header files are indeed wrong:

===
 ls -alR /pkg_comp/work/pkg/www/serf/work/.destdir/opt/pkg/include/serf-1
total 152
drwxr-xr-x  5 root  wheel    170 Mar 28 10:21 .
drwxr-xr-x  3 root  wheel    102 Mar 28 10:21 ..
-rw-rw-rw-  1 root  wheel  39346 Sep 17  2015 serf.h
-rw-rw-rw-  1 root  wheel  21225 Sep 17  2015 serf_bucket_types.h
-rw-rw-rw-  1 root  wheel   8787 Sep 17  2015 serf_bucket_util.h
===

Below is a patch that fixes this.

Thanks!

Lewis

diff --git a/www/serf/Makefile b/www/serf/Makefile
index 5db557d..5fe53ba 100644
--- a/www/serf/Makefile
+++ b/www/serf/Makefile
@@ -31,6 +31,9 @@ do-build:
 do-install:
        cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/scons PREFIX=${PREFIX} ${SCONS_ARGS} install

+post-install:
+       ${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/include/serf-1/*.h
+
 .include "../../devel/apr/buildlink3.mk"
 .include "../../devel/apr-util/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"


Home | Main Index | Thread Index | Old Index