Source: archvsync
Version: 20170204
Severity: wishlist

Hi!

Ubuntu is currently patching the archvsync package to avoid adding the
byhand file, which launchpad doesn't support.
I also suspects that several others derivatives using archive softward
different than dak don't support byhand as well.

I'm thus proposing to patches to avoid building the tarball in Ubuntu
but at the same time keep building it in Debian; I'll let you choose
what you prefer best.

It would be awesome to have to this applied to the package.

TIA.

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
From 1b6be0dbdc8e0ff229d926bfd7bb474c12d9cb27 Mon Sep 17 00:00:00 2001
From: Mattia Rizzolo <mat...@debian.org>
Date: Mon, 11 Sep 2017 15:46:41 +0200
Subject: [PATCH] Create the byhand package only when building on Debian

Signed-off-by: Mattia Rizzolo <mat...@debian.org>
---
 debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index 7fea343..6c90022 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,7 @@
 # output every command that modifies files on the build system.
 #export DH_VERBOSE = 1
 
+include /usr/share/dpkg/vendor.mk
 include /usr/share/dpkg/pkg-info.mk
 export DEB_VERSION
 
@@ -17,5 +18,7 @@ override_dh_auto_install:
 
 override_dh_builddeb:
 	dh_builddeb
+ifeq ($(DEB_VENDOR),Debian)
 	tar -c -C debian/ftpsync-tar distrib | gzip -n > ../$(TARNAME)
 	dpkg-distaddfile $(TARNAME) byhand -
+endif
-- 
2.14.1

From e738e0453f5713754f3e74e439dd88c3199c7874 Mon Sep 17 00:00:00 2001
From: Mattia Rizzolo <mat...@debian.org>
Date: Mon, 11 Sep 2017 16:11:08 +0200
Subject: [PATCH] Don't build the byhand tarball in Ubuntu

Signed-off-by: Mattia Rizzolo <mat...@debian.org>
---
 debian/rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/rules b/debian/rules
index 7fea343..d428b0b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,7 @@
 # output every command that modifies files on the build system.
 #export DH_VERBOSE = 1
 
+include /usr/share/dpkg/vendor.mk
 include /usr/share/dpkg/pkg-info.mk
 export DEB_VERSION
 
@@ -17,5 +18,7 @@ override_dh_auto_install:
 
 override_dh_builddeb:
 	dh_builddeb
+ifneq ($(DEB_VENDOR),Ubuntu)
 	tar -c -C debian/ftpsync-tar distrib | gzip -n > ../$(TARNAME)
 	dpkg-distaddfile $(TARNAME) byhand -
+endif
-- 
2.14.1

Attachment: signature.asc
Description: PGP signature

Reply via email to