Bug#681289: debian-policy: Changelog and copyright should be package metadata

2013-05-13 Thread Ansgar Burchardt
Hi,

Raphaël Hertzog writes:
> We should thus modify the policy to say:
> [...]
> 3/ that programs that want to retrieve the changelog and/or copyright
>file of a .deb file should use dpkg-deb -I 
>" (or look for the changelog/copyright file in
>the directory extracted with dpkg-deb -e )

Please don't require the use of a command-line utility to inspect binary
packages. The location can be specified and you can recommend using
dpkg-deb, but libraries such as python-apt could (should?) implement
this themselves and not need to fork an external program.

Currently one can exclude changelog and copyright files from being
installed entirely. Will this feature remain available?

Ansgar


-- 
To UNSUBSCRIBE, email to debian-policy-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/5190bbbe.3080...@debian.org



Bug#681289: debian-policy: Changelog and copyright should be package metadata

2013-05-12 Thread Cyril Brulebois
Raphaël Hertzog  (12/07/2012):
> Additionnaly it also solves a problem that we have with multi-arch
> same packages and bin-nmu. Such a bin-nmu means that the changelog
> on the bin-nmued architecture will be different from the other
> arches and the package is thus no longer co-installable.

When do we get a version of dpkg that is able to co-install binNMU'd
packages? Given jessie's development cycle is open, and given the
amount of transitions, it would be nice to have ASAP.

Mraw,
KiBi.


signature.asc
Description: Digital signature


Bug#681289: debian-policy: Changelog and copyright should be package metadata

2012-07-14 Thread Russ Allbery
Guillem Jover  writes:

> Also although my initial motivation was to solve the binNMU+multiarch
> case, I consider it now it's a worthwhile change by itself, regardless
> of how the binNMU+multiarch problem ends up being solved.

I'm inclined to agree, particularly with an eye to the whole doc directory
issue for which we have multiple open Policy bugs.  The main reason why we
don't currently link the doc directories of many of our packages together,
which would often be better for our users and less confusing, is because
we can't link between arch:any and arch:all packages or risk having
different versions installed because we could get the wrong changelog and
copyright files.  This would solve that problem nicely.

-- 
Russ Allbery (r...@debian.org)   



-- 
To UNSUBSCRIBE, email to debian-policy-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87wr26ixuk@windlord.stanford.edu



Bug#681289: debian-policy: Changelog and copyright should be package metadata

2012-07-14 Thread Guillem Jover
On Fri, 2012-07-13 at 23:29:48 +0200, Carsten Hey wrote:
> * Raphael Hertzog [2012-07-13 09:00 +0200]:
> > Guillem introduced the --control-list and --control-show interfaces …
> >
> > If … , we should IMO create a new package that will hook into dpkg
> > --post-invoke and …
> >
> > … should create dpkg --changelog and dpkg --copyright …
> 
> [epoch:]upstream_version[-debian_revision][,build_number] instead of
> [epoch:]upstream_version[-debian_revision] would also solve the
> multi-arch issue that seems to be the main motivation for all this
> indirection.

You might need to exand on that, because I don't see how that would
help at all?

Also although my initial motivation was to solve the binNMU+multiarch
case, I consider it now it's a worthwhile change by itself, regardless
of how the binNMU+multiarch problem ends up being solved.

regards,
guillem



--
To UNSUBSCRIBE, email to debian-policy-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120714073506.gb10...@gaara.hadrons.org



Bug#681289: debian-policy: Changelog and copyright should be package metadata

2012-07-14 Thread Guillem Jover
On Fri, 2012-07-13 at 09:00:59 +0200, Raphael Hertzog wrote:
> In any case, I believe we should create dpkg --changelog
> and dpkg --copyright as the canonical end-user interface.

I've mentioned this several times now, I've something similar to that
alreadyd implemented locally. I just didn't include them in dpkg 1.16.5
because:

  1) it could be perceived as forcing the proposal as a done deal.
  2) they could become unused cruft if the project rejected the
 proposal.
  3) depending on the amount of files to transition to meta-data,
 adding a new option per file might not scale.

guillem



-- 
To UNSUBSCRIBE, email to debian-policy-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120714073232.ga10...@gaara.hadrons.org



Bug#681289: debian-policy: Changelog and copyright should be package metadata

2012-07-13 Thread Charles Plessy
Le Thu, Jul 12, 2012 at 08:46:03AM +0200, Raphaël Hertzog a écrit :
> We should thus modify the policy to say:
> 
> 1/ that the changelog and copyright files ought to be installed in the
>DEBIAN directory along with the other control files
> 
>(this will require changes in dh_installdocs and dh_installchangelogs)
> 
> 2/ that programs that want to retrieve the changelog and/or copyright file
>of an installed package should try to use "dpkg-query --control-show 
>" and fall back to the usual path if that fails.
> 
>Those interfaces are available in wheezy's dpkg (>= 1.16.5).
> 
> 3/ that programs that want to retrieve the changelog and/or copyright file
>of a .deb file should use dpkg-deb -I  " (or
>look for the changelog/copyright file in the directory extracted
>with dpkg-deb -e )

