Merge ~ogayot/ubuntu/+source/sysvinit:merge-lp2018596-mantic into ubuntu/+source/sysvinit:debian/sid

Proposed by Olivier Gayot
Status: Merged
Merge reported by: Olivier Gayot
Merged at revision: 2f66a043184c39572d270bc270e93bf07f36a33f
Proposed branch: ~ogayot/ubuntu/+source/sysvinit:merge-lp2018596-mantic
Merge into: ubuntu/+source/sysvinit:debian/sid
Diff against target: 381 lines (+192/-3)
3 files modified
debian/changelog (+175/-0)
debian/control (+2/-1)
debian/rules (+15/-2)
Reviewer Review Type Date Requested Status
Robie Basak Approve
git-ubuntu import Pending
Review via email: mp+442512@code.launchpad.net

This proposal supersedes a proposal from 2023-05-09.

To post a comment you must log in.
Revision history for this message
Olivier Gayot (ogayot) wrote (last edit ):

Tags base URL
-------------
https://git.launchpad.net/~ogayot/ubuntu/+source/sysvinit/log/?h=merge-lp2018596-mantic

Relevant tags
-------------
lp2018596/logical/3.06-2ubuntu1
lp2018596/split/3.06-2ubuntu1
lp2018596/reconstruct/3.06-4ubuntu1
lp2018596/new/debian
lp2018596/old/ubuntu
lp2018596/old/debian

PPA
---
https://launchpad.net/~ogayot/+archive/ubuntu/mantic-proposed/+packages

Revision history for this message
Robie Basak (racb) wrote :

I'll review this.

Revision history for this message
Robie Basak (racb) wrote :

Thank you for working on this! It looks like this is a straightforward merge from a mechnical perspective, and you've followed git-ubuntu merge workflow correctly.

However, what about this delta that we're carrying? What's the status of minimising it? To that end I've a few questions inline.

review: Needs Information
Revision history for this message
Olivier Gayot (ogayot) wrote :

Thanks for your review Robie!

I answered your comments and will work on adjusting the MP.

Olivier

Revision history for this message
Olivier Gayot (ogayot) :
Revision history for this message
Robie Basak (racb) wrote :

On Tue, May 09, 2023 at 05:39:09PM -0000, Olivier Gayot wrote:
> How would you feel about dropping the change? I'd also like to take the opportunity to fix the previous changelog entries so that it does not wrongly appear as "Adjust d/rules to fix an arch: all build".

If the delta serves no purpose then we should drop it. And if we can't
figure out any reason for it to exist then it's reasonable to proceed on
the assumption that it serves no purpose. Have you tried asking the
person who originally introduced it?

However, please do not change previous changelog entries. That's
confusing since previous uploads cannot be changed and they will still
contain the old text. I would treat old changelog entries as immutable.
You can however explain what you are doing in the changelog entry
associated with this upload, in plain English prose, including
any historical context you wish.

> I guess unifying in Ubuntu would make sense now. I can work on doing that. I must say that I'm not particularly fan of the derives_from_ubuntu variable being "yes" or "no" but keeping two mechanisms seems worse.

Great - it's appropriate (and I would argue a requirement) to be doing
this kind of cleanup during an Ubuntu package merge. The goal is to make
the delta clean and minimal as that generally correlates with
ensuring correctness and maintainability.

Using "yes" and "no" doesn't seem clean, but AIUI make can only do
string comparisons in its conditional includes, so it's the cleanest way
to do it.

> I have not asked Debian if they would like to carry more delta from us. I think it would be a bit of a burden for Debian but I'm happy to ask if you think that's acceptable.

I appreciate that this delta would be far more invasive, so I leave it
to you to decide what would be most appropriate.

> I sent the fix to Debian back when I added it as a delta in Ubuntu. A few days ago, they included it in 3.07 (currently in experimental).
>
> I'd expect it won't need to be carried as a delta in the next upload.
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028586

