:: Re: [DNG] trash
Página Inicial
Delete this message
Reply to this message
Autor: Adam Borowski
Data:  
Para: dng
Novos Tópicos: [DNG] scanner dependencies
Assunto: Re: [DNG] trash
On Mon, May 29, 2017 at 08:16:28PM +0900, Olaf Meeuwissen wrote:
> Florian Zieboll writes:
> > IIRC, a sane developer had replied to that thread and said
> > that also saned just checks for the existence of libsystemd0 but does
> > not need it at all. So the "dependency" is null and could be removed.
>
> You remember correctly ;-)
>
> It's not a "dependency", it's a compile-time option. To get rid of the
> Depends:, you will need to drop libsystemd-dev (and maybe dh-systemd)
> from the debian/control file and rebuild the package. That's all.


Which actually are (Build-)Dependencies, that turn into actual Dependencies
once built. But indeed, like for the vast majority of infested packages,
it's all it takes -- most upstream developers are not evil, and DTRT when
systemd headers are not available. Even if they're systemd apologists
themselves, many projects want to work on BSD and so on.

A debdiff attached, compile-tested only (I have no scanner hardware).


Meow!
--
Don't be racist. White, amber or black, all beers should be judged based
solely on their merits. Heck, even if occasionally a cider applies for a
beer's job, why not?
On the other hand, corpo lager is not a race.
diff -Nru sane-backends-1.0.25/debian/changelog sane-backends-1.0.25/debian/changelog
--- sane-backends-1.0.25/debian/changelog    2017-05-21 10:04:48.000000000 +0200
+++ sane-backends-1.0.25/debian/changelog    2017-05-29 13:24:39.000000000 +0200
@@ -1,3 +1,10 @@
+sane-backends (1.0.25-4.1.0nosystemd1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Cure systemd infestation.
+
+ -- Adam Borowski <kilobyte@???>  Mon, 29 May 2017 13:24:39 +0200
+
 sane-backends (1.0.25-4.1) unstable; urgency=medium


   * Non-maintainer upload.
diff -Nru sane-backends-1.0.25/debian/control sane-backends-1.0.25/debian/control
--- sane-backends-1.0.25/debian/control    2017-05-21 10:04:48.000000000 +0200
+++ sane-backends-1.0.25/debian/control    2017-05-29 13:23:16.000000000 +0200
@@ -8,7 +8,6 @@
  autoconf,
  chrpath,
  debhelper (>= 10),
- dh-systemd,
  gettext,
  libavahi-client-dev,
  libcam-dev [kfreebsd-any],
@@ -17,7 +16,6 @@
  libieee1284-3-dev [!hurd-i386],
  libjpeg-dev,
  libltdl3-dev,
- libsystemd-dev [linux-any],
  libtiff-dev,
  libusb-1.0-0-dev [!hurd-i386],
  pkg-config,
diff -Nru sane-backends-1.0.25/debian/rules sane-backends-1.0.25/debian/rules
--- sane-backends-1.0.25/debian/rules    2017-05-21 10:04:48.000000000 +0200
+++ sane-backends-1.0.25/debian/rules    2017-05-29 13:24:34.000000000 +0200
@@ -29,7 +29,7 @@
 endif


 %:
-    dh $@ --parallel --with autotools_dev,systemd
+    dh $@ --parallel --with autotools_dev


 override_dh_auto_configure:
     autoconf
@@ -130,9 +130,6 @@
 override_dh_installinit-arch:
     dh_installinit -psane-utils --name=saned


-override_dh_systemd_enable-arch:
-    dh_systemd_enable --no-enable saned.socket
-
 override_dh_strip-arch:
     dh_strip --dbg-package=libsane-dbg


diff -Nru sane-backends-1.0.25/debian/sane-utils.install sane-backends-1.0.25/debian/sane-utils.install
--- sane-backends-1.0.25/debian/sane-utils.install    2017-05-21 10:04:48.000000000 +0200
+++ sane-backends-1.0.25/debian/sane-utils.install    2017-05-29 13:24:22.000000000 +0200
@@ -8,5 +8,3 @@
 usr/share/man/man1/scanimage.1
 usr/share/man/man8/saned.8
 tools/umax_pp usr/bin
-debian/saned.socket lib/systemd/system
-debian/saned@.service lib/systemd/system