[fink:package-submissions] #4978 r-base33-3.3.2-3 update for 10.13 compatibility

Hanspeter Niederstrasser via Fink-tracker <[email protected]> Sat, 16 Dec 2017 04:24:30 -0000
Newsgroups gmane.os.apple.fink.tracker
Message-ID </p/fink/package-submissions/4978/7aac6fc40ce8afd314e57f88dfed464f13504a4e.package-submissions@fink.p.sourceforge.net>
- **status**: open --> closed-out-of-date
- **Group**: Undergoing_Validation -->  Supplanted
- **Comment**:

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



---

** [package-submissions:#4978] r-base33-3.3.2-3 update for 10.13 compatibility**

**Status:** closed-out-of-date
**Group:**  Supplanted
**Created:** Fri Aug 25, 2017 02:05 AM UTC by Jack Howarth
**Last Updated:** Fri Aug 25, 2017 02:06 AM UTC
**Owner:** BABA Yoshihiko


The attached info file and patch file for r-base33-3.3.2-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-base33.info
===================================================================
RCS file: /cvsroot/fink/dists/10.9-libcxx/stable/main/finkinfo/sci/r-base33.info,v
retrieving revision 1.4
diff -u -r1.4 r-base33.info
--- r-base33.info	10 Aug 2017 11:15:04 -0000	1.4
+++ r-base33.info	25 Aug 2017 02:02:45 -0000
@@ -1,7 +1,7 @@
 Info2: <<
 Package: r-base33
 Version: 3.3.2
-Revision: 2
+Revision: 3
 Description: R Framework
 Maintainer:  BABA Yoshihiko <[email protected]>
 Depends: <<
@@ -38,7 +38,7 @@
 Source: http://cran.r-project.org/src/base/R-3/R-%v.tar.gz
 Source-MD5: 2437014ef40641cdc9673e89c040b7a8
 PatchFile: %n.patch
-PatchFile-MD5: 6e89680e842e76dfe437b851f9f33a59
+PatchFile-MD5: ca19560761830303c0f86fdba3fdfbf0 
 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