Ah, perfect. Thanks! I did look but hadn't spotted that. For this
reason, connecting the dots for other developers can be very useful. For
example, you could use:

    d/rules: fix installation of 50-ubuntu-logging when building on Ubuntu (Closes: #1028586)

in the Ubuntu changelog entry.

Revision history for this message
Olivier Gayot (ogayot) wrote :

> If the delta serves no purpose then we should drop it. And if we can't
> figure out any reason for it to exist then it's reasonable to proceed on
> the assumption that it serves no purpose. Have you tried asking the
> person who originally introduced it?

Agreed, I'm going to go ahead and drop it. I did ask the original author of the patch but they do not remember what purpose the patched served at the time.

> However, please do not change previous changelog entries. That's
> confusing since previous uploads cannot be changed and they will still
> contain the old text. I would treat old changelog entries as immutable.
> You can however explain what you are doing in the changelog entry
> associated with this upload, in plain English prose, including
> any historical context you wish.

ACK, will do as suggested. Thanks!

> I appreciate that this delta would be far more invasive, so I leave it
> to you to decide what would be most appropriate.

I opened a discussion [1] in Debian so we can move forward from the current situation. Today our delta for sysvinit is partially managed in Debian (i.e., inclusion of init-functions.d/50-ubuntu-logging) and partially in Ubuntu (i.e., we build only sysvinit-utils on Ubuntu). It does not seem like a sane approach IMO.
Ideally for us, we would upstream our both patches in Debian - and if the other changes are dropped, we could go back to syncing. That said, so far Debian suggests that we keep our vendor specific delta on our side. I'm sure we can discuss but I don't think we can expect syncing to be an option anytime soon.

> example, you could use:
>
> d/rules: fix installation of 50-ubuntu-logging when building on Ubuntu
> (Closes: #1028586)
>
> in the Ubuntu changelog entry.

Good point, will do that, thanks!

[1] http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/2023-May/006077.html

Revision history for this message
Olivier Gayot (ogayot) wrote :

I updated the merge proposal with the changes discussed :)

Revision history for this message
Robie Basak (racb) wrote :

This looks good. Thanks! Have you tested the current version? +1, pending your testing if needed. Let me know when ready and I'll sponsor.

review: Approve
Revision history for this message
Benjamin Drung (bdrung) :
Revision history for this message
Olivier Gayot (ogayot) wrote :

> This looks good. Thanks! Have you tested the current version? +1, pending your testing if needed. Let me know when ready and I'll sponsor.

Thanks Robie! Yes, upgrade to 3.06-4ubuntu1 is painless and I've been running this version on my laptop without issue. As far as tests go, there is no autopkgtest suite.

> Adding a trailing newline?

Yeah, this newline has been around for a while. I actually moved it to a separate commit in the split view [1] (not sure if that was needed) but it comes back at the merge-changelog step.

[1] https://git.launchpad.net/~ogayot/ubuntu/+source/sysvinit/commit/?h=lp2018596/split/3.06-2ubuntu1&id=b88c0f732d73c5c8e72688e0d6151ef5ec47dfd1 ..

Revision history for this message
Robie Basak (racb) wrote :

Sponsored. Thanks!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index 5a9b4ce..d3ef3e5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,22 @@
1sysvinit (3.06-4ubuntu1) mantic; urgency=medium
2
3 * Merge with Debian unstable (LP: #2018596). Remaining changes:
4 - When building for Ubuntu, skip all binaries except for sysvinit-utils
5 - d/rules: fix installation of 50-ubuntu-logging when building on Ubuntu
6 (Closes: #1028586)
7 * Dropped changes:
8 - Define the DEB_HOST_* variables in d/rules if not defined already
9
10 * The dropped change was undocumented and first introduced in focal. It is
11 unclear what it was originally fixing. One assumption is that, when Debian
12 started relying on /usr/share/dpkg/common.mk, the file was not present (or
13 incomplete) on some architectures in Ubuntu. We have kept this change
14 around for nearly four years, potentially for no valid reason.
15 In 3.06-2ubuntu1, this change was worded as "Adjust debian/rules to fix an
16 arch: all build failure". This is a mistake and should not be trusted.
17
18 -- Olivier Gayot <olivier.gayot@canonical.com> Sun, 07 May 2023 01:04:33 +0200
19
1sysvinit (3.06-4) unstable; urgency=medium20sysvinit (3.06-4) unstable; urgency=medium
221
3 * Add Romanian debconf translations with thanks to Remus-Gabriel Chelu22 * Add Romanian debconf translations with thanks to Remus-Gabriel Chelu
@@ -14,6 +33,16 @@ sysvinit (3.06-3) unstable; urgency=medium
1433
15 -- Mark Hindley <leepen@debian.org> Thu, 30 Mar 2023 13:59:53 +010034 -- Mark Hindley <leepen@debian.org> Thu, 30 Mar 2023 13:59:53 +0100
1635
36sysvinit (3.06-2ubuntu1) lunar; urgency=medium
37
38 * Merge with Debian unstable (LP: #2007421). Remaining changes:
39 - When building for Ubuntu, skip all binaries except for sysvinit-utils
40 - Fix absence of changelog.Debian.gz in sysvinit-utils binary package
41 - Adjust debian/rules to fix an arch: all build failure
42 - d/rules: fix installation of 50-ubuntu-logging when building on Ubuntu
43
44 -- Olivier Gayot <olivier.gayot@canonical.com> Thu, 16 Feb 2023 14:53:59 +0100
45
17sysvinit (3.06-2) unstable; urgency=medium46sysvinit (3.06-2) unstable; urgency=medium
1847
19 * Upload to unstable.48 * Upload to unstable.
@@ -49,6 +78,23 @@ sysvinit (3.06~beta1-1) experimental; urgency=medium
4978
50 -- Mark Hindley <leepen@debian.org> Fri, 02 Dec 2022 11:29:21 +000079 -- Mark Hindley <leepen@debian.org> Fri, 02 Dec 2022 11:29:21 +0000
5180
81sysvinit (3.05-7ubuntu2) lunar; urgency=medium
82
83 * d/rules: fix installation of 50-ubuntu-logging when building on Ubuntu
84 (LP: #2002789)
85
86 -- Olivier Gayot <olivier.gayot@canonical.com> Fri, 13 Jan 2023 11:33:36 +0100
87
88sysvinit (3.05-7ubuntu1) lunar; urgency=low
89
90 * Merge from Debian unstable (LP: #1998325). Remaining changes:
91 - When building for Ubuntu, skip all binaries except for sysvinit-utils
92 - Define the DEB_HOST_* variables in d/rules if not defined already
93 * Fix absence of changelog.Debian.gz in sysvinit-utils binary package.
94 (LP: #1998324)
95
96 -- Olivier Gayot <olivier.gayot@canonical.com> Wed, 30 Nov 2022 10:32:54 +0100
97
52sysvinit (3.05-7) unstable; urgency=medium98sysvinit (3.05-7) unstable; urgency=medium
5399
54 * Drop libcrypt-dev from B-Depends, we don't ship sulogin since Stretch100 * Drop libcrypt-dev from B-Depends, we don't ship sulogin since Stretch
@@ -109,6 +155,14 @@ sysvinit (3.05-1) experimental; urgency=medium
109155
110 -- Mark Hindley <leepen@debian.org> Wed, 24 Aug 2022 13:05:57 +0100156 -- Mark Hindley <leepen@debian.org> Wed, 24 Aug 2022 13:05:57 +0100
111157
158sysvinit (3.04-1ubuntu1) kinetic; urgency=low
159
160 * Merge from Debian unstable. (LP: #1987257) Remaining changes:
161 - When building for Ubuntu, skip all binaries except for sysvinit-utils
162 - Define the DEB_HOST_* variables in d/rules if not defined already
163
164 -- Olivier Gayot <olivier.gayot@canonical.com> Sat, 22 Aug 2022 09:57:41 +0200
165
112sysvinit (3.04-1) unstable; urgency=medium166sysvinit (3.04-1) unstable; urgency=medium
113167
114 * New upstream version 3.04168 * New upstream version 3.04
@@ -135,6 +189,14 @@ sysvinit (3.02-1) experimental; urgency=medium
135189
136 -- Mark Hindley <leepen@debian.org> Tue, 29 Mar 2022 16:00:24 +0100190 -- Mark Hindley <leepen@debian.org> Tue, 29 Mar 2022 16:00:24 +0100
137191
192sysvinit (3.01-1ubuntu1) jammy; urgency=low
193
194 * Merge from Debian unstable. (Closes: LP: #1958666) Remaining changes:
195 - When building for Ubuntu, skip all binaries except for sysvinit-utils
196 - Define the DEB_HOST_* variables in d/rules if not defined already
197
198 -- Olivier Gayot <olivier.gayot@canonical.com> Tue, 14 Dec 2021 21:17:22 +0000
199
138sysvinit (3.01-1) unstable; urgency=medium200sysvinit (3.01-1) unstable; urgency=medium
139201
140 * Update upstream signing key.202 * Update upstream signing key.
@@ -196,6 +258,19 @@ sysvinit (3.00~beta-1) experimental; urgency=medium
196258
197 -- Mark Hindley <leepen@debian.org> Wed, 15 Sep 2021 11:19:13 +0100259 -- Mark Hindley <leepen@debian.org> Wed, 15 Sep 2021 11:19:13 +0100
198260
261sysvinit (2.96-7ubuntu2) impish; urgency=medium
262
263 * No-change rebuild to build packages with zstd compression.
264
265 -- Matthias Klose <doko@ubuntu.com> Thu, 07 Oct 2021 12:25:10 +0200
266
267sysvinit (2.96-7ubuntu1) impish; urgency=low
268
269 * Merge from Debian unstable. Remaining changes:
270 - When building for Ubuntu, skip all binaries except for sysvinit-utils.
271
272 -- Steve Langasek <steve.langasek@ubuntu.com> Tue, 27 Apr 2021 20:19:54 -0700
273
199sysvinit (2.96-7) unstable; urgency=medium274sysvinit (2.96-7) unstable; urgency=medium
200275
201 [ Mark Hindley ]276 [ Mark Hindley ]
@@ -208,6 +283,15 @@ sysvinit (2.96-7) unstable; urgency=medium
208283
209 -- Adam Borowski <kilobyte@angband.pl> Sun, 18 Apr 2021 17:38:40 +0200284 -- Adam Borowski <kilobyte@angband.pl> Sun, 18 Apr 2021 17:38:40 +0200
210285
286sysvinit (2.96-6ubuntu1) hirsute; urgency=low
287
288 * Merge from Debian unstable. Remaining changes:
289 - When building for Ubuntu, skip all binaries except for sysvinit-utils.
290 * Dropped changes, no longer needed:
291 - Make mountpoint.c compile with new glibc.
292
293 -- Steve Langasek <steve.langasek@ubuntu.com> Wed, 17 Mar 2021 10:02:02 -0700
294
211sysvinit (2.96-6) unstable; urgency=medium295sysvinit (2.96-6) unstable; urgency=medium
212296
213 [ Matthew Vernon ]297 [ Matthew Vernon ]
@@ -222,6 +306,14 @@ sysvinit (2.96-6) unstable; urgency=medium
222306
223 -- Matthew Vernon <matthew@debian.org> Sun, 21 Feb 2021 13:53:09 +0000307 -- Matthew Vernon <matthew@debian.org> Sun, 21 Feb 2021 13:53:09 +0000
224308
309sysvinit (2.96-5ubuntu1) hirsute; urgency=low
310
311 * Merge from Debian unstable. Remaining changes:
312 - When building for Ubuntu, skip all binaries except for sysvinit-utils.
313 - Make mountpoint.c compile with new glibc.
314
315 -- Steve Langasek <steve.langasek@ubuntu.com> Sat, 24 Oct 2020 19:04:47 -0700
316
225sysvinit (2.96-5) unstable; urgency=low317sysvinit (2.96-5) unstable; urgency=low
226318
227 * Team upload.319 * Team upload.
@@ -265,6 +357,14 @@ sysvinit (2.96-4) unstable; urgency=critical
265357
266 -- Thorsten Glaser <tg@mirbsd.de> Fri, 14 Aug 2020 02:29:31 +0200358 -- Thorsten Glaser <tg@mirbsd.de> Fri, 14 Aug 2020 02:29:31 +0200
267359
360sysvinit (2.96-3ubuntu1) groovy; urgency=low
361
362 * Merge from Debian unstable. Remaining changes:
363 - When building for Ubuntu, skip all binaries except for sysvinit-utils.
364 - Make mountpoint.c compile with new glibc.
365
366 -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 01 May 2020 07:41:28 -0700
367
268sysvinit (2.96-3) unstable; urgency=medium368sysvinit (2.96-3) unstable; urgency=medium
269369
270 * Update Dmitry's address.370 * Update Dmitry's address.
@@ -274,6 +374,14 @@ sysvinit (2.96-3) unstable; urgency=medium
274374
275 -- Adam Borowski <kilobyte@angband.pl> Thu, 19 Mar 2020 23:37:42 +0100375 -- Adam Borowski <kilobyte@angband.pl> Thu, 19 Mar 2020 23:37:42 +0100
276376
377sysvinit (2.96-2.1ubuntu1) focal; urgency=low
378
379 * Merge from Debian unstable. Remaining changes:
380 - When building for Ubuntu, skip all binaries except for sysvinit-utils.
381 - Make mountpoint.c compile with new glibc.
382
383 -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 13 Feb 2020 10:38:21 -0800
384
277sysvinit (2.96-2.1) unstable; urgency=medium385sysvinit (2.96-2.1) unstable; urgency=medium
278386
279 * Non-maintainer upload.387 * Non-maintainer upload.
@@ -291,6 +399,14 @@ sysvinit (2.96-2) unstable; urgency=medium
291399
292 -- Dmitry Bogatov <KAction@debian.org> Thu, 28 Nov 2019 21:07:03 +0000400 -- Dmitry Bogatov <KAction@debian.org> Thu, 28 Nov 2019 21:07:03 +0000
293401
402sysvinit (2.96-1ubuntu1) focal; urgency=low
403
404 * Merge from Debian unstable. Remaining changes:
405 - When building for Ubuntu, skip all binaries except for sysvinit-utils.
406 - Make mountpoint.c compile with new glibc.
407
408 -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 31 Oct 2019 15:59:53 -0700
409
294sysvinit (2.96-1) unstable; urgency=medium410sysvinit (2.96-1) unstable; urgency=medium
295411
296 * New upstream release.412 * New upstream release.
@@ -305,6 +421,21 @@ sysvinit (2.96-1) unstable; urgency=medium
305421
306 -- Dmitry Bogatov <KAction@debian.org> Sat, 19 Oct 2019 00:37:48 +0000422 -- Dmitry Bogatov <KAction@debian.org> Sat, 19 Oct 2019 00:37:48 +0000
307423
424sysvinit (2.96~beta-3ubuntu2) focal; urgency=medium
425
426 * Fix debian/rules to not try to install bits into a sysvinit-core package
427 we aren't building.
428
429 -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 25 Oct 2019 13:21:15 -0700
430
431sysvinit (2.96~beta-3ubuntu1) focal; urgency=low
432
433 * Merge from Debian unstable. Remaining changes:
434 - When building for Ubuntu, skip all binaries except for sysvinit-utils.
435 - Make mountpoint.c compile with new glibc.
436
437 -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 18 Oct 2019 14:21:33 -0700
438
308sysvinit (2.96~beta-3) unstable; urgency=medium439sysvinit (2.96~beta-3) unstable; urgency=medium
309440
310 * Team upload.441 * Team upload.
@@ -358,6 +489,20 @@ sysvinit (2.95-6) unstable; urgency=medium
358489
359 -- Dmitry Bogatov <KAction@debian.org> Fri, 23 Aug 2019 16:26:28 +0000490 -- Dmitry Bogatov <KAction@debian.org> Fri, 23 Aug 2019 16:26:28 +0000
360491
492sysvinit (2.95-5ubuntu2) eoan; urgency=medium
493
494 * Adjust debian/rules to fix an arch: all build failure.
495
496 -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 16 Aug 2019 09:01:15 -0700
497
498sysvinit (2.95-5ubuntu1) eoan; urgency=low
499
500 * Merge from Debian unstable. Remaining changes:
501 - When building for Ubuntu, skip all binaries except for sysvinit-utils.
502 - Make mountpoint.c compile with new glibc.
503
504 -- Steve Langasek <steve.langasek@ubuntu.com> Thu, 15 Aug 2019 23:55:53 -0700
505
361sysvinit (2.95-5) unstable; urgency=medium506sysvinit (2.95-5) unstable; urgency=medium
362507
363 * [2d158bc6] Make default TTYMODE match default TTYPERM of `login' package508 * [2d158bc6] Make default TTYMODE match default TTYPERM of `login' package
@@ -404,6 +549,14 @@ sysvinit (2.95-3) unstable; urgency=medium
404549
405 -- Dmitry Bogatov <KAction@debian.org> Mon, 29 Jul 2019 08:10:44 +0000550 -- Dmitry Bogatov <KAction@debian.org> Mon, 29 Jul 2019 08:10:44 +0000
406551
552sysvinit (2.95-2ubuntu1) eoan; urgency=low
553
554 * Merge from Debian unstable. Remaining changes:
555 - When building for Ubuntu, skip all binaries except for sysvinit-utils.
556 - Make mountpoint.c compile with new glibc.
557
558 -- Steve Langasek <steve.langasek@ubuntu.com> Wed, 24 Jul 2019 12:32:57 -0700
559
407sysvinit (2.95-2) unstable; urgency=medium560sysvinit (2.95-2) unstable; urgency=medium
408561
409 * [22e43c01] Make sure dh_fixperms is called during build.562 * [22e43c01] Make sure dh_fixperms is called during build.
@@ -497,6 +650,14 @@ sysvinit (2.93-9) experimental; urgency=medium
497650
498 -- Dmitry Bogatov <KAction@debian.org> Thu, 14 Feb 2019 20:55:23 +0000651 -- Dmitry Bogatov <KAction@debian.org> Thu, 14 Feb 2019 20:55:23 +0000
499652
653sysvinit (2.93-8ubuntu1) eoan; urgency=low
654
655 * Merge from Debian unstable. Remaining changes:
656 - When building for Ubuntu, skip all binaries except for sysvinit-utils.
657 - Make mountpoint.c compile with new glibc.
658
659 -- Steve Langasek <steve.langasek@ubuntu.com> Mon, 29 Apr 2019 22:02:02 -0700
660
500sysvinit (2.93-8) unstable; urgency=medium661sysvinit (2.93-8) unstable; urgency=medium
501662
502 * Return alternative dependency on file-rc for convenience of663 * Return alternative dependency on file-rc for convenience of
@@ -715,6 +876,19 @@ sysvinit (2.88dsf-59.11) unstable; urgency=medium
715876
716 -- Michael Biebl <biebl@debian.org> Sun, 07 Oct 2018 16:04:09 +0200877 -- Michael Biebl <biebl@debian.org> Sun, 07 Oct 2018 16:04:09 +0200
717878
879sysvinit (2.88dsf-59.10ubuntu2) cosmic; urgency=medium
880
881 * Make mountpoint.c compile with new glibc.
882
883 -- Dimitri John Ledkov <xnox@ubuntu.com> Thu, 04 Oct 2018 16:32:29 +0100
884
885sysvinit (2.88dsf-59.10ubuntu1) bionic; urgency=medium
886
887 * Merge with Debian, restoring 6ac609340af19a8d021c5ab8fea50c65241d1d0b:
888 - When building for Ubuntu, skip all binaries except for sysvinit-utils.
889
890 -- Adam Conrad <adconrad@ubuntu.com> Wed, 01 Nov 2017 15:00:29 -0600
891
718sysvinit (2.88dsf-59.10) unstable; urgency=medium892sysvinit (2.88dsf-59.10) unstable; urgency=medium
719893
720 * Non-maintainer upload.894 * Non-maintainer upload.
@@ -5559,3 +5733,4 @@ sysvinit (2.66-1) unstable; urgency=medium
5559 /var/log and /etc itself.5733 /var/log and /etc itself.
55605734
5561 -- Miquel van Smoorenburg <miquels@cistron.nl> Tue, 29 Oct 1996 13:46:54 +01005735 -- Miquel van Smoorenburg <miquels@cistron.nl> Tue, 29 Oct 1996 13:46:54 +0100
5736
diff --git a/debian/control b/debian/control
index e3b9c91..de14b0e 100644
--- a/debian/control
+++ b/debian/control
@@ -1,7 +1,8 @@
1Source: sysvinit1Source: sysvinit
2Section: admin2Section: admin
3Priority: optional3Priority: optional
4Maintainer: Debian sysvinit maintainers <debian-init-diversity@chiark.greenend.org.uk>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Debian sysvinit maintainers <debian-init-diversity@chiark.greenend.org.uk>
5Uploaders:6Uploaders:
6 Ian Jackson <ijackson@chiark.greenend.org.uk>,7 Ian Jackson <ijackson@chiark.greenend.org.uk>,
7 Benda Xu <heroxbd@gentoo.org>,8 Benda Xu <heroxbd@gentoo.org>,
diff --git a/debian/rules b/debian/rules
index 0a0bb84..723fef6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,6 +27,10 @@ endif
2727
28DH_OPTIONS =28DH_OPTIONS =
2929
30ifeq ($(derives_from_ubuntu),yes)
31 DH_OPTIONS = -Nsysvinit-core -Nsysv-rc -Ninitscripts -Nbootlogd
32endif
33
30# Use debhelper's dh34# Use debhelper's dh
31%:35%:
32 dh $@ $(DH_OPTIONS)36 dh $@ $(DH_OPTIONS)
@@ -44,6 +48,7 @@ override_dh_auto_install-indep:
44override_dh_install-arch:48override_dh_install-arch:
45 dh_install49 dh_install
4650
51ifneq (,$(findstring sysvinit-core, $(shell dh_listpackages)))
47 # sysvinit package52 # sysvinit package
48 if test -e debian/share/inittab.$(DEB_HOST_GNU_TYPE) ; \53 if test -e debian/share/inittab.$(DEB_HOST_GNU_TYPE) ; \
49 then \54 then \
@@ -59,6 +64,7 @@ override_dh_install-arch:
59 $(INSTALL_DATA) debian/share/inittab \64 $(INSTALL_DATA) debian/share/inittab \
60 $(sysvtmp)/usr/share/sysvinit/inittab ; \65 $(sysvtmp)/usr/share/sysvinit/inittab ; \
61 fi66 fi
67endif
6268
63 # initscripts package may include /sys69 # initscripts package may include /sys
64ifneq (,$(findstring $(DEB_HOST_ARCH_OS),linux kfreebsd))70ifneq (,$(findstring $(DEB_HOST_ARCH_OS),linux kfreebsd))
@@ -66,8 +72,9 @@ ifneq (,$(findstring $(DEB_HOST_ARCH_OS),linux kfreebsd))
66endif72endif
6773
68ifeq ($(derives_from_ubuntu),yes)74ifeq ($(derives_from_ubuntu),yes)
69ifneq (,$(findstring lsb-base, $(shell dh_listpackages)))75ifneq (,$(findstring sysvinit-utils, $(shell dh_listpackages)))
70 cp -p debian/src/lsb-base/init-functions.d/50-ubuntu-logging debian/lsb-base/lib/lsb/init-functions.d/76 cp -p debian/src/lsb-base/init-functions.d/50-ubuntu-logging \
77 debian/sysvinit-utils/lib/lsb/init-functions.d/
71endif78endif
72endif79endif
7380
@@ -75,25 +82,31 @@ install-arch: build-arch
75 dh $@ $(DH_OPTIONS)82 dh $@ $(DH_OPTIONS)
7683
77override_dh_installchangelogs-arch:84override_dh_installchangelogs-arch:
85ifneq ($(derives_from_ubuntu),yes)
78 dh_installchangelogs -psysvinit-core doc/Changelog86 dh_installchangelogs -psysvinit-core doc/Changelog
87endif
7988
80 dh_installchangelogs -psysvinit-utils89 dh_installchangelogs -psysvinit-utils
81 rm -f $(utiltmp)$(doc)/sysvinit-utils/changelog90 rm -f $(utiltmp)$(doc)/sysvinit-utils/changelog
82 sed -i -ne '/sysvinit (2.93-8)/q' -e p \91 sed -i -ne '/sysvinit (2.93-8)/q' -e p \
83 $(utiltmp)$(doc)/sysvinit-utils/changelog.Debian92 $(utiltmp)$(doc)/sysvinit-utils/changelog.Debian
8493
94ifneq ($(derives_from_ubuntu),yes)
85 dh_installchangelogs -pbootlogd95 dh_installchangelogs -pbootlogd
86 sed -i -ne '/sysvinit (2.93-8)/q' -e p \96 sed -i -ne '/sysvinit (2.93-8)/q' -e p \
87 $(bootlogdtmp)$(doc)/bootlogd/changelog.Debian97 $(bootlogdtmp)$(doc)/bootlogd/changelog.Debian
98endif
8899
89override_dh_installchangelogs-indep:100override_dh_installchangelogs-indep:
90 dh_installchangelogs101 dh_installchangelogs
102ifneq ($(derives_from_ubuntu),yes)
91 sed -i -ne '/sysvinit (2.93-8)/q' -e p \103 sed -i -ne '/sysvinit (2.93-8)/q' -e p \
92 $(rctmp)$(doc)/sysv-rc/changelog.Debian104 $(rctmp)$(doc)/sysv-rc/changelog.Debian
93105
94 dh_installchangelogs -pinitscripts106 dh_installchangelogs -pinitscripts
95 sed -i -ne '/sysvinit (2.93-8)/q' -e p \107 sed -i -ne '/sysvinit (2.93-8)/q' -e p \
96 $(inittmp)$(doc)/initscripts/changelog.Debian108 $(inittmp)$(doc)/initscripts/changelog.Debian
109endif
97110
98override_dh_installdeb:111override_dh_installdeb:
99 dh_installdeb112 dh_installdeb

Subscribers

People subscribed via source and target branches