Hi Dirk

On 2021-12-02 16:52:25, Dirk Eddelbuettel wrote:
> On 2 December 2021 at 15:57, Dirk Eddelbuettel wrote:
> | Yep. It's in the queue by now. I sometimes forget if an experimental ->
> | unstable passage does or does not need an orig.tar.gz to go along or not but
> | the bots will tell me if so :)
> 
> And by now in unstable.
> 
> Thanks so much for looking after the transition.

gsl needs another upload. It currently lists libgsl-prof as package that
should be built, but it isn't. I've been told that in the past this has
been worked around by manually changing the .dsc before uploading.

Instead of doing that, this could also be solved with a build profile.
See https://wiki.debian.org/BuildProfileSpec and the attached patch. See
also gtk4 and libgtk-4-media-ffmpeg for an example.

Cheers
-- 
Sebastian Ramacher
diff --git a/debian/README.Debian b/debian/README.Debian
index c6658dc..3e8a802 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -25,7 +25,7 @@ i) download the gsl source (and the build dependencies if 
necessary):
 apt-get source libgsl0
 apt-get build-dep libgsl0
 ii) build a binary profiling package:
-DEB_BUILD_OPTIONS=buildprof dpkg-buildpackage -b -rfakeroot -us -uc
+DEB_BUILD_PROFILES=pkg.gsl.prof dpkg-buildpackage -b -rfakeroot -us -uc
 iii) install the resulting .deb
 dpkg -i ../libgsl0-prof_[version]_[arch].deb
 
diff --git a/debian/control b/debian/control
index adde0d0..4314854 100644
--- a/debian/control
+++ b/debian/control
@@ -131,6 +131,7 @@ Provides: libgsl0-prof
 Conflicts: libgsl0-prof
 Replaces: libgsl0-prof (<= 1.16+dfsg-4)
 Depends: libgsl27 (= ${binary:Version}), ${misc:Depends}
+Build-Profiles: <pkg.gsl.prof>
 Description: GNU Scientific Library (GSL) -- profiling symbols package
  The GNU Scientific Library (GSL) is a collection of routines for
  numerical analysis.  The routines are written from scratch by the GSL
diff --git a/debian/rules b/debian/rules
index 6380851..86be4e2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -70,10 +70,10 @@ endif
 LDFLAGS        = $(shell dpkg-buildflags --get LDFLAGS)
 
 
-#setting DEB_BUILD_OPTIONS=buildprof means we build a package
+#setting DEB_BUILD_PORFILES=pkg.gsl.prof means we build a package
 #consisting of static libraries (renamed to libfoo_p.a) with
 #profiling information in.
-ifneq (,$(findstring buildprof,$(DEB_BUILD_OPTIONS)))
+ifneq (,$(findstring pkg.gsl.prof,$(DEB_BUILD_PROFILES)))
 CONFIGTARGET = configure-prof-stamp
 INSTALLTARGET = install-prof-stamp
 BINARYTARGET = binary-prof

Reply via email to