Bug 225902 - Merge Review: intltool
Summary: Merge Review: intltool
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Package Reviews List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-01-31 19:05 UTC by Nobody's working on this, feel free to take it
Modified: 2012-04-18 11:57 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-06 12:22:58 UTC
Type: ---
Embargoed:
gwync: fedora-review+


Attachments (Terms of Use)

Description Nobody's working on this, feel free to take it 2007-01-31 19:05:33 UTC
Fedora Merge Review: intltool

http://cvs.fedora.redhat.com/viewcvs/devel/intltool/
Initial Owner: mclasen

Comment 1 Robert Scheck 2009-01-13 21:50:32 UTC
intltool.i386: E: tag-not-utf8 %changelog

Comment 2 Matthias Clasen 2009-01-14 02:50:10 UTC
Feel free to apply pedantic fixes like that.

Comment 3 Thomas Spura 2009-10-08 10:56:09 UTC
* changelog is now in utf8.

* rpmlint ../SRPMS/intltool-0.41.0-1.fc11.src.rpm ../RPMS/noarch/intltool-0.41.0-1.fc11.noarch.rpm 
intltool.src:18: W: unversioned-explicit-obsoletes xml-i18n-tools
intltool.noarch: E: devel-dependency gettext-devel
intltool.noarch: W: self-obsoletion xml-i18n-tools obsoletes xml-i18n-tools = 0.11
2 packages and 0 specfiles checked; 1 errors, 2 warnings.

* rpmlint intltool.spec 
intltool.spec:18: W: unversioned-explicit-obsoletes xml-i18n-tools
0 packages and 1 specfiles checked; 0 errors, 1 warnings.


Obsoletes: xml-i18n-tools < 0.11 solves all 3 issues in this direction.

Stays intltool.noarch: E: devel-dependency gettext-devel

Comment 4 Gwyn Ciesla 2012-04-05 17:41:53 UTC
Fresh review:

Good:

- rpmlint checks return:

intltool.spec:18: W: unversioned-explicit-obsoletes xml-i18n-tools
The specfile contains an unversioned Obsoletes: token, which will match all
older, equal and newer versions of the obsoleted thing.  This may cause update
problems, restrict future package/provides naming, and may match something it
was originally not inteded to match -- make the Obsoletes versioned if
possible.

intltool.noarch: W: self-obsoletion xml-i18n-tools obsoletes xml-i18n-tools = 0.11
The package obsoletes itself.  This is known to cause errors in various tools
and should thus be avoided, usually by using appropriately versioned Obsoletes
and/or Provides and avoiding unversioned ones

Fix.

intltool.src: W: spelling-error %description -l en_US bonobo -> Bono, bonbon, Bonn
The value of this tag appears to be misspelled. Please double-check.

intltool.src: W: spelling-error %description -l en_US ui -> ii, u, i
The value of this tag appears to be misspelled. Please double-check.

intltool.src: W: spelling-error %description -l en_US po -> PO, pew, op
The value of this tag appears to be misspelled. Please double-check.

Ignore.

intltool.noarch: E: devel-dependency gettext-devel
Your package has a dependency on a devel package but it's not a devel package
itself.

Does this really need gettext-devel or just gettext?  Should perhaps the Requires and BuildRequires for gettext and gettext-devel be reversed?  If this is correct, that's fine.

Several incorrect FSF address errors, not a huge issue, fix bugs upstream if you like.

- package meets naming guidelines
- package meets packaging guidelines
- license ( GPLv2 with exceptions ) OK, text in %doc, matches source
- spec file legible, in am. english
- source matches upstream
- package compiles on devel (x86_64)
- no missing BR
- no unnecessary BR
- no locales
- not relocatable
- owns all directories that it creates
- no duplicate files
- permissions ok
- %clean ok
- macro use consistent
- code, not content
- no need for -docs
- nothing in %doc affects runtime
- no need for .desktop file

Otherwise it looks pretty good.  Just the dependency questions.  Let me know if you'd like me to commit anything.

