Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#806632: libsis-base-java: FTBFS when built with dpkg-buildpackage -A (override_dh_auto_test fails)

12 views
Skip to first unread message

Santiago Vila

unread,
Nov 29, 2015, 11:30:05 AM11/29/15
to
Package: src:libsis-base-java
Version: 14.12.0-1
User: san...@debian.org
Usertags: binary-indep
Severity: important

Dear maintainer:

I tried to build this package with "dpkg-buildpackage -A"
(i.e. only architecture-independent packages), and it failed:

--------------------------------------------------------------------------------
[...]
debian/rules build-indep
dh build-indep --with javahelper
dh_testdir -i
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cp debian/build_native/* source/c
#Needed on Ubuntu 14.04
touch source/c/NEWS source/c/README source/c/AUTHORS source/c/ChangeLog
cd source/c && autoreconf -i
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and

[... snipped ...]

OS: Linux (v3.16.7-ckt11-qemu-amd64)
Test class: UnixTests

Running testGetLinkInfoSymLink
Running testGetLinkInfoSymLinkDanglingLink
Running testGetLinkInfoNonExistent
Running testCreateSymbolicLinkNull
Running testCreateHardLinkNull
Running testGetLinkInfoHardLink
Running testGetUid
Running testGetEuid
Running testGetGid
Running testGetEgid
Running testGetUidForUserName
Running testGetUidForUserNameNull
Running testGetGidForGroupName
Running testGetGidForGroupNameNull
Running testTryGetGroupByName
Running testTryGetGroupByNameNull
Running testTryGetGroupByGid
Running testTryGetUserByName
Running testTryGetUserByNameNull
Running testTryGetUserByUid
Running testDetectProcess
Exception in thread "main" java.lang.AssertionError:
at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
at org.testng.AssertJUnit.assertTrue(AssertJUnit.java:24)
at org.testng.AssertJUnit.assertTrue(AssertJUnit.java:33)
at ch.systemsx.cisd.base.unix.UnixTests.testDetectProcess(UnixTests.java:296)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at ch.systemsx.cisd.base.unix.UnixTests.main(UnixTests.java:323)
at ch.systemsx.cisd.base.AllTests.main(AllTests.java:55)
debian/rules:45: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:15: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

Sorry not to have a fix, as I am reporting many bugs similar to
this one. The common hints are:

* If the only architecture-independent packages are dummy transitional
ones and they were released with jessie, the easy fix is to drop them
now.

* When using "dh", it is allowed to use (independently)
optional targets override_dh_foo-arch and override_dh_foo-indep
(for several values of "foo").


Once that both "dpkg-buildpackage -A" and "dpkg-buildpackage -B" work
properly, the package would be suitable to be uploaded in source-only
form if you wish.

Thanks.

Andreas Tille

unread,
Nov 29, 2015, 1:10:04 PM11/29/15
to
Hi,

it seems this is a general FTBFS error since it also fails for normal
builds. Any hint how to fix this would be welcome.

Kind regards

Andreas.
> _______________________________________________
> Debian-med-packaging mailing list
> Debian-med...@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-packaging
>

--
http://fam-tille.de

tony mancill

unread,
Nov 29, 2015, 6:20:02 PM11/29/15
to
On 11/29/2015 10:04 AM, Andreas Tille wrote:
> Hi,
>
> it seems this is a general FTBFS error since it also fails for normal
> builds. Any hint how to fix this would be welcome.
>
> Kind regards
>
> Andreas.


Hi Andreas,

I am able to build in a clean cowbuilder chroot, but I think the root
cause for the error you're seeing lies with how the Unix class in
libsis-base-java performs process detection. It will:

(a) check for the existence of /proc/$pid/

and if that fails:

(b) invoke "ps -p $pid" and check the return code

If the build environment doesn't provide /proc and doesn't have procps
installed (which is only priority "important" and so isn't guaranteed to
be there), then that could explain the failure you're seeing. If that
fits what you're seeing, you could try adding a build-dep on procps.

Cheers,
tony

signature.asc

Santiago Vila

unread,
Mar 7, 2016, 7:10:05 PM3/7/16
to
unarchive 806632
found 806632 14.12.0-3
thanks

Hi. Sorry for the reopening but "dpkg-buildpackage -A" still does not work.

Now the error is completely different, but since the end result is
still the same (i.e. "dpkg-buildpackage -A does not work"), I'm
reopening the old bug to recycle it.


This is the way it fails now:

--------------------------------------------------------------------------------
[...]
debian/rules build-indep
dh build-indep --with javahelper
dh_testdir -i
dh_update_autotools_config -i
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cp debian/build_native/* source/c
#Needed on Ubuntu 14.04
touch source/c/NEWS source/c/README source/c/AUTHORS source/c/ChangeLog
cd source/c && autoreconf -i
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'

[... snipped ...]

libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -DMACHINE_BYTE_ORDER=1 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT copyByteLong.lo -MD -MP -MF .deps/copyByteLong.Tpo -c copyByteLong.c -fPIC -DPIC -o .libs/copyByteLong.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -DMACHINE_BYTE_ORDER=1 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT copyByteLong.lo -MD -MP -MF .deps/copyByteLong.Tpo -c copyByteLong.c -o copyByteLong.o >/dev/null 2>&1
mv -f .deps/copyByteLong.Tpo .deps/copyByteLong.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -DMACHINE_BYTE_ORDER=1 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT copyByteShort.lo -MD -MP -MF .deps/copyByteShort.Tpo -c -o copyByteShort.lo copyByteShort.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -DMACHINE_BYTE_ORDER=1 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT copyByteShort.lo -MD -MP -MF .deps/copyByteShort.Tpo -c copyByteShort.c -fPIC -DPIC -o .libs/copyByteShort.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -DMACHINE_BYTE_ORDER=1 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT copyByteShort.lo -MD -MP -MF .deps/copyByteShort.Tpo -c copyByteShort.c -o copyByteShort.o >/dev/null 2>&1
mv -f .deps/copyByteShort.Tpo .deps/copyByteShort.Plo
/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -DMACHINE_BYTE_ORDER=1 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT copyCommon.lo -MD -MP -MF .deps/copyCommon.Tpo -c -o copyCommon.lo copyCommon.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -DMACHINE_BYTE_ORDER=1 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT copyCommon.lo -MD -MP -MF .deps/copyCommon.Tpo -c copyCommon.c -fPIC -DPIC -o .libs/copyCommon.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -DMACHINE_BYTE_ORDER=1 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -MT copyCommon.lo -MD -MP -MF .deps/copyCommon.Tpo -c copyCommon.c -o copyCommon.o >/dev/null 2>&1
mv -f .deps/copyCommon.Tpo .deps/copyCommon.Plo
/bin/bash ./libtool --tag=CC --mode=link gcc -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -DMACHINE_BYTE_ORDER=1 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -o libcisd_nativedata.la -rpath /usr/local/lib copyByteChar.lo copyByteDouble.lo copyByteFloat.lo copyByteInt.lo copyByteLong.lo copyByteShort.lo copyCommon.lo
libtool: link: gcc -shared -fPIC -DPIC .libs/copyByteChar.o .libs/copyByteDouble.o .libs/copyByteFloat.o .libs/copyByteInt.o .libs/copyByteLong.o .libs/copyByteShort.o .libs/copyCommon.o -g -O2 -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-soname -Wl,libcisd_nativedata.so.0 -o .libs/libcisd_nativedata.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libcisd_nativedata.so.0" && ln -s "libcisd_nativedata.so.0.0.0" "libcisd_nativedata.so.0")
libtool: link: (cd ".libs" && rm -f "libcisd_nativedata.so" && ln -s "libcisd_nativedata.so.0.0.0" "libcisd_nativedata.so")
libtool: link: ar cru .libs/libcisd_nativedata.a copyByteChar.o copyByteDouble.o copyByteFloat.o copyByteInt.o copyByteLong.o copyByteShort.o copyCommon.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libcisd_nativedata.a
libtool: link: ( cd ".libs" && rm -f "libcisd_nativedata.la" && ln -s "../libcisd_nativedata.la" "libcisd_nativedata.la" )
make[3]: Leaving directory '/<<PKGBUILDDIR>>/source/c'
make[2]: Leaving directory '/<<PKGBUILDDIR>>/source/c'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
jh_build -i
dh_auto_test -i
fakeroot debian/rules binary-indep
dh binary-indep --with javahelper
dh_testroot -i
dh_prep -i
debian/rules override_dh_auto_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_install
dh_installdirs -plibsis-base-jni /usr/lib/jni
dh_installdirs: No packages to build.
cp -L source/c/.libs/*.so debian/*/usr/lib/jni/
cp: target 'debian/*/usr/lib/jni/' is not a directory
debian/rules:25: recipe for target 'override_dh_auto_install' failed
make[1]: *** [override_dh_auto_install] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:15: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit status 2
--------------------------------------------------------------------------------


Thanks.
0 new messages