Re: [3.19-rc2] builddeb: Update year and git repository URL in debian/copyright

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2015-01-02 at 16:18 +0100, Sedat Dilek wrote:
> On Fri, Jan 2, 2015 at 4:12 PM, Michal Marek <mmarek@xxxxxxx> wrote:
> > On Fri, Jan 02, 2015 at 03:57:52PM +0100, Sedat Dilek wrote:
> >> Happy new 2015!
> >>
> >> I have combined two patches which I had already sent to linux-kbuild ML.
> >
> > Applied to kbuild.git#misc, thanks.
> >
> 
> /o\
> 
> Just FYI...
> I will send out the 3rd in the original triple as "[RFC RESEND]
> builddeb: Try to determine distribution" against kbuild-next.
> From the discussion:
> max had some concerns and if I remember correctly I got no alternativ
> proposal from him.
> Today, I asked friends on #grml on how to do it better.
> I will try to find out if I can ensure lsb_release binary is available
> in all supported Debian/Ubuntu release.
> Not sure if this really necessary.

lsb-release is still not essential or build-essential in Debian.

The distribution (queue) name in the changelog only matters when
uploading to a distribution's package repository, and a builddeb-
generated binary package generally won't be accepted into such a
repository as there is no corresponding Debian-format source package.

In case some Debian derivative or private repository does accept
builddeb-generated binary packages, perhaps it is useful to allow
changing the distribution name from 'unstable'.  But the distribution
(queue) name doesn't necessarily match the codename of the running
release, so we would need to provide some way to set it explicitly.
(E.g. even the official Debian repositories for wheezy have some
different queue names: wheezy-proposed-updates, wheezy-security,
wheezy-backports.)

Apparently this is not needed by most users of builddeb, so we shouldn't
warn very loudly if lsb_release fails.

So how about something like:

if [ -n "$KDEB_CHANGELOG_DIST" ]; then
	distribution="$KDEB_CHANGELOG_DIST"
elif ! distribution="$(lsb_release --codename --short 2>/dev/null)"; then
	distribution=unstable
	echo "I: Using default distribution of 'unstable' in the changelog"
	echo "I: Install lsb-release or set \$KDEB_CHANGELOG_DIST to change this"
fi

Ben.

-- 
Ben Hutchings
Theory and practice are closer in theory than in practice.
                                - John Levine, moderator of comp.compilers

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux