Processed: Re: [Patch+NMU] Re: Bug#818443: sdate: FTBFS: libtool: Version mismatch error

2016-09-09 Thread Debian Bug Tracking System
Processing control commands:

> tag -1 + pending
Bug #818443 [sdate] sdate: FTBFS: libtool: Version mismatch error
Added tag(s) pending.

-- 
818443: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818443
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#818443: [Patch+NMU] Re: Bug#818443: sdate: FTBFS: libtool: Version mismatch error

2016-09-09 Thread Axel Beckert
Control: tag -1 + patch

Hi Christoph,

Martin Michlmayr wrote:
> > libtool: Version mismatch error.  This is libtool 2.4.6 Debian-2.4.6-0.1, 
> > but the
> > libtool: definition of this LT_INIT comes from libtool 2.4.2.
> > libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6 
> > Debian-2.4.6-0.1
> > libtool: and run autoconf again.
> > Makefile:441: recipe for target 'libsdate.lo' failed
> > make[2]: *** [libsdate.lo] Error 63

Reason for this seems that "--with autoreconf" only runs autoreconf in
the root directory, but not in the subdirectory "fake".

So the following patch suffices to fix the FTBFS for me:

diff -Nru sdate-0.4/debian/rules sdate-0.4+nmu1/debian/rules
--- sdate-0.4/debian/rules  2014-04-25 10:42:03.0 +0200
+++ sdate-0.4+nmu1/debian/rules 2016-09-09 23:10:42.0 +0200
@@ -14,6 +14,7 @@
 override_dh_auto_configure:
mkdir obj objfake
cd obj && CFLAGS="$(CFLAGS)" ../configure --prefix=/usr 
--mandir=/usr/share/man --libdir=/usr/lib/libsdate
+   cd fake && autoreconf -f
cd objfake && CFLAGS="$(CFLAGS)" ../fake/configure --prefix=/usr 
--mandir=/usr/share/man
 
 override_dh_auto_build:

dh_autoreconf can't be called twice, hence I had to call autoreconf
manually. So this doesn't clean up any changes autoreconf made, and
hence, if I build the package twice in a row, I get a larger diff:

 config.h.in  |  119 --
 debian/rules |1 
 fake/Makefile.in |   54 -
 fake/aclocal.m4  | 2741 +++
 fake/configure   | 2080 +

So I actually recommend to also remove config.h.in, fake/Makefile.in,
fake/aclocal.m4, and fake/configure in the clean target, too.

Accordingly that diffstat looks much more sane:

 config.h.in  |  119 
 debian/rules |3 
 fake/Makefile.in |  811 ---
 fake/aclocal.m4  | 9788 -
 fake/configure   |14453 ---

Also the source package became much smaller:

-rw-r--r-- 1 abe abe 225702 Apr 25  2014 ../sdate_0.4.tar.gz
-rw-r--r-- 1 abe abe  35152 Sep  9 23:45 ../sdate_0.4+nmu1.tar.gz

So the full patch for that is:

diff -Nru sdate-0.4/debian/rules sdate-0.4+nmu1/debian/rules
--- sdate-0.4/debian/rules  2014-04-25 10:42:03.0 +0200
+++ sdate-0.4+nmu1/debian/rules 2016-09-09 23:10:42.0 +0200
@@ -14,6 +14,7 @@
 override_dh_auto_configure:
mkdir obj objfake
cd obj && CFLAGS="$(CFLAGS)" ../configure --prefix=/usr 
--mandir=/usr/share/man --libdir=/usr/lib/libsdate
+   cd fake && autoreconf -f
cd objfake && CFLAGS="$(CFLAGS)" ../fake/configure --prefix=/usr 
--mandir=/usr/share/man
 
 override_dh_auto_build:
@@ -24,7 +25,7 @@
cd obj && $(MAKE) check
 
 override_dh_clean:
-   rm -rf build-stamp .deps obj objfake autom4te.cache
+   rm -rf build-stamp .deps obj objfake autom4te.cache config.h.in 
fake/Makefile.in fake/aclocal.m4 fake/configure
dh_clean
 
 override_dh_auto_install:

I'll try to make up an NMU for this. Since this package is marked
LowThresholdNMU and since I know that you won't be mad at me, I'll
upload it as soon as I got a proper NMU. :-) Will post the full
debdiff afterwards.

Regards, Axel
-- 
 ,''`.  |  Axel Beckert , http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-|  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE


signature.asc
Description: Digital signature


Processed: [Patch+NMU] Re: Bug#818443: sdate: FTBFS: libtool: Version mismatch error

2016-09-09 Thread Debian Bug Tracking System
Processing control commands:

> tag -1 + patch
Bug #818443 [sdate] sdate: FTBFS: libtool: Version mismatch error
Added tag(s) patch.

-- 
818443: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=818443
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#818443: sdate: FTBFS: libtool: Version mismatch error

2016-03-19 Thread Martin Michlmayr
Package: sdate
Version: 0.4
Severity: serious

This package fails to build in unstable:

> sbuild (Debian sbuild) 0.68.0 (15 Jan 2016) on dl580gen9-02.hlinux
...
> make[2]: Leaving directory '/<>/obj'
> cd objfake && /usr/bin/make
> make[2]: Entering directory '/<>/objfake'
> /bin/bash ./libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"sdate\" 
> -DPACKAGE_TARNAME=\"sdate\" -DPACKAGE_VERSION=\"0.4\" 
> -DPACKAGE_STRING=\"sdate\ 0.4\" -DPACKAGE_BUGREPORT=\"c...@df7cb.de\" 
> -DPACKAGE_URL=\"\" -DPACKAGE=\"sdate\" -DVERSION=\"0.4\" -DSTDC_HEADERS=1 
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
> -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_LIBDL=1 -I. 
> -I../fake   -Wdate-time -D_FORTIFY_SOURCE=2  -W -Wall -g -O2 -MT libsdate.lo 
> -MD -MP -MF .deps/libsdate.Tpo -c -o libsdate.lo ../fake/libsdate.c
> libtool: Version mismatch error.  This is libtool 2.4.6 Debian-2.4.6-0.1, but 
> the
> libtool: definition of this LT_INIT comes from libtool 2.4.2.
> libtool: You should recreate aclocal.m4 with macros from libtool 2.4.6 
> Debian-2.4.6-0.1
> libtool: and run autoconf again.
> Makefile:441: recipe for target 'libsdate.lo' failed
> make[2]: *** [libsdate.lo] Error 63

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise