Source: openssl
Version: 3.0.7-1
Severity: minor
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

openssl builds a udeb. As such it would be nice to opt out of building
it via the noudeb build profile. I'm attaching a patch for your
convenience.

Helmut
diff --minimal -Nru openssl-3.0.7/debian/changelog 
openssl-3.0.7/debian/changelog
--- openssl-3.0.7/debian/changelog      2022-11-01 21:39:01.000000000 +0100
+++ openssl-3.0.7/debian/changelog      2022-11-27 17:04:58.000000000 +0100
@@ -1,3 +1,10 @@
+openssl (3.0.7-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Support the noudeb build profile. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 27 Nov 2022 17:04:58 +0100
+
 openssl (3.0.7-1) unstable; urgency=medium
 
   * Import 3.0.7
diff --minimal -Nru openssl-3.0.7/debian/control openssl-3.0.7/debian/control
--- openssl-3.0.7/debian/control        2022-09-22 23:03:56.000000000 +0200
+++ openssl-3.0.7/debian/control        2022-11-27 17:03:53.000000000 +0100
@@ -44,6 +44,7 @@
 
 Package: libcrypto3-udeb
 Package-Type: udeb
+Build-Profiles: <!noudeb>
 Section: debian-installer
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
@@ -57,6 +58,7 @@
 
 Package: libssl3-udeb
 Package-Type: udeb
+Build-Profiles: <!noudeb>
 Section: debian-installer
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
diff --minimal -Nru openssl-3.0.7/debian/rules openssl-3.0.7/debian/rules
--- openssl-3.0.7/debian/rules  2022-11-01 20:17:57.000000000 +0100
+++ openssl-3.0.7/debian/rules  2022-11-27 17:04:57.000000000 +0100
@@ -119,10 +119,12 @@
        mv debian/tmp/usr/lib/ssl/{certs,openssl.cnf,private} 
debian/tmp/etc/ssl/
        ln -s /etc/ssl/{certs,openssl.cnf,private} debian/tmp/usr/lib/ssl/
        ln -s /etc/ssl/certs/ca-certificates.crt debian/tmp/usr/lib/ssl/cert.pem
+ifeq (,$(filter noudeb,$(DEB_BUILD_PROFILES)))
        cp -pf debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libcrypto.so.* 
debian/libcrypto3-udeb/usr/lib/
        cp -pf debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/ossl-modules/*.so 
debian/libcrypto3-udeb/usr/lib/ossl-modules
        cp -pf debian/tmp/etc/ssl/openssl.cnf 
debian/libcrypto3-udeb/usr/lib/ssl/openssl.cnf
        cp -pf debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libssl.so.* 
debian/libssl3-udeb/usr/lib/
+endif
        cp -auv build_shared/lib*.so* debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
        for opt in $(OPTS); \
                do set -xe; \

Reply via email to