Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488672 - x11-libs/cairo: multilib
Summary: x11-libs/cairo: multilib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All All
: Normal enhancement with 1 vote (vote)
Assignee: Ben de Groot (RETIRED)
URL:
Whiteboard:
Keywords: PATCH, PMASKED
: 507980 (view as bug list)
Depends on: 488662 503024
Blocks: gx86-multilib 496372
  Show dependency tree
 
Reported: 2013-10-20 06:30 UTC by Andrew Church
Modified: 2014-04-20 09:18 UTC (History)
5 users (show)

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


Attachments
cairo-1.12.16.ebuild.patch (cairo-1.12.16.ebuild.patch,2.56 KB, patch)
2013-10-20 06:31 UTC, Andrew Church
Details | Diff
cairo-1.12.16.ebuild.patch (cairo-1.12.16.ebuild.patch,2.50 KB, patch)
2013-10-21 03:45 UTC, Andrew Church
Details | Diff
cairo-1.12.16.ebuild.patch (cairo-1.12.16.ebuild.patch,2.53 KB, patch)
2013-10-21 04:10 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 2013-10-20 06:30:42 UTC
Dependency of GTK+ via pango.
Comment 1 Andrew Church 2013-10-20 06:31:05 UTC
Created attachment 361400 [details, diff]
cairo-1.12.16.ebuild.patch
Comment 2 Ben de Groot (RETIRED) gentoo-dev 2013-10-20 10:30:19 UTC
Has this been tested in an overlay by multiple people for a reasonable period of time? And is the multilib team prepared to maintain the fallout from the conversion?
Comment 3 Andrew Church 2013-10-20 15:31:48 UTC
This has been tested by one person (me) for a few days.  I can't speak for what the multilib team is prepared to do -- I was just uploading my multilib patches as suggested in bug 488544.
Comment 4 Ben de Groot (RETIRED) gentoo-dev 2013-10-20 16:10:38 UTC
Fair enough. But seeing how multilib messes up other packages I maintain, I am at this point opposed to applying this patch. Let's see this sufficiently tested first and someone stepping up to maintain it.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-10-20 18:20:15 UTC
We mess up, sure but you can't tell that we don't finally clean up our burden, can you? We will handle the fallout, sure.
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-10-20 18:42:42 UTC
The changes could be committed under package.mask and be unmasked once there is enough confidence that they don't break anything.

But if the committer watches bugzilla/forums/IRC for reports of breakage and can react quickly, I think that p.mask will be unnecessary.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-10-20 19:28:56 UTC
As for the patch itself, please move doc install to multilib_src_install_all(). Then you won't need the 'if' and '${S}' there. Unless maintainer disagrees, you should use 'einstalldocs' (from eutils) rather than inlined dodoc.
Comment 8 Ben de Groot (RETIRED) gentoo-dev 2013-10-21 02:28:26 UTC
(In reply to Michał Górny from comment #5)
> We mess up, sure but you can't tell that we don't finally clean up our
> burden, can you? We will handle the fallout, sure.

I'm sorry, that didn't come out well. I meant that implementing multilib.eclass support introduces more complexity, which leads to more bugs, which means a higher maintenance burden. Personally I'm not convinced it's worth it, but I won't stop you guys.

Since cairo is a widely used library, I just want to be cautious. Let's put this in the x11 overlay, or commit a masked version, to be tested for at least a month and through at least one version bump.
Comment 9 Andrew Church 2013-10-21 03:45:51 UTC
Created attachment 361482 [details, diff]
cairo-1.12.16.ebuild.patch

(re: comment 7)

Thanks for the notes, patch updated.

I see that multilib-minimal.eclass already includes the equivalent of einstalldocs as part of multilib-minimal_src_install, and indeed if I remove the multilib_src_install_all rule from the ebuild, the doc files still get installed.  I'd just drop the install_all rule, but from the context I'm not sure that's intentional -- should the einstalldocs clone have been wrapped in an "if ! declare -f multilib_src_install" test?
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-10-21 03:54:47 UTC
(In reply to Andrew Church from comment #9)
> Created attachment 361482 [details, diff] [details, diff]
> cairo-1.12.16.ebuild.patch
> 
> (re: comment 7)
> 
> Thanks for the notes, patch updated.

Sorry, one more. Please remove the find+rm call, and instead put 'prune_libtool_files --all' in multilib_src_install_all().

> I see that multilib-minimal.eclass already includes the equivalent of
> einstalldocs as part of multilib-minimal_src_install, and indeed if I remove
> the multilib_src_install_all rule from the ebuild, the doc files still get
> installed.  I'd just drop the install_all rule, but from the context I'm not
> sure that's intentional -- should the einstalldocs clone have been wrapped
> in an "if ! declare -f multilib_src_install" test?

Yes, that's just a default when you don't declare custom multilib_src_install_all().
Comment 11 Andrew Church 2013-10-21 04:10:13 UTC
Created attachment 361484 [details, diff]
cairo-1.12.16.ebuild.patch

(re: comment 10)
> Sorry, one more. Please remove the find+rm call, and instead put
> 'prune_libtool_files --all' in multilib_src_install_all().

Done.

> Yes, that's just a default when you don't declare custom
> multilib_src_install_all().

Hmm, are you sure?  If I delete the einstalldocs line (leaving just prune_libtool_files) then the docs still get installed.
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-02-28 09:17:25 UTC
Plus there's a circular dependency on DirectFB. I'd go for multilib cairo without DirectFB support for now.
Comment 13 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-02-28 20:43:51 UTC
Committed p.masked with explicit request not to unmask in <30 days and <1 vbump :).
Comment 14 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-03-09 08:58:01 UTC
Marking 'fixed' to clean up depgraph.
Comment 15 Ben de Groot (RETIRED) gentoo-dev 2014-04-20 07:39:22 UTC
*** Bug 507980 has been marked as a duplicate of this bug. ***
Comment 16 Ben de Groot (RETIRED) gentoo-dev 2014-04-20 09:18:42 UTC
*** Bug 507980 has been marked as a duplicate of this bug. ***