tech-pkg archive

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

math/R - fix non-privileged build



The "R" target tries to install a file (Rscript) into a build
directory (${WRKSRC}/bin) using ${INSTALL_PROGRAM}, which causes
chown, which fails in non-privileged build.

Masao

#
# old_revision [87685d5808c3ccb0d3c429b9d81fc0c939455ced]
#
# add_file "math/R/patches/patch-af"
#  content [8448206bbdb15206e2d66af5a4efcb8a5c4fc90d]
# 
# patch "math/R/distinfo"
#  from [c6c2b6e3ec17cb028ddfbe208d7535df480a9674]
#    to [1ec7c27377ae1679732309009f71b06d3d180cda]
#
============================================================
--- math/R/patches/patch-af     8448206bbdb15206e2d66af5a4efcb8a5c4fc90d
+++ math/R/patches/patch-af     8448206bbdb15206e2d66af5a4efcb8a5c4fc90d
@@ -0,0 +1,12 @@
+--- /src/pkgsrc/obj/math/R/work/R-2.7.2/src/unix/Makefile.in.orig      
2008-06-11 23:52:38.000000000 +0900
++++ /src/pkgsrc/obj/math/R/work/R-2.7.2/src/unix/Makefile.in   2008-10-08 
15:57:56.000000000 +0900
+@@ -45,7 +45,8 @@
+ R: Makefile
+       @$(MAKE) Makedeps
+       @$(MAKE) libunix.a
+-      @$(MAKE) rhome=$(abs_top_builddir) install-Rscript
++      @$(MAKE) rhome=$(abs_top_builddir) INSTALL_PROGRAM=cp install-Rscript
++      @chmod +x "$(abs_top_builddir)/bin/Rscript"
+ 
+ ## is this portable?
+ ../include/Rversion.h:
============================================================
--- math/R/distinfo     c6c2b6e3ec17cb028ddfbe208d7535df480a9674
+++ math/R/distinfo     1ec7c27377ae1679732309009f71b06d3d180cda
@@ -7,3 +7,4 @@ SHA1 (patch-ae) = ce2a7e26cd7c44776075af
 SHA1 (patch-ac) = 64c47fc44c437ad79de53fc313f280700590704f
 SHA1 (patch-ad) = e8f6b6989957a6872806716263eabb9feb636638
 SHA1 (patch-ae) = ce2a7e26cd7c44776075affd4c999bc1b74fe9cf
+SHA1 (patch-af) = 8448206bbdb15206e2d66af5a4efcb8a5c4fc90d


Home | Main Index | Thread Index | Old Index