Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#12688 - [licenses] Get rid of the licenses package

Attached to Project: Arch Linux
Opened by Greg (dolby) - Tuesday, 06 January 2009, 10:16 GMT
Last edited by Dan McGee (toofishes) - Tuesday, 15 September 2009, 01:11 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Dan McGee (toofishes)
Architecture All
Severity Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I know i wasnt here when Archlinux got born but i think i can imagine how the common licenses package got invented.
It was because Archlinux left out the packages documentation.
Now that documentation of packages is installed in /usr/share/doc most packages install COPYING or LICENSE files inside those dirs.
So the licenses package is no longer needed. IMO it would be preferable to just install the license file of all packages not doing that on themselves, manually.
All GNU programs do it on their own. Most other apps too.
This task depends upon

Closed by  Dan McGee (toofishes)
Tuesday, 15 September 2009, 01:11 GMT
Reason for closing:  Won't implement
Comment by Jan de Groot (JGC) - Tuesday, 06 January 2009, 10:41 GMT
The way debian handles this:
- standard licenses are in /usr/share/common-licenses, these licenses are just like our licenses package
- every package contains a "copyright" file in /usr/share/doc/pkgname, this file contains information about where the sources are from, a small version of the license, and a hint to view the complete license in /usr/share/common-licenses

Our policy for documentation is a bit weird at this moment. Take a look in /usr/share/doc -> you'll find directories named after the package name, directories with capitals in it, directories with versions, etc. Another thing is the name of the copyright file in /usr/share/licenses/$pkgname. If we want to change this, we should take some steps:
- make sure /usr/share/doc/anything is named after the package name
- install or symlink licenses as /usr/share/doc/pkgname/copyright or COPYING
- packages that are not a generic license type, like GPL with exceptions, require a COPYING/copyright file with the name of the license, the exception below that and a reference where to read the rest of the license
Comment by Greg (dolby) - Tuesday, 06 January 2009, 12:48 GMT
Heres how Slackware handles this and IMO the safest & better way:

mkdir -p $PKG/usr/doc/apmd-$VERSION
cp -a \
AUTHORS COPYING LSM README apmlib.COPYING apmsleep.README \
$PKG/usr/doc/apmd-$VERSION
cp -a xbattery/README $PKG/usr/doc/apmd-$VERSION/README.xbattery

That means treat every license as uncommon. You can copy over examples and other stuff you find useful in /usr/share/doc/$pkgname-$pkgver/ for the end user like apmd above.
That also means less automation in PKGBUILDs.
But even for example if a license changes, you are sure you are distributing the package with the correct license.
Now that im analysing this im not even sure if the license array if even needed in that case but i wont go that far.
Comment by Greg (dolby) - Tuesday, 06 January 2009, 13:14 GMT
The last sentence is kind of confusing. I mean the license array in PKGBUILDs.
Comment by Aaron Griffin (phrakture) - Tuesday, 06 January 2009, 16:54 GMT
I like Jan's idea better, but it's a lot of work to do the symlink deal.
Perhaps some post_install magic to check to see if the copyright file exists, if not then symlink the file from the licenses array.
Comment by Greg (dolby) - Wednesday, 07 January 2009, 08:51 GMT
May i ask what does "- simplify doc building process for ease of development" means from the pacman 3.2.2 NEWS?
Is it in any way related to this?
Comment by Allan McRae (Allan) - Wednesday, 07 January 2009, 10:28 GMT
@Dolby: not the place to ask and not at all.
Comment by Greg (dolby) - Tuesday, 20 January 2009, 18:38 GMT
Since, this isnt high priority, quite the contrary, its better to wait as much as needed, and implement the documentation incl. licenses, as the developers feel it should impemented properly. Perferably not handled by $pkgname.install.
I dont know if you wish to keep this open as a reminder, or close it, as the request has been denied.
Comment by Dan McGee (toofishes) - Tuesday, 15 September 2009, 00:58 GMT
I don't know what to take out of this bug report (crawling all things assigned to me tonight). Can I close it since I don't really know what to do or want to make a overarching policy decision on this?
Comment by Allan McRae (Allan) - Tuesday, 15 September 2009, 01:09 GMT
I'd say feel free to close. We use the /usr/share/licenses folder for licenses and "common" licenses are obviously common so packaging them separately makes sense to me.

Loading...