FS#7092 - Request: list of packages with stripped documentation

Attached to Project: Pacman
Opened by Kimberly Miller (KerowynM) - Monday, 07 May 2007, 21:27 GMT
Last edited by Allan McRae (Allan) - Tuesday, 01 May 2018, 05:18 GMT
Task Type Feature Request
Category makepkg
Status Closed
Assigned To Aaron Griffin (phrakture)
Dan McGee (toofishes)
Architecture All
Severity Low
Priority Normal
Reported Version 0.8 Voodoo
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hello.

There has been some talk in the forums about the merits and flaws of stripping out the info/doc pages from packages ( http://bbs.archlinux.org/viewtopic.php?id=31299&p=1 for more information, I don't want to reconstruct all of the arguments here). I made a suggestion there and was recommended to post it here.

With a small change to the makepkg script, it is possible for it to add the names of packages it strips to a list. If we were to have a list of packages that had optional documentation it would be much easier for users to write info PKGBUILDs for these packages, such as we already have for ggc, binutils, and coreutils.

What would be required is for developers who maintain packages in the repo to set a flag in their makepkg.conf. The flag would simply inform makepkg to track which packages were stripped. I have written a proof-of-concept patch, which I will attach here.

The only part I haven't quite worked out logistically is getting the file list combined between developers, and publishing it online. Fortunately, those are rather small problems as the patch for makepkg is already written, and would only need slight modification once an accepted solution was created.
This task depends upon

Closed by  Allan McRae (Allan)
Tuesday, 01 May 2018, 05:18 GMT
Reason for closing:  None
Additional comments about closing:  Information about build recorded in packages. Open a new bug if more is needed.
Comment by Kimberly Miller (KerowynM) - Monday, 07 May 2007, 22:58 GMT
Opps, typos in the previous .diff, here is an updated one.
Comment by Roman Kyrylych (Romashka) - Tuesday, 08 May 2007, 16:41 GMT Comment by Dan McGee (toofishes) - Tuesday, 08 May 2007, 17:21 GMT
Interesting idea. First (very quick) thoughts:
1. Update proof of concept for pacman3, where the docs directories are not hard-coded. For now, our 3.1 development tree can be obtained as follows:
git clone http://code.toofishes.net/gitprojects/pacman.git
2. Is there a better solution than a list? This seems non-KISS when it comes to turning these lists into one master list.
Comment by Aaron Griffin (phrakture) - Friday, 11 May 2007, 17:43 GMT
Another option would be to tack a flag into the package metadata that says "docs were stripped" which could be polled later. Dunno if that's a good idea or not.
Comment by Kimberly Miller (KerowynM) - Friday, 11 May 2007, 17:57 GMT
I'll work on updating it, I was hoping it would be set up like that when I started tinkering hehe. Honestly I like the implementation on the mailing list better all around tho.

Honestly, I hate info pages and wish they didn't exist =P That said they are a necessary evil in many cases. I'd be all for just shipping packages with them, you never know when you will need them.
Comment by Roman Kyrylych (Romashka) - Friday, 11 May 2007, 18:18 GMT
Aaron, I like your idea.
Comment by Dan McGee (toofishes) - Friday, 06 June 2008, 04:44 GMT
This relevant anymore?
Comment by Allan McRae (Allan) - Saturday, 06 March 2010, 05:49 GMT
Old bug... makepkg now records what packaging options were used in the .PKGINFO file. These do not make it into the repo database so are not easy to search, but the information is now available.
Comment by Eli Schwartz (eschwartz) - Tuesday, 01 May 2018, 05:12 GMT
Is this about detecting packages which were compiled with !docs, or detecting packages where tidy_docs() actually deleted something?

And if the former, does that mean this is now an archweb bug?
Comment by Allan McRae (Allan) - Tuesday, 01 May 2018, 05:18 GMT
I think we can just close this. The information is there in the packages now. No-one has bother to take it any further indicating no demand.

Loading...