#492432 aptitude: fetch and display copyright (like changelog)

Package:
aptitude
Source:
aptitude
Description:
terminal-based package manager
Submitter:
"Kumar Appaiah"
Date:
2024-02-02 12:03:19 UTC
Severity:
wishlist
Tags:
#492432#5
Date:
2008-07-26 02:08:31 UTC
From:
To:
Package: dpkg
Severity: wishlist

Dear dpkg developers,

Please consider allowing a display of the copyright file of a package
via dpkg. While I am sure you will ask me why this is any different
from doing zcat /usr/share/doc/$pkg/copyright.gz, I am hinting at
something more like the way it is done in RPM:

http://www.ae.iitm.ac.in/pipermail/ilugc/2008-July/042594.html

In essence, this may necessitate machine readable copyright format,
but I think it would be worth taking this forward.

Do inform me if I need to report this elsewhere, or if this has
already been reported elsewhere.

Thank you.

Kumar

#492432#10
Date:
2008-07-29 18:28:44 UTC
From:
To:
reassign 492432 aptitude
thanks

Hi,

The stuff done on RPM is not good enough. Describing the whole package
licensing situation in only a field is not sufficient, that's one of
the reasons we have the copyright file.

Making dpkg output this file while its format is not (yet) standardized,
and there does not seem to be consensus that it will be in the near
future, seems like not that useful, as the tools trying to analyze
such output would only work if it was in a standardized format.

The other problem is that the administrator is allowed (per policy) to
remove anything under /usr/share/doc/, so dpkg will not be able to
always output such information.

I guess a more appropriate place for this would be the front-ends,
in the same way «aptitude changelog foo» shows the changelog, taking it
from a remote repository even w/o needing the package to be installed,
the same could be done with the copyright file (it's even on the same
host). Althought the format is still a problem, and it might make
sense to delay providing such an option until such format is more
wide-spread.

Reassigning, now you might have to convince the aptitude maintainers. :)

regards,
guillem

#492432#17
Date:
2008-07-30 05:40:52 UTC
From:
To:
Dear Guillem and Aptitude maintainers,

I am in agreement with you. It would require a monumental effort in
standardization. Even then, there are several exceptions and
non-standard licenses which we would have to deal with.

True.

Thanks, Guillem, for the patient explanation. I guess this may not
happen in the near future, but I would still request the Aptitude
maintainers to keep this option open, so that somewhere in the future,
we could see such a feature come in. Of course, you guys are in a
better position to judge the issue, but all the same...

Thanks.

Kumar

#492432#22
Date:
2012-09-11 01:42:53 UTC
From:
To:
Since some time the copyright files are available alongside changelogs
on <http://packages.debian.org/changelogs> so this is quite possible to
do now.

#492432#31
Date:
2012-09-11 02:22:50 UTC
From:
To:
A new contributor should be able to pick this up basing their work on
the existing infrastructure for fetching changelogs:

- src/generic/apt/pkg_changelog.cc
- src/generic/apt/download_queue.cc

I suggest to work on the command line interface first, based on:

- src/cmdline/cmdline_changelog.cc

Please contact the development team [1] for further help.

HH

[1] mailto:aptitude-devel@lists.alioth.debian.org

#492432#38
Date:
2016-05-30 10:07:26 UTC
From:
To:
Hi folks, this bug is almost 8 (!) years old. I've started looking into the
implementation to see if I can thro a patch together but wanted to make sure
this is something the aptitude team would still want.

#492432#43
Date:
2016-05-30 12:35:04 UTC
From:
To:
Hi Mike,

Ideally, this would be implemented in libapt directly. It nowadays
sports a pkgAcqChangelog which deals with most of the complexity around
changelogs including the constructing the URI (as different archives
have different storage places and such) [which from a casual look seem
not to be used by aptitude which constructs the URI on its own (for
Debian only)].

A good way to deal with this hence might perhaps be to fully adopt
pkgAcqChangelog in aptitude, mostly copy pkgAcqChangelog and paste as
pkgAcqCopyright in libapt (src:apt) and copy&paste the changelog-code in
aptitude to deal with copyright [Bonuspoints if abstraction is used
instead of copy&paste].

I can't speak for the aptitude team of course, but at least for the apt
team and I would be happy to help on the apt side. If you are interested
feel free to ask me (DonKult), us (deity@lists.debian.org) and/or on IRC
(#debian-apt – where apt & aptitude people hang out together)!


Best regards

David Kalnischkies

#492432#48
Date:
2016-05-30 23:15:05 UTC
From:
To:
Alright, that makes a lot of sense. I'll take a look at libapt and see if
there's a nice way add support for fetching the copyright info without too much
copy/pasting.
I'll definitely drop the irc by when I inevitably have qestions. Thanks!

#492432#53
Date:
2024-02-02 06:41:20 UTC
From:
To:
Greetings.

I'm writing to you because I have a humanitarian request that I believe
could be incredibly impactful. I'm reaching out about the recent
devastating storm that tragically claimed many lives and affected numerous
individuals in Libya, including one of my clients. I would like to discuss
a proposal with you that could enable us to extend a helping hand to these
victims.

Looking forward to discussing this further with you.

Warm regards,
Mrs. Nathalie Herolds

#492432#58
Date:
2024-02-02 06:41:20 UTC
From:
To:
Greetings.

I'm writing to you because I have a humanitarian request that I believe
could be incredibly impactful. I'm reaching out about the recent
devastating storm that tragically claimed many lives and affected numerous
individuals in Libya, including one of my clients. I would like to discuss
a proposal with you that could enable us to extend a helping hand to these
victims.

Looking forward to discussing this further with you.

Warm regards,
Mrs. Nathalie Herolds