Package: kore
Version: 4.1.0-4
Severity: serious
Tags: patch
Justification: ftbfs
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu jammy ubuntu-patch

Hi Shih-Yuan,

In Ubuntu, the kore source package is failing to build from source due to
incompatibilities with both openssl 3 (currently in Debian experimental) and
postgresql 14 (in Debian unstable):


[...]
src/config.c: In function ‘configure_tls_dhparam’:
src/config.c:810:9: error: ‘PEM_read_bio_DHparams’ is deprecated: Since OpenSSL 
3.0 [-Werror=deprecated-declarations]
  810 |         tls_dhparam = PEM_read_bio_DHparams(bio, NULL, NULL, NULL);
      |         ^~~~~~~~~~~
In file included from /usr/include/openssl/ssl.h:36,
                 from include/kore/kore.h:35,
                 from src/config.c:29:
/usr/include/openssl/pem.h:469:1: note: declared here
  469 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, DHparams, DH)
      | ^~~~~~~~~~~~~~~~~~~
[...]

  (https://launchpad.net/ubuntu/+source/kore/4.1.0-4build1/+build/22583996)

(Other errors follow this one)

A patch to simply turn these errors back into warnings is sufficient to let
the package build, and I think is a reasonable solution until upstream
addresses these issues.  Please see attached.

Thanks for considering,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slanga...@ubuntu.com                                     vor...@debian.org
diff -Nru kore-4.1.0/debian/rules kore-4.1.0/debian/rules
--- kore-4.1.0/debian/rules     2020-09-25 08:41:16.000000000 -0700
+++ kore-4.1.0/debian/rules     2021-12-07 23:17:01.000000000 -0800
@@ -6,6 +6,8 @@
 export TASKS=1
 export PGSQL=1
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+export DEB_CFLAGS_MAINT_APPEND = -Wno-error=deprecated-declarations \
+               -Wno-error=discarded-qualifiers -Wno-error=switch
 
 %:
        dh $@

Reply via email to