Package: src:jags
Version: 4.2.0-2
Severity: normal

Dear Maintainer,

[ cppunit 0.14 is not in Debian yet, see #861718. Thus normal for now ]

On a rebuild test using ratt I noticed your package doesn't build with
cppunit 0.14:

[...]
dh_auto_configure -- --without-included-ltdl
dh_auto_configure: Compatibility levels before 9 are deprecated (level 5 in use)
        ./configure --build=x86_64-linux-gnu --prefix=/usr 
--includedir=\${prefix}/include --mandir=\${prefix}/share/man 
--infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var 
--disable-silent-rules --libexecdir=\${prefix}/lib/jags 
--disable-maintainer-mode --disable-dependency-tracking --without-included-ltdl
[...]
checking for cppunit-config... no
checking for Cppunit - version >= 1.12.1... no
[...]
configure: creating ./config.status
config.status: creating Makefile
[...]

So here it doesn't find cppunit-config (cppunit-config was removed in
0.14.0) but still continues. Which then "of course" fails since there's
no -lcppunit on linking:

[...]
make[3]: Entering directory '/<<PKGBUILDDIR>>/test'
g++ -DHAVE_CONFIG_H -I. -I..  -I../src/include -I../src/modules   -g -O2 -c -o 
base-base.o `test -f 'base.cc' || echo './'`base.cc
/bin/bash ../libtool  --tag=CXX   --mode=link g++  -g -O2   -o base base-base.o 
../src/modules/base/libbasetest.la -ldl 
libtool: link: g++ -g -O2 -o .libs/base base-base.o  
../src/modules/base/.libs/libbasetest.a 
/<<PKGBUILDDIR>>/src/lib/.libs/libjags.so -ldl
base-base.o: In function `main':
/<<PKGBUILDDIR>>/test/base.cc:17: undefined reference to 
`CppUnit::TestFactoryRegistry::getRegistry(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&)'
/<<PKGBUILDDIR>>/test/base.cc:20: undefined reference to 
`CppUnit::TextTestRunner::TextTestRunner(CppUnit::Outputter*)'
/<<PKGBUILDDIR>>/test/base.cc:21: undefined reference to 
`CppUnit::TestRunner::addTest(CppUnit::Test*)'
/<<PKGBUILDDIR>>/test/base.cc:24: undefined reference to 
`CppUnit::TextTestRunner::result() const'
/<<PKGBUILDDIR>>/test/base.cc:25: undefined reference to 
`CppUnit::CompilerOutputter::CompilerOutputter(CppUnit::TestResultCollector*, 
std::ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, 
std::allocator<char> > const&)'
/<<PKGBUILDDIR>>/test/base.cc:25: undefined reference to 
`CppUnit::TextTestRunner::setOutputter(CppUnit::Outputter*)'
/<<PKGBUILDDIR>>/test/base.cc:27: undefined reference to 
`CppUnit::TextTestRunner::run(std::__cxx11::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, bool, bool, bool)'
/<<PKGBUILDDIR>>/test/base.cc:20: undefined reference to 
`CppUnit::TextTestRunner::~TextTestRunner()'
/<<PKGBUILDDIR>>/test/base.cc:20: undefined reference to 
`CppUnit::TextTestRunner::~TextTestRunner()'
../src/modules/base/.libs/libbasetest.a(libbasetest_la-testbase.o): In function 
`CppUnit::AutoRegisterSuite<BaseFunTest>::AutoRegisterSuite()':
[...]
collect2: error: ld returned 1 exit status
Makefile:605: recipe for target 'base' failed
make[3]: *** [base] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/test'
Makefile:958: recipe for target 'check-am' failed
make[2]: *** [check-am] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/test'
Makefile:426: recipe for target 'check-recursive' failed
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: make -j1 check VERBOSE=1 returned exit code 2
debian/rules:27: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

cppunit 0.14 removed cppunit-config.

You should use pkg-config for it now. (that one is available since
long.)

I put my package for testing to
https://people.debian.org/~rene/libreoffice/5.4/cppunit/

Regards,

Rene

Reply via email to