Package: synaptic
Severity: normal
Tags: patch
Hi Michael,
I've tried to rebuild synaptic for Univention Corporate Server, a Debian
derived
distribution based on Debian stable (currently Lenny, our next release will be
based on Squeeze).
debian/rules parses the lsb_release output and applies either
debian/patches/00list.Ubuntu or debian/patches/00list.Debian.
Since we modify lsb_release to emit our own distro name, the build fails.
IMO all debian/rules files should default to Debian-based settings unless
otherwise specified. Please see attached patch.
Cheers,
Moritz
diff -aur synaptic-0.70~pre1.orig//debian/rules synaptic-0.70~pre1/debian/rules
--- synaptic-0.70~pre1.orig//debian/rules 2010-08-12 15:21:07.000000000 +0200
+++ synaptic-0.70~pre1/debian/rules 2011-02-15 23:04:55.000000000 +0100
@@ -105,12 +105,20 @@
patch: patch-stamp
patch-stamp:
- cp debian/patches/00list.$(DIST) debian/patches/00list
+ifeq "$(DIST)" "Ubuntu"
+ cp debian/patches/00list.Ubuntu debian/patches/00list
+else
+ cp debian/patches/00list.Debian debian/patches/00list
+endif
dpatch apply-all
touch patch-stamp
unpatch:
+ifeq "$(DIST)" "Ubuntu"
cp debian/patches/00list.$(DIST) debian/patches/00list
+else
+ cp debian/patches/00list.Debian debian/patches/00list
+endif
dpatch deapply-all
rm -rf patch-stamp debian/patched