Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203203 - app-arch/dpkg doesn't require po4a?
Summary: app-arch/dpkg doesn't require po4a?
Status: RESOLVED DUPLICATE of bug 192819
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-24 01:24 UTC by Andrew Church
Modified: 2007-12-24 13:14 UTC (History)
0 users

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


Attachments
Proposed ebuild for dpkg-1.14.12 (dpkg-1.14.12.ebuild,1.01 KB, text/plain)
2007-12-24 01:29 UTC, Andrew Church
Details
Proposed ebuild (with USE=doc) (dpkg-1.14.12.ebuild,1.13 KB, text/plain)
2007-12-24 10:20 UTC, Andrew Church
Details
Revised ebuild that explicitly disables po4a (dpkg-1.14.12-r1.ebuild,1.33 KB, text/plain)
2007-12-24 12:34 UTC, Andrew Church
Details
Add --without-po4a to configure (dpkg-1.14.12-without-po4a.patch,985 bytes, patch)
2007-12-24 12:36 UTC, Andrew Church
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Church 2007-12-24 01:24:40 UTC
The current dpkg ebuilds depend on po4a, but (certainly for version 1.14.12, and for 1.13.x as well if memory serves) po4a isn't required for an unmodified build; it looks like it's only used to rebuild documentation files if their sources are changed.  Would it be possible to add a local USE flag so those of us who just want to build dpkg don't need to pull in po4a and its dozen-or-so dependencies?
Comment 1 Andrew Church 2007-12-24 01:29:18 UTC
Created attachment 139227 [details]
Proposed ebuild for dpkg-1.14.12

Ebuild for dpkg-1.14.12 (also used for bug 203200) with a "po4a" USE flag added
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-12-24 07:50:48 UTC
(In reply to comment #1)
> Ebuild for dpkg-1.14.12 (also used for bug 203200) with a "po4a" USE flag added
 
Uhm... don't see po4a flag there, plus it should be USE=doc if anything.
Comment 3 Andrew Church 2007-12-24 10:20:18 UTC
Created attachment 139238 [details]
Proposed ebuild (with USE=doc)

Oops, it looks like I uploaded the wrong file; sorry about that.  Here's one with USE=doc.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-12-24 10:41:34 UTC
(In reply to comment #3)
> Oops, it looks like I uploaded the wrong file; sorry about that.  Here's one
> with USE=doc.

Well yeah that's better but the flag doesn't do anything useful ATM. :)  You need to use it to avoid recreating the docs, otherwise the dependency needs to stay there.
Comment 5 Andrew Church 2007-12-24 11:15:42 UTC
A fair point. (: Ordinarily the documentation isn't recreated anyway, but I'll go figure out what needs to be done to make po4a truly unnecessary.  (Should I attach any needed patches to this bug as well?)

Sorry about the confusion; I'm just getting started on converting a homebuilt environment to Gentoo.  Perhaps not the most auspicious of beginnings...
Comment 6 Andrew Church 2007-12-24 12:34:23 UTC
Created attachment 139249 [details]
Revised ebuild that explicitly disables po4a

Here's a new ebuild that explicitly disables the po4a-dependent parts of the compilation process (revision bumped to -r1 since it looks like 1.14.12 was just added to the tree--thanks!).  The ebuild depends on a patch file I'll attach shortly.
Comment 7 Andrew Church 2007-12-24 12:36:45 UTC
Created attachment 139250 [details, diff]
Add --without-po4a to configure
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-12-24 12:45:53 UTC
Thanks.
Comment 9 Andrew Church 2007-12-24 12:50:03 UTC
Upon looking at the new 1.14.12 ebuild, it looks like the patch from bug 192819 solves this same problem, and better (since it prevents the localized man pages from being installed if !nls).  So you can probably just mark this bug as a duplicate.

Sorry for the spam!
Comment 10 SpanKY gentoo-dev 2007-12-24 13:14:13 UTC
some tips for the future:
 - post diffs of files, not complete files
 - always run autotools in src_unpack, not src_compile

*** This bug has been marked as a duplicate of bug 192819 ***