For the record, I have started a related discussion on debian-devel.

http://lists.debian.org/msgid-search/20120714004835.gb8...@falafel.plessy.net

-- 
Charles Plessy
Tsurumi, Kanagawa, Japan



--
To UNSUBSCRIBE, email to debian-policy-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120714010448.ga18...@plessy.org



Bug#681289: debian-policy: Changelog and copyright should be package metadata

2012-07-13 Thread Carsten Hey
* Raphael Hertzog [2012-07-13 09:00 +0200]:
> Guillem introduced the --control-list and --control-show interfaces …
>
> If … , we should IMO create a new package that will hook into dpkg
> --post-invoke and …
>
> … should create dpkg --changelog and dpkg --copyright …

[epoch:]upstream_version[-debian_revision][,build_number] instead of
[epoch:]upstream_version[-debian_revision] would also solve the
multi-arch issue that seems to be the main motivation for all this
indirection.


Regards
Carsten



--
To UNSUBSCRIBE, email to debian-policy-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120713212948.ga6...@buster.stateful.de



Bug#681289: debian-policy: Changelog and copyright should be package metadata

2012-07-13 Thread Raphael Hertzog
On Thu, 12 Jul 2012, Russ Allbery wrote:
> HOWEVER, I think putting those files in a clear place on the file system
> so that they can be easily read via a pager by the end user without using
> dpkg-query commands is not only mandatory for the transition period but
> mandatory permanently.  I would expect dpkg to do this.  That location
> could be in /var/lib/dpkg/copyright and /var/lib/dpkg/changelogs or some
> similar place, however.  (And arch-qualified when needed, of course.)

The current version of dpkg would put them in
/var/lib/dpkg/info/.{changelog,copyright} but we certainly don't want
end-users to rely on this.

Guillem introduced the --control-list and --control-show interfaces
precisely because we want a path and storage-agnostic way to access those
files. This enables us to change the way we store files in a more
efficient manner:
- we could compress the files with whatever compression method we want
- we could deduplicate identical files between multiple packages
  (copyright and changelog files within a source package tend to be identical)

If we want to keep the copyright/changelog files at their current location
(or in another official place), we should IMO create a new package that
will hook into dpkg --post-invoke and that would use dpkg-query
--control-show to retrieve those files and store them again where the user
wants (and conversely delete them during package removal).

BTW, dpkg-query --control-show already runs a pager if the output is a
terminal. In any case, I believe we should create dpkg --changelog
and dpkg --copyright as the canonical end-user interface.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Get the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/



--
To UNSUBSCRIBE, email to debian-policy-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120713070059.go...@rivendell.home.ouaza.com



Bug#681289: debian-policy: Changelog and copyright should be package metadata

2012-07-12 Thread Raphael Hertzog
On Thu, 12 Jul 2012, Gerfried Fuchs wrote:
>Hi,
> 
> * Raphaël Hertzog  [2012-07-12 08:46:03 CEST]:
> > Both the changelog and the copyright files are stored with a package's
> > normal data (within data.tar in the .deb) but they are really package
> > metadata (that should be part of control.tar in the .deb).
> 
>  Are they?  I consider them documentation and expect them be next to the
> documentation.

Documentation can be meta-data. It's the fact that those documentation are
produced by Debian that qualifies them as meta-data (control.tar) and
not upstream data (data.tar).

>  And without any more than that statement I'm not really buying that it
> really would be a benefit?

The benefit I was referring too is purely in terms of performance.
Extracting control.tar.gz is faster than extracting data.tar.gz because of
its smaller size (at least in most non-trivial packages).

> > 2/ that programs that want to retrieve the changelog and/or copyright file
> >of an installed package should try to use "dpkg-query --control-show 
> > 
> >" and fall back to the usual path if that fails.
> > 
> >Those interfaces are available in wheezy's dpkg (>= 1.16.5).
> 
>  So that would force services to upgrade to wheezy as soon as the first
> such package lands in unstable, right?

It depends. What services are you thinking of? I expecte that programs
trying to access changelog/copyright of installed packages are mostly
end-user programs (so the "services" qualification seems weird).

> > 3/ that programs that want to retrieve the changelog and/or copyright file
> >of a .deb file should use dpkg-deb -I  " (or
> >look for the changelog/copyright file in the directory extracted
> >with dpkg-deb -e )
> 
>  "that programs" are also end-users, not?  Users expect the copyright
> and changelog information to be readily available to them.  How do you
> address their expectations?  Will they be in
> /var/lib/dpkg/info/package.{changelog,copyright}, so a symlink could
> help with that?

