All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio Fantoni <fabio.fantoni@heliman.it>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "fantonifabio@tiscali.it" <fantonifabio@tiscali.it>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH v2] tools: Improve make deb
Date: Tue, 26 Feb 2013 15:16:44 +0100	[thread overview]
Message-ID: <512CC3CC.2010505@heliman.it> (raw)
In-Reply-To: <1361884713.26546.296.camel@zakaz.uk.xensource.com>

Il 26/02/2013 14:18, Ian Campbell ha scritto:
> On Tue, 2013-02-26 at 13:12 +0000, Stefano Stabellini wrote:
>> On Tue, 26 Feb 2013, Ian Campbell wrote:
>>> On Tue, 2013-02-26 at 12:58 +0000, Stefano Stabellini wrote:
>>>>> +cat >deb/DEBIAN/postrm <<EOF
>>>>> +#!/bin/bash -e
>>>>> +insserv -r xendomains &&
>>>>> +insserv -r xencommons
>>> [...]
>>>> All the changes look good to me
>>> This one certainly isn't, calling insserv directly in a pre/post inst is
>>> not the correct Debian interface to use.
>>>
>>> Better to call update-rc.d I think, or use dh_installinit (and grow a
>>> build time dependency on debhelper).
>> I am _very_ ignorant in deb packaging, but this wiki
>> [...]
>>   maybe this is the recommended thing to do for sysadmins, not for
>> packagers?
> AIUI, yes. The document to refer to for anything to do with Debian
> Packaging is the Debian Policy Manual:
>          http://www.debian.org/doc/debian-policy/
>
> In this case:
>          http://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3
>          
>          Maintainers should use the abstraction layer provided by the
>          update-rc.d and invoke-rc.d programs to deal with initscripts in
>          their packages' scripts such as postinst, prerm and postrm.
>          
>          Directly managing the /etc/rc?.d links and directly invoking
>          the /etc/init.d/ initscripts should be done only by packages
>          providing the initscript subsystem (such as sysv-rc and
>          file-rc).
>
> Ian.
>
Sorry, Ian is right on this. I learned how to create deb packages 
according to the standards in the last months, I had better double check 
the patch.
I'll redo init with update-rc.d in next patch version.
The debian folder with compliance of deb policy 3.9.4 is probably loss 
of time that I can better use helping the official package.
Are there other important things to do in "make deb"? Probably is 
sufficent, I used it for my testing system for one year for hundreds of 
fast test build without problem.

  reply	other threads:[~2013-02-26 14:16 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-26  9:28 [PATCH v2] tools: Improve make deb fantonifabio
2013-02-26 12:58 ` Stefano Stabellini
2013-02-26 13:09   ` Ian Campbell
2013-02-26 13:12     ` Stefano Stabellini
2013-02-26 13:18       ` Ian Campbell
2013-02-26 14:16         ` Fabio Fantoni [this message]
2013-02-26 14:23           ` Alex Bligh
2013-02-26 15:03             ` Fabio Fantoni
2013-02-26 15:12               ` Ian Campbell
2013-02-26 15:40                 ` Fabio Fantoni
2013-02-26 15:49                   ` Ian Campbell
2013-02-26 14:22     ` Alex Bligh
2013-02-26 16:27 ` Ian Jackson
2013-02-26 16:45   ` Stefano Stabellini
2013-02-26 17:09     ` Ian Campbell
2013-02-26 17:09     ` Tim Deegan
2013-02-26 17:12       ` Ian Jackson
2013-02-26 17:20         ` Tim Deegan
2013-02-26 17:22           ` Ian Jackson
2013-02-26 17:25             ` Tim Deegan
2013-02-26 17:33               ` Stefano Stabellini
2013-02-26 17:39                 ` Ian Campbell
2013-02-27 10:54                   ` George Dunlap
2013-02-27 11:16                     ` Ian Campbell
2013-02-27 11:58                     ` Stefano Stabellini
2013-02-27 20:00                       ` Alex Bligh
2013-02-27 20:07                         ` Ian Campbell
2013-02-28  9:40                           ` Stefan Bader
2013-02-28 10:25                             ` Ian Campbell
2013-02-28 10:51                             ` George Dunlap
2013-02-28 11:53                               ` Ian Jackson
2013-02-28 12:03                                 ` George Dunlap
2013-02-28 15:11                                   ` Ian Jackson
2013-02-28 18:31                               ` Alex Bligh
2013-03-01  9:35                                 ` Tim Deegan
2013-03-04 15:30                                   ` Alex Bligh
2013-03-07 10:46                                     ` Tim Deegan
2013-02-26 17:40                 ` Ian Jackson
2013-02-26 17:57                   ` Stefano Stabellini
2013-02-27 10:57                     ` George Dunlap
2013-02-27 11:19                     ` Ian Campbell
2013-02-27 17:12                       ` Ian Jackson
2013-02-27 17:17                       ` Tim Deegan
2013-02-28 16:12                         ` [PATCH v2] tools: Improve make deb [and 1 more messages] Ian Jackson
2013-02-26 17:44                 ` [PATCH v2] tools: Improve make deb Tim Deegan
2013-02-26 17:46           ` Sander Eikelenboom
2013-02-26 17:50             ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=512CC3CC.2010505@heliman.it \
    --to=fabio.fantoni@heliman.it \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=fantonifabio@tiscali.it \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.