Bug#923743: pcre3: FTBFS (dh_makeshlibs fails)

2019-03-06 Thread Matthew Vernon
On 06/03/2019 15:04, Andrej Shadura wrote:
> On Mon, 04 Mar 2019 22:54:04 + Santiago Vila  wrote:
>> dh_makeshlibs -plibpcre3 --add-udeb="libpcre3-udeb" -V 'libpcre3 (>= 
>> 1:8.35)' -- -c4
>> dh_makeshlibs -plibpcrecpp0v5 -V 'libpcrecpp0v5 (>= 7.7)' -- -c4
>> dpkg-gensymbols: error: some symbols or patterns disappeared in the symbols 
>> file: see diff output below
>> dpkg-gensymbols: warning: debian/libpcrecpp0v5/DEBIAN/symbols doesn't match 
>> completely debian/libpcrecpp0v5.symbols
>> --- debian/libpcrecpp0v5.symbols (libpcrecpp0v5_2:8.39-11_amd64)
>> +++ dpkg-gensymbolsV2Wi2n2019-03-04 12:36:00.103243818 +
>> @@ -80,9 +80,9 @@
>>   (c++)"pcrecpp::Scanner::SetSkipExpression(char const*)@Base" 7.7
>>   (c++)"pcrecpp::Scanner::Skip(char const*)@Base" 7.7
> 
> Please find attached patch which fixes the issue.
> 

Thanks :) That symbols file is often a source of sadness.

I should get this uploaded tomorrow.

Regards,

Matthew



Bug#923743: pcre3: FTBFS (dh_makeshlibs fails)

2019-03-06 Thread Andrej Shadura
On Mon, 04 Mar 2019 22:54:04 + Santiago Vila  wrote:
> dh_makeshlibs -plibpcre3 --add-udeb="libpcre3-udeb" -V 'libpcre3 (>= 1:8.35)' 
> -- -c4
> dh_makeshlibs -plibpcrecpp0v5 -V 'libpcrecpp0v5 (>= 7.7)' -- -c4
> dpkg-gensymbols: error: some symbols or patterns disappeared in the symbols 
> file: see diff output below
> dpkg-gensymbols: warning: debian/libpcrecpp0v5/DEBIAN/symbols doesn't match 
> completely debian/libpcrecpp0v5.symbols
> --- debian/libpcrecpp0v5.symbols (libpcrecpp0v5_2:8.39-11_amd64)
> +++ dpkg-gensymbolsV2Wi2n 2019-03-04 12:36:00.103243818 +
> @@ -80,9 +80,9 @@
>   (c++)"pcrecpp::Scanner::SetSkipExpression(char const*)@Base" 7.7
>   (c++)"pcrecpp::Scanner::Skip(char const*)@Base" 7.7

Please find attached patch which fixes the issue.

-- 
Cheers,
  Andrej
diff -Nru pcre3-8.39/debian/changelog pcre3-8.39/debian/changelog
--- pcre3-8.39/debian/changelog 2018-07-21 15:59:04.0 +0200
+++ pcre3-8.39/debian/changelog 2019-03-06 15:52:46.0 +0100
@@ -1,3 +1,10 @@
+pcre3 (2:8.39-11.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Mark one more STL symbol as optional (Closes: #923743).
+
+ -- Andrej Shadura   Wed, 06 Mar 2019 15:52:46 +0100
+
 pcre3 (2:8.39-11) unstable; urgency=medium
 
   [ Matthias Klose ]
diff -Nru pcre3-8.39/debian/libpcrecpp0v5.symbols 
pcre3-8.39/debian/libpcrecpp0v5.symbols
--- pcre3-8.39/debian/libpcrecpp0v5.symbols 2018-07-21 15:48:28.0 
+0200
+++ pcre3-8.39/debian/libpcrecpp0v5.symbols 2019-03-06 15:50:57.0 
+0100
@@ -1,6 +1,6 @@
 libpcrecpp.so.0 libpcrecpp0v5 #MINVER#
  (c++|optional=STL)"void std::vector 
>::_M_realloc_insert(__gnu_cxx::__normal_iterator > >, 
pcrecpp::StringPiece&&)@Base" 2:8.39-9
- (c++)"void std::vector 
>::emplace_back(pcrecpp::StringPiece&&)@Base" 2:8.39-10
+ (c++|optional=STL)"void std::vector 
>::emplace_back(pcrecpp::StringPiece&&)@Base" 2:8.39-10
  (c++|optional=STL)"void std::__cxx11::basic_string, std::allocator >::_M_construct(char 
const*, char const*, std::forward_iterator_tag)@Base" 2:8.39-10
  (c++)"operator<<(std::basic_ostream >&, 
pcrecpp::StringPiece const&)@Base" 8.38
  (c++)"pcrecpp::Arg::parse_char(char const*, int, void*)@Base" 7.7


signature.asc
Description: OpenPGP digital signature


Bug#923743: pcre3: FTBFS (dh_makeshlibs fails)

2019-03-04 Thread Santiago Vila
Package: src:pcre3
Version: 2:8.39-11
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster but it failed:


[...]
 debian/rules build-arch
debian/jit-test.c:9:4: warning: #warning JIT enabled [-Wcpp]
   #warning JIT enabled
^~~
debian/jit-test.c:9:4: warning: #warning JIT enabled [-Wcpp]
   #warning JIT enabled
^~~
dh_testdir
# Add here commands to configure the package.
dh_autoreconf
libtoolize: putting auxiliary files in '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'

[... snipped ...]

dh_testroot -a
dh_install -a
# This man page is in the main package, don't want it in -dev
rm debian/libpcre3-dev/usr/share/man/man3/pcrepattern.3
# Move actual library to /lib
mkdir -p debian/libpcre3/lib/x86_64-linux-gnu
mv debian/libpcre3/usr/lib/x86_64-linux-gnu/libpcre.so.* 
debian/libpcre3/lib/x86_64-linux-gnu
ln -sf /lib/x86_64-linux-gnu/libpcre.so.3 
debian/libpcre3-dev/usr/lib/x86_64-linux-gnu/libpcre.so
# we never need to reference the library path in pcre-config on
# Debian, so clip it out so that the script will be multiarch-safe.
sed -i -e"s,/x86_64-linux-gnu,,g" debian/libpcre3-dev/usr/bin/pcre-config
dh_link -a
dh_installdocs -a
dh_installexamples -a
dh_installman -a
dh_installinfo -a
dh_installchangelogs -a ChangeLog
dh_strip -a --dbg-package=libpcre3-dbg
dh_compress -a
dh_fixperms -a
sed -e 's/JIT//' debian/libpcre3.symbols.in > debian/libpcre3.symbols
sed -e 's/JIT//' debian/libpcre16-3.symbols.in > debian/libpcre16-3.symbols
sed -e 's/JIT//' debian/libpcre32-3.symbols.in > debian/libpcre32-3.symbols
dh_makeshlibs -plibpcre3 --add-udeb="libpcre3-udeb" -V 'libpcre3 (>= 1:8.35)' 
-- -c4
dh_makeshlibs -plibpcrecpp0v5 -V 'libpcrecpp0v5 (>= 7.7)' -- -c4
dpkg-gensymbols: error: some symbols or patterns disappeared in the symbols 
file: see diff output below
dpkg-gensymbols: warning: debian/libpcrecpp0v5/DEBIAN/symbols doesn't match 
completely debian/libpcrecpp0v5.symbols
--- debian/libpcrecpp0v5.symbols (libpcrecpp0v5_2:8.39-11_amd64)
+++ dpkg-gensymbolsV2Wi2n   2019-03-04 12:36:00.103243818 +
@@ -80,9 +80,9 @@
  (c++)"pcrecpp::Scanner::SetSkipExpression(char const*)@Base" 7.7
  (c++)"pcrecpp::Scanner::Skip(char const*)@Base" 7.7
  (c++)"pcrecpp::Scanner::~Scanner()@Base" 7.7
-#MISSING: 2:8.39-9# (c++|optional=STL)"std::vector 
>::_M_insert_aux(__gnu_cxx::__normal_iterator > >, 
pcrecpp::StringPiece const&)@Base" 7.7
+#MISSING: 2:8.39-11# (c++|optional=STL)"std::vector 
>::_M_insert_aux(__gnu_cxx::__normal_iterator > >, 
pcrecpp::StringPiece const&)@Base" 7.7
  (c++|optional=STL)"void std::__cxx11::basic_string, std::allocator >::_M_construct(char 
const*, char const*, std::forward_iterator_tag)@Base" 2:8.39-10
-#MISSING: 2:8.39-9# (c++|optional=STL)"void std::vector 
>::_M_emplace_back_aux(pcrecpp::StringPiece&&)@Base" 
2:8.39-2
+#MISSING: 2:8.39-11# (c++|optional=STL)"void std::vector 
>::_M_emplace_back_aux(pcrecpp::StringPiece&&)@Base" 
2:8.39-2
  (c++|optional=STL)"void std::vector >::_M_realloc_insert(__gnu_cxx::__normal_iterator > >, 
pcrecpp::StringPiece const&)@Base" 2:8.39-4
  (c++|optional=STL)"void std::vector 
>::_M_realloc_insert(__gnu_cxx::__normal_iterator > >, 
pcrecpp::StringPiece&&)@Base" 2:8.39-9
- (c++)"void std::vector 
>::emplace_back(pcrecpp::StringPiece&&)@Base" 2:8.39-10
+#MISSING: 2:8.39-11# (c++)"void std::vector 
>::emplace_back(pcrecpp::StringPiece&&)@Base" 2:8.39-10
dh_makeshlibs: failing due to earlier errors
make: *** [debian/rules:116: binary-arch] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-arch subprocess returned 
exit status 2


The build was made in my autobuilder with "dpkg-buildpackage -B"
and it also fails here:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/pcre3.html

If this is really a bug in one of the build-depends, please use reassign and 
affects,
so that this is still visible in the BTS web page for this package.

Thanks.