Comment 5 Matthias Clasen 2012-04-05 22:08:24 UTC
(In reply to comment #4)

> 
> Otherwise it looks pretty good.  Just the dependency questions.  Let me know if
> you'd like me to commit anything.

By all means, if you want to change that to your liking, go ahead and commit.
Thanks !

Comment 6 Gwyn Ciesla 2012-04-06 12:22:58 UTC
Done, thanks!

Comment 7 Kalev Lember 2012-04-10 08:41:02 UTC
Hi Jon,

Thanks for taking care of this. I took a look at the changes done here because of new build failures on rawhide. A few comments:


> -BuildRequires: gettext
> +BuildRequires: gettext-devel

Why is it necessary to change this? It used to build fine with BR: gettext as it only needs the tools from gettext package for building and doesn't use the headers that are in -devel.


> -Requires: gettext-devel
> +Requires: gettext

Requiring gettext-devel was a deliberate change in http://pkgs.fedoraproject.org/gitweb/?p=intltool.git;a=commit;h=b5cc8a4b . If you ever need to find out why some line is the way it is, 'git blame' can help for history digging.

Packages that used to rely on intltool dragging in gettext-devel are now failing to build, e.g. gtranslator:
http://koji.fedoraproject.org/koji/buildinfo?buildID=312458

If you think it's important to depend on gettext instead of gettext-devel, can you send out a heads up to fedora-devel list that packages will now have to explicitly BR gettext-devel, instead of relying on intltool dragging it in? I fear the ARM secondary arch people aren't very happy about new FTBFS failures, so it's best to try to get package maintainers to fix these early.


> -Obsoletes: xml-i18n-tools
> -Provides: xml-i18n-tools = 0.11
> +#Obsoletes: xml-i18n-tools
> +#Provides: xml-i18n-tools = 0.11

Perhaps remove these lines completely, to avoid cluttering the spec file with commented out lines? Any changes are permanently recorded in git history, so it's always possible to revert them at a later date.


Thanks again for taking care of the merge review.

Comment 8 Gwyn Ciesla 2012-04-10 12:19:55 UTC
(In reply to comment #7)
> Hi Jon,
> 
> Thanks for taking care of this. I took a look at the changes done here because
> of new build failures on rawhide. A few comments:
> 
> 
> > -BuildRequires: gettext
> > +BuildRequires: gettext-devel
> 
> Why is it necessary to change this? It used to build fine with BR: gettext as
> it only needs the tools from gettext package for building and doesn't use the
> headers that are in -devel.
>
> 
> > -Requires: gettext-devel
> > +Requires: gettext
> 
> Requiring gettext-devel was a deliberate change in
> http://pkgs.fedoraproject.org/gitweb/?p=intltool.git;a=commit;h=b5cc8a4b . If
> you ever need to find out why some line is the way it is, 'git blame' can help
> for history digging.

Because typically, bits that are needed to build other tools against a given package live in -devel, and bits needed at runtime are in the base package.  -devel requires base.  I understand that this may not always be the case, especially with tools used in development, such as intltool, but that this breaks builds suggests that gettext's file layout might bear re-examination.  Looking at that commit simply tells me that the BR was changed, not why.  No BZ or problem is mentioned.
 
> Packages that used to rely on intltool dragging in gettext-devel are now
> failing to build, e.g. gtranslator:
> http://koji.fedoraproject.org/koji/buildinfo?buildID=312458
> 
> If you think it's important to depend on gettext instead of gettext-devel, can
> you send out a heads up to fedora-devel list that packages will now have to
> explicitly BR gettext-devel, instead of relying on intltool dragging it in? I
> fear the ARM secondary arch people aren't very happy about new FTBFS failures,
> so it's best to try to get package maintainers to fix these early.

Agreed.  I'm adding the gettext maintainer for his thoughts on the best resolution to this.

> 
> > -Obsoletes: xml-i18n-tools
> > -Provides: xml-i18n-tools = 0.11
> > +#Obsoletes: xml-i18n-tools
> > +#Provides: xml-i18n-tools = 0.11
> 
> Perhaps remove these lines completely, to avoid cluttering the spec file with
> commented out lines? Any changes are permanently recorded in git history, so
> it's always possible to revert them at a later date.

I do that on my specs, but typically leave them in place for faster reverting on those belonging to others. 
 
> 
> Thanks again for taking care of the merge review.

Comment 9 Kalev Lember 2012-04-16 23:02:46 UTC
This change was breaking a lot of builds in rawhide, so I went ahead and fixed the BuildRequires/Requires in http://pkgs.fedoraproject.org/gitweb/?p=intltool.git;a=commit;h=b813c08ae

/usr/share/aclocal/intltool.m4 uses gettext macros that are distributed in gettext-devel (e.g. AM_GNU_GETTEXT_VERSION, AM_GNU_GETTEXT, AM_NLS) and because of that, intlool needs to depend on gettext-devel.

Some examples of failed builds:
devhelp: http://koji.fedoraproject.org/koji/taskinfo?taskID=3996455
gdm: http://koji.fedoraproject.org/koji/taskinfo?taskID=3996427

Comment 10 Gwyn Ciesla 2012-04-17 01:53:00 UTC
Ok, thank you.  At least we've documented that it needs to be this way.  Sorry for the broken builds in the interim.

Comment 11 Jens Petersen 2012-04-18 06:54:02 UTC
Sorry for not commenting earlier, I haven't thought deeply
about it but having this package require gettext-devel
seems ok to me.  I am not sure if it it makes sense to move
gettext's aclocal files to its base package.

Comment 12 Gwyn Ciesla 2012-04-18 11:57:45 UTC
Probably not.


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