[med-svn] [Git][med-team/emboss-explorer][master] 2 commits: d/rules: cleanup links ahead of dh_perl.

Étienne Mollier (@emollier) gitlab at salsa.debian.org
Sun Feb 25 11:37:10 GMT 2024



Étienne Mollier pushed to branch master at Debian Med / emboss-explorer


Commits:
1ccc5dcc by Étienne Mollier at 2024-02-25T12:10:29+01:00
d/rules: cleanup links ahead of dh_perl.

Closes: #1044407, #1049733

- - - - -
c5d3b0c6 by Étienne Mollier at 2024-02-25T12:11:38+01:00
ready to upload to unstable.

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+emboss-explorer (2.2.0-12) unstable; urgency=medium
+
+  * Team upload.
+  * d/rules: cleanup links ahead of dh_perl. (Closes: #1044407, #1049733)
+
+ -- Étienne Mollier <emollier at debian.org>  Sun, 25 Feb 2024 12:11:22 +0100
+
 emboss-explorer (2.2.0-11) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/rules
=====================================
@@ -2,6 +2,9 @@
 
 export DH_VERBOSE=1
 
+PKGDIR = $(CURDIR)/debian/emboss-explorer
+LIBPKGDIR = $(CURDIR)/debian/libemboss-acd-perl
+
 %:
 	dh $@ --with apache2
 
@@ -12,13 +15,22 @@ endif
 
 override_dh_install:
 	dh_install
-	$(MAKE) install DESTDIR=$(CURDIR)/debian/emboss-explorer PREFIX=/usr
+	$(MAKE) install DESTDIR=$(PKGDIR) PREFIX=/usr
 	# Move ACD.pm to a separate package, that is useful for making
 	# manpages from EMBOSS ACD files without being bothered by the
 	# dependancy on web servers.
-	mv $(CURDIR)/debian/emboss-explorer/usr/share/perl5/EMBOSS/ACD.pm $(CURDIR)/debian/libemboss-acd-perl/usr/share/perl5/EMBOSS/
-	mv $(CURDIR)/debian/emboss-explorer/usr/share/man/man3/EMBOSS::ACD.3pm $(CURDIR)/debian/libemboss-acd-perl/usr/share/man/man3/
+	mv -v $(PKGDIR)/usr/share/perl5/EMBOSS/ACD.pm \
+		$(LIBPKGDIR)/usr/share/perl5/EMBOSS/
+	mv -v $(PKGDIR)/usr/share/man/man3/EMBOSS::ACD.3pm \
+		$(LIBPKGDIR)/usr/share/man/man3/
 
 override_dh_installman:
 	# FIXME: strange "Permission denied" error - no idea why
 	dh_installman || true
+
+execute_before_dh_auto_clean:
+	# Cleanup links ahead of time to avoid dh_perl choking on them.
+	rm -vf $(PKGDIR)/usr/share/doc/emboss-explorer/html \
+		$(PKGDIR)/etc/emboss-explorer/apache2.conf \
+		$(PKGDIR)/usr/share/emboss-explorer/html/style \
+		$(PKGDIR)/usr/share/emboss-explorer/html/output



View it on GitLab: https://salsa.debian.org/med-team/emboss-explorer/-/compare/b05c959f00d63b5822e4581a6b2d96d0a6a1f701...c5d3b0c6644e630d7ba7d6af47278e4174da2a20

-- 
View it on GitLab: https://salsa.debian.org/med-team/emboss-explorer/-/compare/b05c959f00d63b5822e4581a6b2d96d0a6a1f701...c5d3b0c6644e630d7ba7d6af47278e4174da2a20
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20240225/4ea8ff08/attachment-0001.htm>


More information about the debian-med-commit mailing list