Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520818 - net-libs/gnutls-3.3.7 fails with older texinfo - makeinfo: Removing output file `.../work/gnutls-3.3.7/doc/gnutls.info' due to errors; use --force to preserve.
Summary: net-libs/gnutls-3.3.7 fails with older texinfo - makeinfo: Removing output fi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Crypto team [DISABLED]
URL: https://lists.gnu.org/archive/html/bu...
Whiteboard:
Keywords:
: 520942 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-08-25 07:55 UTC by Patrick Lauer
Modified: 2016-02-13 10:10 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (gnutls-build.log.xz,31.50 KB, application/x-xz)
2014-08-25 17:01 UTC, Alexander Tsoy
Details
net-libs/gnutls-3.3.7 build.log (build.log,619.10 KB, application/octet-stream)
2014-08-26 14:22 UTC, James Chew
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2014-08-25 07:55:10 UTC
if /bin/sh /var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/build-aux/missing makeinfo -I /var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc  -I /var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc \
 -o /var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc/gnutls.info /var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc/gnutls.texi; \
then \
  rc=0; \
  CDPATH="${ZSH_VERSION+.}:" && cd /var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc; \
else \
  rc=$?; \
  CDPATH="${ZSH_VERSION+.}:" && cd /var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc && \
  $restore $backupdir/* `echo ".//var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc/gnutls.info" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
