[fink:package-submissions] #4979 r-base34-3.4.1-1 update for 10.13 compatibility

Jack Howarth via Fink-tracker <[email protected]>
Newsgroups gmane.os.apple.fink.tracker
Message-ID </p/fink/package-submissions/4979/2a5a19319a578482e3e8d453f1cc0742e0bbb25d.package-submissions@fink.p.sourceforge.net>
Supplanted by https://sourceforge.net/p/fink/package-submissions/5021/


---

** [package-submissions:#4979]  r-base34-3.4.1-1 update for 10.13 compatibility**

**Status:** open
**Group:** Undergoing_Validation
**Created:** Fri Aug 25, 2017 02:21 AM UTC by Jack Howarth
**Last Updated:** Fri Aug 25, 2017 02:23 AM UTC
**Owner:** BABA Yoshihiko


The attached info file and patch file for r-base34-3.4.1-1 updates the package to the 3.4.1 upstream bugfix release and introduces the following fixes for building and use on 10.13...
1) Patch src/extra/intl/vasnprintf.c to handle the new format string strictness regarrding %n and dynamic format strings
2) pass 'ac_cv_have_decl_utimensat=no ac_cv_have_decl_clock_gettime=no' to avoid detection of new system call support which breaks the datetime.Rout testcase in the testsuite. Also to avoid failure in the reg-tests-1d.Rout testcase pass r_cv_working_mktime=no to confiigure.
3) Set and export TZ in the InfoTest to avoid https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17307

The info file changes are...

~~~
Index: r-base34.info
===================================================================
RCS file: /cvsroot/fink/dists/10.9-libcxx/stable/main/finkinfo/sci/r-base34.info,v
retrieving revision 1.2
diff -u -r1.2 r-base34.info
--- r-base34.info	12 Aug 2017 07:13:21 -0000	1.2
+++ r-base34.info	25 Aug 2017 02:10:07 -0000
@@ -1,7 +1,7 @@
 Info2: <<
 Package: r-base34
-Version: 3.4.0
-Revision: 2
+Version: 3.4.1
+Revision: 1
 Description: R Framework
 Maintainer:  BABA Yoshihiko <[email protected]>
 Depends: <<
@@ -36,9 +36,9 @@
 	flag-sort (>= 0.5)
 <<
 Source: http://cran.r-project.org/src/base/R-3/R-%v.tar.gz
-Source-MD5: 75083c23d507b9c16d5c6afbd7a827e7
+Source-MD5: 3a79c01dc0527c62e80ffb1c489297ea
 PatchFile: %n.patch
-PatchFile-MD5: a13b5b4ad615ef9bd5974834af2607f2
+PatchFile-MD5: 91322330a295078b120c1b2c8f2a4497
 PatchScript: <<
   #!/bin/sh -ev
   #sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
@@ -73,7 +73,7 @@
   --with-system-bzlib --with-system-pcre --with-system-zlib \
   --with-x --x-includes=$X11_BASE_DIR/include --x-libraries=$X11_BASE_DIR/lib \
   --with-tcl-config=%p/lib/tclConfig.sh --with-tk-config=%p/lib/tkConfig.sh \
-  --without-internal-tzcode \
+  --without-internal-tzcode r_cv_working_mktime=no ac_cv_have_decl_utimensat=no ac_cv_have_decl_clock_gettime=no \
   CFLAGS="-g -O3" CXXFLAGS="-g -O3" FFLAGS="-g -O3" \
   SED=/usr/bin/sed AWK=/usr/bin/awk GREP=/usr/bin/grep
 <<
@@ -98,7 +98,8 @@
   #!/bin/sh -efv
     # don't leak from already-installed package
     unset R_HOME
-
+    # set TZ to avoid https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=17307
+    export TZ=`date +%%Z`
     make -j1 -k check
   <<
 <<
@@ -327,6 +328,14 @@
 https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15989
 
 Prevent configure script from confusing 10.10 (Yosemite) with 10.1 (Puma).
+
+With format string strictness, High Sierra also enforces that
+%n isn't used in dynamic format strings, but we should just
+disable its use on darwin in general.
+
+Prevent configure script from detecting new support for utimensat and
+clock_gettime to avoid datetime.Rout failing in testsuite. Likewise avoid
+detecting working mktime to prevent failure in reg-tests-1d.Rout.
 <<
 License: GPL
 Homepage: http://cran.R-project.org/
~~~

Tested on 10.13 with 'fink -m'


---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/fink/package-submissions/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/fink/admin/package-submissions/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Fink-tracker mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.tracker
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.