Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262365 - repoman fails on prepalldocs
Summary: repoman fails on prepalldocs
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on: 260118
Blocks: ebuild-prep 349307
  Show dependency tree
 
Reported: 2009-03-13 19:20 UTC by Ben de Groot (RETIRED)
Modified: 2011-03-02 05:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
reduce prepalldocs usage to a warning (prepalldocs_warn.patch,327 bytes, patch)
2009-03-13 19:46 UTC, Zac Medico
Details | Diff
Patch to re-add prealldocs warning (0001-Revert-Bug-262365-Punt-the-prepalldocs-check-until-t.patch,3.18 KB, patch)
2011-01-26 17:48 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ben de Groot (RETIRED) gentoo-dev 2009-03-13 19:20:29 UTC
I know prepalldocs is supposed to be "banned"... But no replacement exists. So repoman should not fail on existing ebuilds that use this functionality. It would be more justifiable to emit a warning saying that prepalldocs is deprecated, and to be replaced. Until such a replacement is in place however, failing is not the right solution. It is annoying to have to use --force on such occassions...
Comment 1 Zac Medico gentoo-dev 2009-03-13 19:46:56 UTC
Created attachment 184911 [details, diff]
reduce prepalldocs usage to a warning
Comment 2 Ulrich Müller gentoo-dev 2009-03-16 07:37:37 UTC
I'd say that this warning does no good at the present time. What are people supposed to do if they get it? IMO the right thing is to wait until a replacement is available (in EAPI 3?). However, I've noticed that prepalldocs was removed from several ebuilds. These should be changed to the new EAPI later, but it is likely that people will forget.

Could the warning be disabled, until we have a replacement for prepalldocs?
Comment 3 Zac Medico gentoo-dev 2009-03-17 00:13:47 UTC
When I originally included the prepalldocs check, I was under the impression that the plan was to eliminate prepalldocs usage from the tree. If that's not the case then the check seems pretty pointless.
Comment 4 Zac Medico gentoo-dev 2009-03-17 05:53:00 UTC
I've removed the prepalldocs check in svn r13118.
Comment 5 Ulrich Müller gentoo-dev 2009-03-17 06:25:17 UTC
(In reply to comment #3)
> When I originally included the prepalldocs check, I was under the impression
> that the plan was to eliminate prepalldocs usage from the tree. If that's not
> the case then the check seems pretty pointless.

Petteri had clarified it in <http://archives.gentoo.org/gentoo-dev-announce/msg_6a64b163b72227c919ef390dba789991.xml>:
,----
| To me it seems that based on summaries and other factors some developers
| seem to have understood that prepalldocs should immediately be removed
| from all ebuilds using it. When I voted on the issue it was my intention
| to put the issue on the table so that a proper technical solution can be
| achieved. If we just leave it there, it's most likely that nothing will
| happen. So until we have a decision on what the replacement will be I don't
| see a need to remove current prepalldocs usage but any new usage must be
| avoided. 
`----

(In reply to comment #4)
> I've removed the prepalldocs check in svn r13118.

Thanks.
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2009-03-17 12:37:17 UTC
(In reply to comment #3)
> When I originally included the prepalldocs check, I was under the impression
> that the plan was to eliminate prepalldocs usage from the tree. If that's not
> the case then the check seems pretty pointless.
> 

All my checks before you have put in as just warnings so I assumed (perhaps falsely) that the same would happen to this one too.
Comment 7 Zac Medico gentoo-dev 2009-03-17 20:51:08 UTC
The prepalldocs check is removed in 2.1.6.9 and 2.2_rc26. We can add it back again after there's an alternative available.
Comment 8 Ulrich Müller gentoo-dev 2011-01-26 17:33:55 UTC
(In reply to comment #7)
> The prepalldocs check is removed in 2.1.6.9 and 2.2_rc26. We can add it back
> again after there's an alternative available.

EAPI 4 has docompress, so I think it's about time to add the warning back.

The commit that had removed it is here: <http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=9da1ab2d6d894d784f9020688302743ce641fa30>

Comment 9 Ulrich Müller gentoo-dev 2011-01-26 17:48:44 UTC
Created attachment 260796 [details, diff]
Patch to re-add prealldocs warning

There were some conflicts upon reverting the removal commit, which are resolved in attached patch.
Comment 10 Zac Medico gentoo-dev 2011-01-26 18:07:25 UTC
We should probably wait a little while, at least until the council approves EAPI 4 in the tree, and maybe even until portage with EAPI 4 is marked stable.
Comment 11 Zac Medico gentoo-dev 2011-03-02 05:39:31 UTC
This is fixed in 2.1.9.42 and 2.2.0_alpha26. It now checks for ecompress, ecompressdir, prepall, prepalldocs, and preplib:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=5aae42eb1cd319c19e92bce890ea7eb3b7d184d7
http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=1ba916f6aa4c82b4e0f74955b9146b8cbf65b859