public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Marty E. Plummer" <hanetzer@startmail.com>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] [PATCH 4/4] gnome2.eclass: move icon handling code to xdg.eclass
Date: Wed, 20 Jun 2018 05:07:06 -0500	[thread overview]
Message-ID: <20180620100705.6orpiytvs5vixxn4@proprietary-killer> (raw)
In-Reply-To: <1529486369.2506.30.camel@gentoo.org>

On Wed, Jun 20, 2018 at 11:19:29AM +0200, Michał Górny wrote:
> W dniu śro, 20.06.2018 o godzinie 04∶04 -0500, użytkownik Marty E.
> Plummer napisał:
> > On Wed, Jun 20, 2018 at 09:27:54AM +0200, Michał Górny wrote:
> > > W dniu śro, 20.06.2018 o godzinie 02∶10 -0500, użytkownik Marty E.
> > > Plummer napisał:
> > > > ---
> > > >  eclass/gnome2.eclass |  7 -------
> > > >  eclass/xdg.eclass    | 27 ++++++++++++++++++++++-----
> > > >  2 files changed, 22 insertions(+), 12 deletions(-)
> > > > 
> > > > diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass
> > > > index 6db6d08b14e..5b81cb4f01a 100644
> > > > --- a/eclass/gnome2.eclass
> > > > +++ b/eclass/gnome2.eclass
> > > > @@ -315,7 +315,6 @@ gnome2_src_install() {
> > > >  gnome2_pkg_preinst() {
> > > >  	xdg_pkg_preinst
> > > >  	gnome2_gconf_savelist
> > > > -	gnome2_icon_savelist
> > > >  	gnome2_schemas_savelist
> > > >  	gnome2_scrollkeeper_savelist
> > > >  	gnome2_gdk_pixbuf_savelist
> > > > @@ -337,9 +336,6 @@ gnome2_pkg_preinst() {
> > > >  gnome2_pkg_postinst() {
> > > >  	xdg_pkg_postinst
> > > >  	gnome2_gconf_install
> > > > -	if [[ -n ${GNOME2_ECLASS_ICONS} ]]; then
> > > > -		gnome2_icon_cache_update
> > > > -	fi
> > > >  	if [[ -n ${GNOME2_ECLASS_GLIB_SCHEMAS} ]]; then
> > > >  		gnome2_schemas_update
> > > >  	fi
> > > > @@ -361,9 +357,6 @@ gnome2_pkg_postinst() {
> > > >  # Handle scrollkeeper, GSettings, Icons, desktop and mime database updates.
> > > >  gnome2_pkg_postrm() {
> > > >  	xdg_pkg_postrm
> > > > -	if [[ -n ${GNOME2_ECLASS_ICONS} ]]; then
> > > > -		gnome2_icon_cache_update
> > > > -	fi
> > > >  	if [[ -n ${GNOME2_ECLASS_GLIB_SCHEMAS} ]]; then
> > > >  		gnome2_schemas_update
> > > >  	fi
> > > > diff --git a/eclass/xdg.eclass b/eclass/xdg.eclass
> > > > index fd4816b8447..29830a5ee15 100644
> > > > --- a/eclass/xdg.eclass
> > > > +++ b/eclass/xdg.eclass
> > > > @@ -39,9 +39,9 @@ xdg_src_prepare() {
> > > >  
> > > >  # @FUNCTION: xdg_pkg_preinst
> > > >  # @DESCRIPTION:
> > > > -# Finds .desktop and mime info files for later handling in pkg_postinst.
> > > > -# Locations are stored in XDG_ECLASS_DESKTOPFILES and XDG_ECLASS_MIMEINFOFILES
> > > > -# respectively.
> > > > +# Finds .desktop, icon, and mime info files for later handling in pkg_postinst.
> > > > +# Locations are stored in XDG_ECLASS_DESKTOPFILES, XDG_ECLASS_ICONS and
> > > > +# XDG_ECLASS_MIMEINFOFILES respectively.
> > > >  xdg_pkg_preinst() {
> > > >  	local f
> > > >  
> > > > @@ -50,6 +50,11 @@ xdg_pkg_preinst() {
> > > >  		XDG_ECLASS_DESKTOPFILES+=( ${f} )
> > > >  	done < <(cd "${D}" && find 'usr/share/applications' -type f -print0 2>/dev/null)
> > > >  
> > > > +	XDG_ECLASS_ICONS=()
> > > > +	while IFS= read -r -d '' f; do
> > > > +		XDG_ECLASS_ICONS+=( ${f} )
> > > > +	done < <(cd "${D}" && find 'usr/share/icons' -type f -print0 2>/dev/null)
> > > 
> > > If you inline it anyway, why add xdg_*_savelist for it?
> > > 
> > 
> > Too keep a stub that still 'works' for ebuilds using
> > gnome2_icon_savelist from gnome2-utils.eclass.
> > > > +
> 
> But given it's unnecessary... you could also keep the stub in gnome2-
> utils and not introduce additional unnecessary stub.
>
Fair. Given that, should I allow the stub to keep working in EAPI 7,
then?
> -- 
> Best regards,
> Michał Górny




  reply	other threads:[~2018-06-20 10:08 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-20  7:10 [gentoo-dev] [PATCH 1/4] xdg-utils.eclass: make EAPI 7 ready Marty E. Plummer
2018-06-20  7:10 ` [gentoo-dev] [PATCH 2/4] gnome2-utils.eclass: " Marty E. Plummer
2018-06-20  7:25   ` Michał Górny
2018-06-20  9:00     ` Marty E. Plummer
2018-06-21  0:43     ` Marty E. Plummer
2018-06-20  7:10 ` [gentoo-dev] [PATCH 3/4] gnome2-utils: move icon functions into xdg-utils Marty E. Plummer
2018-06-20  7:27   ` Michał Górny
2018-06-20  9:03     ` Marty E. Plummer
2018-06-20  9:18       ` Michał Górny
2018-06-20  7:10 ` [gentoo-dev] [PATCH 4/4] gnome2.eclass: move icon handling code to xdg.eclass Marty E. Plummer
2018-06-20  7:27   ` Michał Górny
2018-06-20  9:04     ` Marty E. Plummer
2018-06-20  9:19       ` Michał Górny
2018-06-20 10:07         ` Marty E. Plummer [this message]
2018-06-20 10:11           ` Michał Górny
2018-06-20 13:03 ` [gentoo-dev] [PATCH 1/4] xdg-utils.eclass: make EAPI 7 ready Jason Zaman
2018-06-20 19:31   ` James Le Cuirot
2018-06-20 22:21   ` Marty E. Plummer
2018-06-20 22:33     ` James Le Cuirot
2018-06-20 23:01       ` Marty E. Plummer
2018-06-21  2:38         ` Jason Zaman
2018-06-21  2:41           ` M. J. Everitt
2018-06-21  3:09             ` Marty E. Plummer
2018-06-21  9:00               ` James Le Cuirot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180620100705.6orpiytvs5vixxn4@proprietary-killer \
    --to=hanetzer@startmail.com \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox