Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 190878 - Review Request: childsplay_plugins - Plugins for childsplay (educational games for young children)
Summary: Review Request: childsplay_plugins - Plugins for childsplay (educational game...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Wart
QA Contact: Fedora Package Reviews List
URL:
Whiteboard:
Depends On:
Blocks: FE-ACCEPT 190876
TreeView+ depends on / blocked
 
Reported: 2006-05-05 20:49 UTC by Hans de Goede
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-05-11 19:49:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
improved specfile (deleted)
2006-05-10 08:05 UTC, Hans de Goede
no flags Details
improved specfile (deleted)
2006-05-11 13:40 UTC, Hans de Goede
no flags Details
improved specfile (deleted)
2006-05-11 14:21 UTC, Hans de Goede
no flags Details
improved specfile (deleted)
2006-05-11 17:06 UTC, Hans de Goede
no flags Details

Description Hans de Goede 2006-05-05 20:49:09 UTC
Spec URL: http://home.zonnet.nl/jwrdegoede/childsplay_plugins.spec
Description:
Plugins (games) for Childsplay a 'suite' of educational games for young
children. The aim is to be educational and at the same time be fun to play.

---

Sorry no SRPM, because the srpm size exceeds my homepage's max filesize. There are no patches or anything special though, so all you need is the spec and the upstream tarball which you can get upstream.

These plugins require childsplay to operate see bug 190876

Comment 1 Wart 2006-05-10 03:55:26 UTC
No patches?  Then what's "Patch0: ..." doing there?  ;)

If you can give me a url for the patch, or tell me that it's not needed, then
I'll continue my review of childsplay and this package.

Comment 3 Hans de Goede 2006-05-10 08:05:25 UTC
Created attachment 128837 [details]
improved specfile

Similar improvements as done to childplay, ghost .pyo files, etc.

Comment 4 Wart 2006-05-11 00:30:48 UTC
Since rawhide is borked right now I haven't been able to test mock builds, which
is also how I verify the BR: on packages.  I'll get to that as soon as rawhide
is working again.

MUST
====
* rpmlint output clean
* GPL license ok
* Spec file legible and in Am. English
* Upstream source used during review
  d3ea05d2a1fb373d9c4836845b199a76  childsplay_plugins-0.80.7.tgz
* $RPM_BUILD_ROOT cleaned correctly
* No -devel package needed
* No shared libs
* No locales
* No need for -docs subpackage
* No .desktop file needed

MUSTFIX
=======

* Source0: url points to the Sourceforge mirror selection page.  Better
  to use dl.sourceforge.net or hardcode a mirror so that tools like
  spectool can be used to download the source files. (the same is true for
childsplay, which I failed to notice earlier)

* 'yum remove childsplay childsplay_plugins' left two dangling directories
  on the filesystem:
      - /usr/share/childsplay/plugins
      - /usr/share/childsplay/Data/icons
  This is because yum removed childsplay before childsplay_plugins, and since
  the directories weren't empty when childsplay was removed, and they weren't
  owned by childsplay_plugins, they got left behind.

SHOULD
======
* Even though upstream uses an underscore in the name, I think it's better
  to use a dash '-' here.

* Request that upstream include the GPL license file in the tarball as they
  already do for the base childsplay package.


Comment 5 Paul Howarth 2006-05-11 05:54:02 UTC
(In reply to comment #4)
> Since rawhide is borked right now I haven't been able to test mock builds, which
> is also how I verify the BR: on packages.  I'll get to that as soon as rawhide
> is working again.

You know you can use mock with an FC5 root rather than rawhide to do this, right?


Comment 6 Hans de Goede 2006-05-11 13:40:32 UTC
Created attachment 128885 [details]
improved specfile

(In reply to comment #4)
> MUSTFIX
> =======
> 
> * Source0: url points to the Sourceforge mirror selection page.  Better
>   to use dl.sourceforge.net or hardcode a mirror so that tools like
>   spectool can be used to download the source files. (the same is true for
> childsplay, which I failed to notice earlier)
> 

Fixed

> * 'yum remove childsplay childsplay_plugins' left two dangling directories
>   on the filesystem:
>	- /usr/share/childsplay/plugins
>	- /usr/share/childsplay/Data/icons
>   This is because yum removed childsplay before childsplay_plugins, and since

>   the directories weren't empty when childsplay was removed, and they weren't

>   owned by childsplay_plugins, they got left behind.
> 

I've added:
Requires(postun): /usr/share/childsplay/plugins
Requires(postun): /usr/share/childsplay/Data/icons

Which should enforce proper uninstall order.

> SHOULD
> ======
> * Even though upstream uses an underscore in the name, I think it's better
>   to use a dash '-' here.
> 

Won't fix, this means that %{name} can't be used in the Source URL, and that I
need to pass -n to %setup, etc. Now if upstreams name was really ugly I would
find that worth the trouble but for this I would rather be consistent with what
upstream uses.

> * Request that upstream include the GPL license file in the tarball as they
>   already do for the base childsplay package.
> 

Will do.

Comment 7 Hans de Goede 2006-05-11 14:21:42 UTC
Created attachment 128892 [details]
improved specfile

(In reply to comment #4)
> MUSTFIX
> =======
> 
> * Source0: url points to the Sourceforge mirror selection page.  Better
>   to use dl.sourceforge.net or hardcode a mirror so that tools like
>   spectool can be used to download the source files. (the same is true for
> childsplay, which I failed to notice earlier)
> 

Fixed

> * 'yum remove childsplay childsplay_plugins' left two dangling directories
>   on the filesystem:
>	- /usr/share/childsplay/plugins
>	- /usr/share/childsplay/Data/icons
>   This is because yum removed childsplay before childsplay_plugins, and since

>   the directories weren't empty when childsplay was removed, and they weren't

>   owned by childsplay_plugins, they got left behind.
> 

I've added:
Requires(postun): /usr/share/childsplay/plugins
Requires(postun): /usr/share/childsplay/Data/icons

Which should enforce proper uninstall order. Unfortunatly this doesn't seem to
work any bright ideas?


> SHOULD
> ======
> * Even though upstream uses an underscore in the name, I think it's better
>   to use a dash '-' here.
> 

Won't fix, this means that %{name} can't be used in the Source URL, and that I
need to pass -n to %setup, etc. Now if upstreams name was really ugly I would
find that worth the trouble but for this I would rather be consistent with what
upstream uses.

> * Request that upstream include the GPL license file in the tarball as they
>   already do for the base childsplay package.
> 

Will do.

Comment 8 Ville Skyttä 2006-05-11 15:40:40 UTC
Use of Requires(foo) to try to force package installation/erase order (as
opposed to their real purpose, dependencies of the corresponding %foo
_scriptlet_) is abuse.  The real problem is bug 89500 which is reportedly fixed
in rpm CVS; hopefully a fixed version will trickle down to FC soon.

If you want the left-behind dirs problem worked around in the meantime, owning
those dirs in all affected packages is one solution.  Ignoring it is another;
there are loads of packages in FC/FE that are affected and will be automatically
fixed without any per-package kludges when the fixed rpm hits the distro repos.

Comment 9 Hans de Goede 2006-05-11 16:23:56 UTC
Ville,

Thanks for the comment, but bug 89500 is about PreReq's which this package
doesn't use. childsplay Requires: childsplay_plugins and childsplay_plugins
Requires: childsplay. Assuming rpm is indeed fixed todo proper erase ordening
how do a specify that I want childsplay_plugins to be removed first?

Mike,

I tend to not fixing this atleast not in a way working around soon to be fixed
rpm bugs. Can you live with that?


Comment 10 Ville Skyttä 2006-05-11 16:40:56 UTC
(In reply to comment #9)

> childsplay Requires: childsplay_plugins and childsplay_plugins
> Requires: childsplay. Assuming rpm is indeed fixed todo proper erase ordening
> how do a specify that I want childsplay_plugins to be removed first?

Ah, so you have a dependency loop, I didn't know that.  It's possible that bug
89500 isn't probably going to change anything then.  Preferred fix: get rid of
the loop and use plain Requires.  Other ideas that have worked at least sometime:
http://rpm.org/max-rpm-snapshot/s1-rpm-depend-manual-dependencies.html#S3-RPM-DEPEND-FINE-GRAINED
(...and owning the dirs in both packages is still an option...)

Comment 11 Hans de Goede 2006-05-11 17:06:09 UTC
Created attachment 128902 [details]
improved specfile

> Ah, so you have a dependency loop, I didn't know that.  It's possible that
bug
> 89500 isn't probably going to change anything then.  Preferred fix: get rid
of
> the loop and use plain Requires.  Other ideas that have worked at least
sometime:
>
http://rpm.org/max-rpm-snapshot/s1-rpm-depend-manual-dependencies.html#S3-RPM-DEPEND-FINE-GRAINED

> (...and owning the dirs in both packages is still an option...)

Quoting from the above URL:
"A plain Requires is enough to ensure proper installation order if there are no
dependency loops present in the transaction. If dependency loops are present
and cannot be avoided, packagers should strive to construct them in a way that
the order of installation of the the this way interdependent packages does not
matter."

So owning dirs in both packages indeed seems the best idea, new -3 release
doing just that attached.

Comment 12 Ville Skyttä 2006-05-11 17:35:29 UTC
(Forgot the disclaimer: the "fine grained deps" max-rpm chapter was written by
yours truly.)

Comment 13 Wart 2006-05-11 18:00:38 UTC
The multiple ownership of the dirs is fine with me.  Removal of the packages no
longer leaves dangling directories.

All other MUST items fixed, and SHOULD items adequately addressed/explained.

APPROVED

Comment 14 Hans de Goede 2006-05-11 19:49:21 UTC
Imported & Build.



Note You need to log in before you can comment on or make changes to this bug.