With the current implementation of dpkg, they will be there, yes.

But for end-users, I rather expect that we're going to create
"dpkg --changelog " that does the right thing for them (and same for
--copyright).

>  Last thing: policy is about document current practises, not about
> future possibilities.  Doesn't this bugreport come a bit early?

Some changes just can't be implemented without global coordination and
buy-in. The policy (and its associated process) is a way to ensure both.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Get the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/



--
To UNSUBSCRIBE, email to debian-policy-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120713064818.gn...@rivendell.home.ouaza.com



Re: Bug#681289: debian-policy: Changelog and copyright should be package metadata

2012-07-12 Thread Cyril Brulebois
Hello,

Gerfried Fuchs  (12/07/2012):
>  Well, that's debian-release, not debian-devel.  Thanks for the pointer
> though!

dd@ and dr@ got most of those mails. I count 32 of them to dd@. (One can
see dd@ in To on the link Thomas gave.)

Mraw,
KiBi.


signature.asc
Description: Digital signature


Re: Bug#681289: debian-policy: Changelog and copyright should be package metadata

2012-07-12 Thread Gerfried Fuchs
* Thomas Preud'homme  [2012-07-12 17:59:19 CEST]:
> Le jeudi 12 juillet 2012 17:09:46, Gerfried Fuchs a écrit :
> >  Did I miss a thread on debian-devel about this?
> 
> There was a thread indeed. See this one:
> http://lists.debian.org/debian-release/2012/06/msg00232.html

 Well, that's debian-release, not debian-devel.  Thanks for the pointer
though!

 Enjoy,
Rhonda
-- 
Fühlst du dich mutlos, fass endlich Mut, los  |
Fühlst du dich hilflos, geh raus und hilf, los| Wir sind Helden
Fühlst du dich machtlos, geh raus und mach, los   | 23.55: Alles auf Anfang
Fühlst du dich haltlos, such Halt und lass los|


-- 
To UNSUBSCRIBE, email to debian-policy-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120712161645.ga17...@anguilla.debian.or.at



Re: Bug#681289: debian-policy: Changelog and copyright should be package metadata

2012-07-12 Thread Thomas Preud'homme
Le jeudi 12 juillet 2012 17:09:46, Gerfried Fuchs a écrit :

> 
>  Did I miss a thread on debian-devel about this?

There was a thread indeed. See this one:
http://lists.debian.org/debian-release/2012/06/msg00232.html

Best regards,

Thomas Preud'homme


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


Bug#681289: debian-policy: Changelog and copyright should be package metadata

2012-07-12 Thread Russ Allbery
Raphaël Hertzog  writes:

> We should thus modify the policy to say:

> 1/ that the changelog and copyright files ought to be installed in the
>DEBIAN directory along with the other control files

>(this will require changes in dh_installdocs and dh_installchangelogs)

> 2/ that programs that want to retrieve the changelog and/or copyright file
>of an installed package should try to use "dpkg-query --control-show 
>" and fall back to the usual path if that fails.

>Those interfaces are available in wheezy's dpkg (>= 1.16.5).

> 3/ that programs that want to retrieve the changelog and/or copyright file
>of a .deb file should use dpkg-deb -I  " (or
>look for the changelog/copyright file in the directory extracted
>with dpkg-deb -e )

Just a quick note: while we can certainly discuss this here, Policy cannot
change until any changes to dpkg required to support this (such as
unpacking those files in an appropriate place) is already implemented in a
version that's already in the archive, since I expect this to require
changes to dpkg (see below).  All packages that use this approach are
probably also going to need a dependency on an appropriate version of
dpkg.

> QUESTION: Shall we design some solution to ensure that
> /usr/share/doc//{changelog.Debian.gz,copyright} are kept during the
> transition period ?

At first glance, I think a major Debian upgrade is probably enough of a
break to not have to keep compatibility files in the old locations *if* we
track down the various tools in Debian and change them to use
dpkg-query/dpkg-deb by default and fall back on the other location.  I
could be too aggressive about this, though.

HOWEVER, I think putting those files in a clear place on the file system
so that they can be easily read via a pager by the end user without using
dpkg-query commands is not only mandatory for the transition period but
mandatory permanently.  I would expect dpkg to do this.  That location
could be in /var/lib/dpkg/copyright and /var/lib/dpkg/changelogs or some
similar place, however.  (And arch-qualified when needed, of course.)

-- 
Russ Allbery (r...@debian.org)   



--
To UNSUBSCRIBE, email to debian-policy-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87629tvwas@windlord.stanford.edu



Bug#681289: debian-policy: Changelog and copyright should be package metadata

2012-07-12 Thread Gerfried Fuchs
   Hi,

* Raphaël Hertzog  [2012-07-12 08:46:03 CEST]:
> Both the changelog and the copyright files are stored with a package's
> normal data (within data.tar in the .deb) but they are really package
> metadata (that should be part of control.tar in the .deb).

 Are they?  I consider them documentation and expect them be next to the
documentation.

> All the tools and services that currently extract both of those files
> (packages.d.o, apt-listhanges, etc.) would benefit from being able to
> extract them with the rest of the package metadata.

 No, please don't use packages.d.o as a reasoning without having talked
to the packages.d.o maintainers.  This is also the reason why I tend to
close your bugreport against packages.d.o because the plan is to not
extract them anymore.  ftpmasters/dak are extracting them already and
providing them to us, so the packages.d.o site will *not* extract this
information in the future.

 And without any more than that statement I'm not really buying that it
really would be a benefit?

> Additionnaly it also solves a problem that we have with multi-arch same
> packages and bin-nmu. Such a bin-nmu means that the changelog on the
> bin-nmued architecture will be different from the other arches and the
> package is thus no longer co-installable.

 That might be the real issue, please don't push other reasonings to
front without contacting the people involved there whether this is
really the case.

> 2/ that programs that want to retrieve the changelog and/or copyright file
>of an installed package should try to use "dpkg-query --control-show 
>" and fall back to the usual path if that fails.
> 
>Those interfaces are available in wheezy's dpkg (>= 1.16.5).

 So that would force services to upgrade to wheezy as soon as the first
such package lands in unstable, right?

> 3/ that programs that want to retrieve the changelog and/or copyright file
>of a .deb file should use dpkg-deb -I  " (or
>look for the changelog/copyright file in the directory extracted
>with dpkg-deb -e )

 "that programs" are also end-users, not?  Users expect the copyright
and changelog information to be readily available to them.  How do you
address their expectations?  Will they be in
/var/lib/dpkg/info/package.{changelog,copyright}, so a symlink could
help with that?

 Is there any other solution that would help the multiarch issue
instead?

 Did I miss a thread on debian-devel about this?

 Last thing: policy is about document current practises, not about
future possibilities.  Doesn't this bugreport come a bit early?

 Thanks,
Rhonda
-- 
Fühlst du dich mutlos, fass endlich Mut, los  |
Fühlst du dich hilflos, geh raus und hilf, los| Wir sind Helden
Fühlst du dich machtlos, geh raus und mach, los   | 23.55: Alles auf Anfang
Fühlst du dich haltlos, such Halt und lass los|



--
To UNSUBSCRIBE, email to debian-policy-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20120712150946.ga14...@anguilla.debian.or.at



Bug#681289: debian-policy: Changelog and copyright should be package metadata

2012-07-11 Thread Raphaël Hertzog
Package: debian-policy
Severity: wishlist
User: debian-d...@lists.debian.org
Usertags: changelog

Both the changelog and the copyright files are stored with a package's
normal data (within data.tar in the .deb) but they are really package
metadata (that should be part of control.tar in the .deb).

All the tools and services that currently extract both of those files
(packages.d.o, apt-listhanges, etc.) would benefit from being able to
extract them with the rest of the package metadata.

Additionnaly it also solves a problem that we have with multi-arch same
packages and bin-nmu. Such a bin-nmu means that the changelog on the
bin-nmued architecture will be different from the other arches and the
package is thus no longer co-installable.

We should thus modify the policy to say:

1/ that the changelog and copyright files ought to be installed in the
   DEBIAN directory along with the other control files

   (this will require changes in dh_installdocs and dh_installchangelogs)

2/ that programs that want to retrieve the changelog and/or copyright file
   of an installed package should try to use "dpkg-query --control-show 
   " and fall back to the usual path if that fails.

   Those interfaces are available in wheezy's dpkg (>= 1.16.5).

3/ that programs that want to retrieve the changelog and/or copyright file
   of a .deb file should use dpkg-deb -I  " (or
   look for the changelog/copyright file in the directory extracted
   with dpkg-deb -e )

This should probably be included in a new major revision of the policy
(4.0 that you wanted to do shortly after wheezy's release?).

QUESTION: Shall we design some solution to ensure that
/usr/share/doc//{changelog.Debian.gz,copyright} are kept during the
transition period ?

If yes, we need to think of a solution that doesn't involve as much pain
as was the /usr/doc transition (i.e. we want a single tool that does it for
all packages rather than a maintainer script snippet in all packages).

-- System Information:
Debian Release: wheezy/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (150, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.4-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



-- 
To UNSUBSCRIBE, email to debian-policy-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20120712064603.22421.71632.reportbug@rivendell.localdomain