/var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc//gnutls-api.texi:3873: warning: @strong{Note...} produces a spurious cross-reference in Info; reword to avoid that.
/var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc//invoke-tpmtool.texi:1: `tpmtool Invocation' has no Up field (perhaps incorrect sectioning?).
/var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc//cha-tokens.texi:463: Next field of node `Using keys' not pointed to (perhaps incorrect sectioning?).
/var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc//invoke-tpmtool.texi:1: This node (tpmtool Invocation) has the bad Prev.
/var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc//invoke-p11tool.texi:1: `p11tool Invocation' has no Up field (perhaps incorrect sectioning?).
/var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc//cha-tokens.texi:377: Next field of node `Using a PKCS11 token with TLS' not pointed to (perhaps incorrect sectioning?).
/var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc//invoke-p11tool.texi:1: This node (p11tool Invocation) has the bad Prev.
makeinfo: Removing output file `/var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc/gnutls.info' due to errors; use --force to preserve.
mv: target './/var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc/' is not a directory
Makefile:3474: recipe for target '/var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc/gnutls.info' failed
make[3]: *** [/var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7/doc/gnutls.info] Error 1
make[3]: Leaving directory '/var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7-abi_x86_64.amd64/doc'
Makefile:3686: recipe for target 'check-recursive' failed
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7-abi_x86_64.amd64/doc'
Makefile:3838: recipe for target 'check' failed
make[1]: *** [check] Error 2
make[1]: Leaving directory '/var/tmp/portage/net-libs/gnutls-3.3.7/work/gnutls-3.3.7-abi_x86_64.amd64/doc'
Makefile:1369: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1
 * ERROR: net-libs/gnutls-3.3.7::gentoo failed (test phase):
 *   emake failed


Portage 2.2.12 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.1, glibc-2.19-r1, 3.16.1-gentoo x86_64)
=================================================================
System uname: Linux-3.16.1-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
KiB Mem:     7919020 total,    214068 free
KiB Swap:   16777208 total,  16001188 free
Timestamp of tree: Unknown
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p47
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.9.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo x-overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/overlay"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr egl emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp openvg pam pango pcre pdf phonon plasma png policykit ppds python qt3support qt4 readline sdl semantic-desktop session spell sqlite sse sse2 ssl startup-notification svg tcl tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xa xcb xcomposite xinerama xml xscreensaver xv xvfb xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Alexander Tsoy 2014-08-25 16:44:32 UTC
It also fails in install phase with the same errors.
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2014-08-25 16:45:09 UTC
please build using -j1 so I can see relevant information, I only see doc issues
Comment 3 Alexander Tsoy 2014-08-25 17:01:34 UTC
Created attachment 383564 [details]
build.log

build.log using -j1
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2014-08-25 17:09:07 UTC
Please specify your dev-util/gtk-doc version.
Comment 5 Alexander Tsoy 2014-08-25 17:24:52 UTC
From `emerge --info gnutls` (note -doc in USE):

net-libs/gnutls-3.3.6 was built with the following:
USE="crywrap cxx nls zlib -dane -doc -examples -guile -pkcs11 -static-libs -test" ABI_X86="64 -32 -x32" LINGUAS="en -cs -de -fi -fr -it -ms -nl -pl -sv -uk -vi -zh_CN"

And I don't have dev-util/gtk-doc at all:
$ qlist -ICv dev-util/gtk-doc
dev-util/gtk-doc-am-1.20

On the other system where gnutls also fails to install with USE=-doc:
$ qlist -ICv dev-util/gtk-doc
dev-util/gtk-doc-1.20
dev-util/gtk-doc-am-1.20
Comment 6 Alon Bar-Lev (RETIRED) gentoo-dev 2014-08-25 17:34:33 UTC
ok, we have the same gtk-doc.

can you please also paste version of sys-apps/texinfo?
Comment 7 Alexander Tsoy 2014-08-25 18:01:40 UTC
Yeah. This issue gone after upgrade from texinfo-4.13-r2 to -5.2.
Comment 8 Kristian Fiskerstrand (RETIRED) gentoo-dev 2014-08-25 18:39:22 UTC
Curious; I'm unable to reproduce this issue on a VM with makeinfo (GNU texinfo) 4.13, both with and without doc USE.
Comment 9 Alon Bar-Lev (RETIRED) gentoo-dev 2014-08-25 18:46:11 UTC
(In reply to Kristian Fiskerstrand from comment #8)
> Curious; I'm unable to reproduce this issue on a VM with makeinfo (GNU
> texinfo) 4.13, both with and without doc USE.

yes, trying to figure out why I cannot reproduce.
Comment 10 James Chew 2014-08-26 14:21:17 UTC
I'm having the same issue too.

# emerge --info '=net-libs/gnutls-3.3.7::gentoo'
Portage 2.2.12 (python 2.7.8-final-0, default/linux/amd64/13.0/no-multilib, gcc-4.8.3, glibc-2.19-r1, 3.15.8-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.15.8-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E3-1240_v3_@_3.40GHz-with-gentoo-2.2
KiB Mem:    32928908 total,  10068836 free
KiB Swap:   15625212 total,  15624132 free
Timestamp of tree: Mon, 25 Aug 2014 13:30:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p47
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.1
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.15 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo Personal_Portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.gg3.net/ http://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/personal_portage"
SYNC="rsync://nexus/gentoo-portage"
USE="acl acpi amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 lm_sensors mmx modules ncurses nls nptl openmp pam pcre readline samba session sse sse2 sse3 ssl ssse3 tcpd threads unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

# emerge --info gnutls
...
net-libs/gnutls-3.3.6 was built with the following:
USE="crywrap cxx nls zlib -dane -doc -examples -guile -pkcs11 -static-libs -test" LINGUAS="-cs -de -en -fi -fr -it -ms -nl -pl -sv -uk -vi -zh_CN"

# emerge --info sys-apps/texinfo
...
sys-apps/texinfo-4.13-r2 was built with the following:
USE="nls -static"

# emerge -pqv '=net-libs/gnutls-3.3.7::gentoo'
[ebuild     U ] net-libs/gnutls-3.3.7 [3.3.6] USE="crywrap cxx nls zlib -dane -doc -examples -guile -pkcs11 -static-libs {-test}" LINGUAS="-cs -de -en -fi -fr -it -ms -nl -pl -sv -uk -vi -zh_CN"
Comment 11 James Chew 2014-08-26 14:22:00 UTC
Created attachment 383744 [details]
net-libs/gnutls-3.3.7 build.log
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-26 15:32:59 UTC
*** Bug 520942 has been marked as a duplicate of this bug. ***
Comment 13 Alon Bar-Lev (RETIRED) gentoo-dev 2014-08-29 20:21:01 UTC
I cannot explain that... the info file is embedded within the tarball and should not be built.
Something in timestamps of doc/*.info or doc/*.texi is changes at some point on other computers, while it should not happen.
I force regeneration of makeinfo files and added dependency of >=texinfo-5.2.
If someone wants to help me to reproduce this so I can fix it properly I will be happy.

fixed in gnutls-3.3.7-r1
Comment 14 James Chew 2014-08-30 02:02:26 UTC
Hi Alon,

Would having the dependency of >=texinfo-5.2, break a compile of other packages that fails to build with >=textinfo-5.0 as they are not slotted?

https://bugs.gentoo.org/buglist.cgi?quicksearch=texinfo

E.g. I was hitting Bug 464044, that's why I forced my system to mask >=textinfo-5.0

Cheers,
James
Comment 15 Alon Bar-Lev (RETIRED) gentoo-dev 2014-08-30 06:31:10 UTC
(In reply to James Chew from comment #14)
> Hi Alon,
> 
> Would having the dependency of >=texinfo-5.2, break a compile of other
> packages that fails to build with >=textinfo-5.0 as they are not slotted?
> 

I was using 5.2 as upstream used it to compile current files, so no more potential issues.

Do you want to help me figure out why on your system the makeinfo is running while the files exists on filesystem so we can avoid re-generate these?
Comment 16 James Chew 2014-08-30 07:39:59 UTC
(In reply to Alon Bar-Lev from comment #15)

> Do you want to help me figure out why on your system the makeinfo is running
> while the files exists on filesystem so we can avoid re-generate these?

Of course I would like to help.

Let me know what you need me to do, any files you need, or commands to run.
Comment 17 Alexander Tsoy 2014-09-17 08:08:23 UTC
Looks like a timezone difference. For me this works:

# TZ=UTC ebuild /usr/portage/net-libs/gnutls/gnutls-3.3.7.ebuild install

and this fails:

# ebuild /usr/portage/net-libs/gnutls/gnutls-3.3.7.ebuild install


diff of /doc/ dir before and after `ebuild ... compile`:

# diff -urN gnutls-3.3.7/work/gnutls-3.3.7/doc/ gnutls-3.3.7.comiled/work/gnutls-3.3.7/doc/
diff -urN gnutls-3.3.7/work/gnutls-3.3.7/doc/stamp-1 gnutls-3.3.7.comiled/work/gnutls-3.3.7/doc/stamp-1
--- gnutls-3.3.7/work/gnutls-3.3.7/doc/stamp-1  2014-08-20 21:41:41.000000000 +0400
+++ gnutls-3.3.7.comiled/work/gnutls-3.3.7/doc/stamp-1  2014-09-17 11:47:53.439604610 +0400
@@ -1,4 +1,4 @@
-@set UPDATED 29 July 2014
+@set UPDATED 30 July 2014
 @set UPDATED-MONTH July 2014
 @set EDITION 3.3.7
 @set VERSION 3.3.7
diff -urN gnutls-3.3.7/work/gnutls-3.3.7/doc/stamp-vti gnutls-3.3.7.comiled/work/gnutls-3.3.7/doc/stamp-vti
--- gnutls-3.3.7/work/gnutls-3.3.7/doc/stamp-vti        2014-08-20 21:41:41.000000000 +0400
+++ gnutls-3.3.7.comiled/work/gnutls-3.3.7/doc/stamp-vti        2014-09-17 11:47:53.419604157 +0400
@@ -1,4 +1,4 @@
-@set UPDATED 29 July 2014
+@set UPDATED 30 July 2014
 @set UPDATED-MONTH July 2014
 @set EDITION 3.3.7
 @set VERSION 3.3.7
diff -urN gnutls-3.3.7/work/gnutls-3.3.7/doc/version-guile.texi gnutls-3.3.7.comiled/work/gnutls-3.3.7/doc/version-guile.texi
--- gnutls-3.3.7/work/gnutls-3.3.7/doc/version-guile.texi       2014-08-08 22:53:48.000000000 +0400
+++ gnutls-3.3.7.comiled/work/gnutls-3.3.7/doc/version-guile.texi       2014-09-17 11:47:53.435604521 +0400
@@ -1,4 +1,4 @@
-@set UPDATED 29 July 2014
+@set UPDATED 30 July 2014
 @set UPDATED-MONTH July 2014
 @set EDITION 3.3.7
 @set VERSION 3.3.7
diff -urN gnutls-3.3.7/work/gnutls-3.3.7/doc/version.texi gnutls-3.3.7.comiled/work/gnutls-3.3.7/doc/version.texi
--- gnutls-3.3.7/work/gnutls-3.3.7/doc/version.texi     2014-08-07 22:45:26.000000000 +0400
+++ gnutls-3.3.7.comiled/work/gnutls-3.3.7/doc/version.texi     2014-09-17 11:47:53.416604088 +0400
@@ -1,4 +1,4 @@
-@set UPDATED 29 July 2014
+@set UPDATED 30 July 2014
 @set UPDATED-MONTH July 2014
 @set EDITION 3.3.7
 @set VERSION 3.3.7
Comment 18 Alexander Tsoy 2014-09-17 08:17:56 UTC
Workaround that works for me:

# diff -u gnutls-3.3.7.ebuild{.orig,}
--- gnutls-3.3.7.ebuild.orig    2014-09-17 12:15:33.509319021 +0400
+++ gnutls-3.3.7.ebuild 2014-09-17 12:10:35.815562161 +0400
@@ -69,6 +69,8 @@
 
        # bug 497472
        use cxx || epunt_cxx
+
+       export TZ=UTC
 }
 
 multilib_src_configure() {
Comment 19 Alexander Tsoy 2014-09-17 09:39:32 UTC
Or better is to fix build-aux/mdate-sh. I'm trying to do this, but changes get lost after eautoreconf. =/
Comment 20 Alexander Tsoy 2014-09-17 10:09:39 UTC
Ignore last comment. mdate-sh is a file shipped with automake.
Comment 21 Alexander Tsoy 2014-10-13 19:08:02 UTC
mdate-sh from automake does not reset TZ to UTC and uses timezone of the build environment. I don't know if this is a bug or feature. Setting TZ=UTC in ebuild is a bad workaround, because the timezone used by upstream may change in the future. :)

Just to demonstrate what's happening here (net-libs/gnutls-3.3.8):

work doc # TZ=UTC-3 ../build-aux/mdate-sh gnutls.texi 
29 July 2014
work doc # TZ=UTC-4 ../build-aux/mdate-sh gnutls.texi 
30 July 2014
Comment 22 Francisco Blas Izquierdo Riera gentoo-dev 2014-10-14 02:47:26 UTC
(In reply to Alexander Tsoy from comment #21)
> mdate-sh from automake does not reset TZ to UTC and uses timezone of the
> build environment. I don't know if this is a bug or feature. Setting TZ=UTC
> in ebuild is a bad workaround, because the timezone used by upstream may
> change in the future. :)
No, the timezone will never change (at least not whilst they keep using tar) as the format clearly specifies mtimes are stored as the octal value of the unix timestamp using UTC (see http://www.gnu.org/software/tar/manual/html_node/Standard.html )
Comment 23 Francisco Blas Izquierdo Riera gentoo-dev 2014-10-14 02:55:42 UTC
Anyways I have sent a bug report on this to the automake developers so they will hopefully fix this in next releases, on the mean time the setting the TZ solution seems to be the best approach.
Comment 24 Alexander Tsoy 2014-10-14 05:46:12 UTC
(In reply to Francisco Blas Izquierdo Riera from comment #22)
> (In reply to Alexander Tsoy from comment #21)
> > mdate-sh from automake does not reset TZ to UTC and uses timezone of the
> > build environment. I don't know if this is a bug or feature. Setting TZ=UTC
> > in ebuild is a bad workaround, because the timezone used by upstream may
> > change in the future. :)
> No, the timezone will never change (at least not whilst they keep using tar)
> as the format clearly specifies mtimes are stored as the octal value of the
> unix timestamp using UTC (see
> http://www.gnu.org/software/tar/manual/html_node/Standard.html )

I meant timezone in the environment where upstream makes release tarballs. TZ=UTC works for 3.3.8, but may stop working for future releases. So this is an extra maintainance work to verify on every version bump that build system do not want to regenerate texinfo files.
Comment 25 Alon Bar-Lev (RETIRED) gentoo-dev 2014-10-14 06:01:37 UTC
(In reply to Francisco Blas Izquierdo Riera from comment #23)
> Anyways I have sent a bug report on this to the automake developers so they
> will hopefully fix this in next releases, on the mean time the setting the
> TZ solution seems to be the best approach.

yes, we both had... :)

http://lists.gnu.org/archive/html/bug-automake/2014-10/msg00003.html
http://lists.gnu.org/archive/html/bug-automake/2014-10/msg00004.html
Comment 26 SpanKY gentoo-dev 2016-02-13 10:10:46 UTC
i've pushed the patch Debian proposed about a year later to our automake-1.15.  it doesn't help with bundled versions, but so it goes.
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f826cbd3673375bea652a8ffff906a4b8443e25