Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 487136 - chromium.eclass: use readme.gentoo.eclass for additional fonts information
Summary: chromium.eclass: use readme.gentoo.eclass for additional fonts information
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-06 17:42 UTC by Pacho Ramos
Modified: 2013-10-23 19:08 UTC (History)
0 users

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


Attachments
1.patch (1.patch,2.10 KB, patch)
2013-10-09 18:37 UTC, Pacho Ramos
Details | Diff
Patch for chromium (chromium.readme.gentoo.patch,2.05 KB, patch)
2013-10-18 18:56 UTC, Mike Gilbert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2013-10-06 17:42:59 UTC
On every bump I get messages from:
        elog
        elog "Some web pages may require additional fonts to display properly."
        elog "Try installing some of the following packages if some characters"
        elog "are not displayed properly:"
        elog " - media-fonts/arphicfonts"
        elog " - media-fonts/bitstream-cyberbit"
        elog " - media-fonts/droid"
        elog " - media-fonts/ipamonafont"
        elog " - media-fonts/ja-ipafonts"
        elog " - media-fonts/takao-fonts"
        elog " - media-fonts/wqy-microhei"
        elog " - media-fonts/wqy-zenhei"

I think readme.gentoo.eclass could be used for these messages, I can do the work if you want

Thanks
Comment 1 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-10-07 17:24:36 UTC
(In reply to Pacho Ramos from comment #0)
> I think readme.gentoo.eclass could be used for these messages, I can do the
> work if you want

Sounds good - could you post patches for review by our team?
Comment 2 Pacho Ramos gentoo-dev 2013-10-07 18:18:34 UTC
I see this is a bit special case: chromium.eclass only sets pkg_postinst phase but not src_install

This is problematic since readme.gentoo_create_doc is usually called from src_install. Is "dodoc" allowed from pkg_preinst?
Comment 3 Mike Gilbert gentoo-dev 2013-10-07 18:24:43 UTC
We can remove the messaging/logic from pkg_postinst and just install the readme file from src_install in the ebuild.
Comment 4 Pacho Ramos gentoo-dev 2013-10-07 18:30:18 UTC
Tell me the way you prefer, I don't have any preference for either one :(

The only problematic part is the dodoc call, as DOC_CONTENTS and print message can be shared in the eclass if wanted
Comment 5 Mike Gilbert gentoo-dev 2013-10-07 18:42:20 UTC
(In reply to Pacho Ramos from comment #4)
> Tell me the way you prefer, I don't have any preference for either one :(

Just give us something to work with. I think we may end up dropping the exported phase functions from chromium.eclass at some point, so it will need adjustment either way.
Comment 6 Pacho Ramos gentoo-dev 2013-10-07 18:53:20 UTC
This is what would be needed:
1. Set:
DISABLE_AUTOFORMATTING="yes" -> to allow you to play with formatting (in this case is preferred due the marks for each line"

2. Set DOC_CONTENTS to:
Some web pages may require additional fonts to display properly...

3. Above can be set at global scope or at any time before calling readme.gentoo_create_doc

4. Call readme.gentoo_create_doc before running readme.gentoo_print_elog

5. Call readme.gentoo_print_elog from pkg_postinst
Comment 7 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-10-08 16:05:44 UTC
Note that v8 ebuild currently use chromium.eclass, but given that we're transitioning away from shared v8 (at least for now) this will soon solve itself.

I'm fine with moving things around as compared to where they currently are to better fit readme.gentoo.eclass model.

Pacho, could you post some patches (either to the eclass, chromium ebuild, or both), which would give us something specific to discuss? So far what you said here sounds good to me.
Comment 8 Pacho Ramos gentoo-dev 2013-10-08 18:36:44 UTC
I think the easiest would be to move to ebuilds, otherwise, should I put the create part in ebuild and rely in eclass for the rest? (DOC_CONTENTS variable and print elog message?) -> that looks more error prone to me :(

Also, if we go to moving it to ebuilds, should I move all the elog stuff? (even the one not using readme.gentoo.eclass), or will eclass functions be kept for other cases?
Comment 9 Mike Gilbert gentoo-dev 2013-10-08 18:59:12 UTC
(In reply to Pacho Ramos from comment #8)
> I think the easiest would be to move to ebuilds, otherwise, should I put the
> create part in ebuild and rely in eclass for the rest? (DOC_CONTENTS
> variable and print elog message?) -> that looks more error prone to me :(
> 
> Also, if we go to moving it to ebuilds, should I move all the elog stuff?
> (even the one not using readme.gentoo.eclass), or will eclass functions be
> kept for other cases?

Yeah, let's just move all of it (including elog messages) to the ebuild.
Comment 10 Pacho Ramos gentoo-dev 2013-10-09 18:37:39 UTC
Created attachment 360518 [details, diff]
1.patch

Patch for google-chrome:stable

I have dropped the PepperFlash note as that only informs about the usual method to play with plugins... but usually people shouldn't do that (well, I think most people will prefer PepperFlash over old flashplugin) If you want to keep it, you can put the line in DOC_CONTENTS too
Comment 11 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-10-18 03:36:35 UTC
(In reply to Pacho Ramos from comment #10)
> Created attachment 360518 [details, diff] [details, diff]
> 1.patch
> 
> Patch for google-chrome:stable
> 
> I have dropped the PepperFlash note as that only informs about the usual
> method to play with plugins... but usually people shouldn't do that (well, I
> think most people will prefer PepperFlash over old flashplugin) If you want
> to keep it, you can put the line in DOC_CONTENTS too

Thanks. I'd prefer to move everything to DOC_CONTENTS, including the messages about DE themes. I'd also prefer to keep the note about PepperFlash.

I'll let Mike decide for google-chrome, I'd be happy to take a very similar (with above notes) patch for www-client/chromium.
Comment 12 Mike Gilbert gentoo-dev 2013-10-18 18:47:04 UTC
(In reply to Pacho Ramos from comment #10)

Committed with phajdan's suggestions.

http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/google-chrome/google-chrome-30.0.1599.101_p1.ebuild?r1=1.1&r2=1.2
Comment 13 Mike Gilbert gentoo-dev 2013-10-18 18:56:27 UTC
Created attachment 361254 [details, diff]
Patch for chromium
Comment 14 Pacho Ramos gentoo-dev 2013-10-18 19:03:50 UTC
Looks ok to me
Comment 15 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-10-23 19:08:45 UTC
  23 Oct 2013; Pawel Hajdan jr
  -chromium-32.0.1664.3-r1.ebuild, +chromium-32.0.1678.0.ebuild:
  Dev channel bump. Use readme.gentoo eclass (bug #487136 by pacho; patch by
  floppym based on pacho's original patch). Remove old.