tags 1001529 patch
thanks

On Sat, Dec 11, 2021 at 04:55:07PM +0100, Stefan Pöschel wrote:
> Package: libsrt-openssl-dev
> Version: 1.4.2-1.3
> Severity: normal
> 
> The pkg-config files of this package (srt.pc and haisrt.pc) apply to the
> GnuTLS version (libsrt-gnutls-dev) of this library, as they refer to
> its lib name ("srt-gnutls") and to GnuTLS as dependancy. Therefore the
> files cannot be used to aid using the OpenSSL flavour of this library.

After building first the OpenSSL flavor and then the GnuTLS flavor
debian/rules installed both in that order into debian/tmp, claiming
this "Does not overwrite anything". Then, libsrt-openssl-dev.install
caused the *.pc files of the GnuTLS flavor to be installed for OpenSSL.

The intention then was to copy the *.pc files from their flavor-specific
build directories into their respective install tree, overwriting what
might already be there, but that unfortunately did not include the
correct path for OpenSSL.

The following patch fixes this:

| diff -Nru srt-1.4.2/debian/rules srt-1.4.2/debian/rules
| --- srt-1.4.2/debian/rules      2021-01-19 15:12:44.000000000 +0100
| +++ srt-1.4.2/debian/rules      2022-02-21 21:34:30.000000000 +0100
| @@ -60,8 +60,8 @@
| 
|  override_dh_install:
|         dh_install
| -       install -d debian/libsrt-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/
| -       install -m 0644 build-openssl/*.pc 
debian/libsrt-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/
| +       install -d 
debian/libsrt-openssl-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/
| +       install -m 0644 build-openssl/*.pc 
debian/libsrt-openssl-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/
|         install -d 
debian/libsrt-gnutls-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/
|         install -m 0644 build-gnutls/*.pc 
debian/libsrt-gnutls-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/
| 

With this patch applied (and also with Steve's patch from #984352
applied to fix the FTBFS with GCC-11) the pkg-config files of
libsrt-openssl-dev turn out like this:

| prefix=/usr
| exec_prefix=${prefix}
| libdir=${exec_prefix}/lib/x86_64-linux-gnu
| includedir=${prefix}/include
| 
| Name: srt
| Description: SRT library set
| Version: 1.4.2
| Libs: -L${libdir} -lsrt
| Libs.private:  -lpthread -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
| Cflags: -I${includedir} -I${includedir}/srt
| Requires.private: openssl libcrypto

Cheers,
Flo

Attachment: signature.asc
Description: PGP signature

Reply via email to