[fink:package-submissions] #4980 r-base-3.2.5-3 update for 10.13 compatibility

Hanspeter Niederstrasser via Fink-tracker <[email protected]> Sat, 16 Dec 2017 04:25:53 -0000
Newsgroups gmane.os.apple.fink.tracker
Message-ID </p/fink/package-submissions/4980/1bce62b9e519aa25583559ca20e43b142b01b394.package-submissions@fink.p.sourceforge.net>
- **status**: open --> closed-out-of-date
- **Group**: Awaiting_Update_from_Submitter -->  Supplanted
- **Comment**:

Moved to github
https://github.com/fink/fink-distributions/pull/12



---

** [package-submissions:#4980] r-base-3.2.5-3 update for 10.13 compatibility**

**Status:** closed-out-of-date
**Group:**  Supplanted
**Labels:** sci Updated Revision of Existing 
**Created:** Fri Aug 25, 2017 10:40 AM UTC by Jack Howarth
**Last Updated:** Sat Nov 04, 2017 10:13 AM UTC
**Owner:** BABA Yoshihiko


The attached info file and patch file for r-base-3.2.5-3 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
4) Replace broken zlib version test in configure with that from R 3.4.
The info file changes are...

~~~
Index: r-base32.info
===================================================================
RCS file: /cvsroot/fink/dists/10.9-libcxx/stable/main/finkinfo/sci/r-base32.info,v
retrieving revision 1.6
diff -u -r1.6 r-base32.info
--- r-base32.info	11 Aug 2017 04:51:21 -0000	1.6
+++ r-base32.info	25 Aug 2017 10:38:14 -0000
@@ -1,8 +1,7 @@
 Info2: <<
 Package: r-base32
 Version: 3.2.5
-Revision: 2
-Distribution: 10.9, 10.10, 10.11, 10.12
+Revision: 3
 Description: R Framework
 Maintainer:  BABA Yoshihiko <[email protected]>
 Depends: <<
@@ -39,7 +38,7 @@
 Source: http://cran.r-project.org/src/base/R-3/R-%v.tar.gz
 Source-MD5: 7b23ee70cfb383be3bd4360e3c71d8c3
 PatchFile: %n.patch
-PatchFile-MD5: 5b9b6fa82ed7247e82e4a70ee3e994e5
+PatchFile-MD5: 72623368b56d57ea5e712dd55f008187
 PatchScript: <<
   #!/bin/sh -ev
   #sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1
@@ -74,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
 <<
@@ -99,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
   <<
 <<
@@ -328,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