On 22 April 2015 at 20:01, Philip Rinn wrote:
| Package: r-base
| Version: 3.2.0-2
| Severity: serious
| Tags: upstream
| Justification: fails to build from source (but built successfully in the past)
| 
| Hi Dirk,
| 
| I was trying to understand why GNU R FTBFS in the reproducible build env[1]
| while building fine on the buildds.
| It turns out that setting the TZ environmental variable[2] crashes the build.
| 
| *** stack smashing detected ***: /tmp/buildd/r-base-3.2.0/bin/exec/R 
terminated
| 
| .... for a BT see [1] ...
| 
| The offending command is:
| 
| echo
| "tools:::sysdata2LazyLoadDB(\"./R/sysdata.rda\",\"../../../library/tools/R\")"
| | R_DEFAULT_PACKAGES=NULL LC_ALL=C ../../../bin/R --vanilla --slave
| 
| 
| 
| To reproduce:
| 
| I followed the steps in
| https://wiki.debian.org/ReproducibleBuilds/ExperimentalToolchain#Usage_example
| 
| and used the rebuild.sh from
| http://anonscm.debian.org/cgit/reproducible/misc.git/tree/prebuilder
| 
| But I guess just using
| 
| sudo TZ="/usr/share/zoneinfo/Etc/GMT+12" pbuilder ...
| 
| should also do the trick.
| 
| I don't have a clue why this happens - probably something for upstream?

Certainly, but can we please backtrack for a second?  

R has been in Debian since the laste 1990s.  We never needed a TZ (nor should
having one break it, but let's leave that aside for a second), and given all
the releases and architectures we must by now have built a thousand
times. Without FTBFS.

So who now sets TZ and why?  Can we just unset before / while R is built?

R should work just fine with or without TZ. Most systems seem to have it;
Debian never did and I am not aware of side effects (but we sometimes do set
TZ in our (user) analysis scripts).

So two things going forward:
i)  find out who set TZ, make him stop it (should take care of the FTBFS now)
ii) contact upstream which I'll will and see what can be done about makeing
the behaviour more robust (as it used to be prior to R 3.1.3 as well, I
think)

Dirk

| 
| Best,
| Philip
| 
| 
| [1]
| 
https://reproducible.debian.net/rbuild/unstable/amd64/r-base_3.2.0-2.rbuild.log
| [2] http://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html
| 
| 
| 
| -- System Information:
| Debian Release: 8.0
|   APT prefers testing
|   APT policy: (600, 'testing'), (550, 'unstable'), (500, 'testing-updates'), 
(450, 'experimental')
| Architecture: amd64 (x86_64)
| Foreign Architectures: i386
| 
| Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
| Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
| Shell: /bin/sh linked to /bin/dash
| Init: systemd (via /run/systemd/system)

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to