Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 111008 - gnome-python2 needs spec cleanup
gnome-python2 needs spec cleanup
Product: Fedora
Classification: Fedora
Component: gnome-python2 (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Warren Togami
: EasyFix, Patch
Depends On:
Blocks: FC3Target
  Show dependency treegraph
Reported: 2003-11-26 09:20 EST by Maxim Dziumanenko
Modified: 2007-11-30 17:10 EST (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-11 20:08:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Fix installed file permissions, own more dirs (3.37 KB, patch)
2004-09-11 14:11 EDT, Ville Skyttä
no flags Details | Diff
Patch to make BuildRequires complete. (472 bytes, patch)
2004-09-29 14:57 EDT, Toshio Kuratomi
no flags Details | Diff
Patch to complete BuildRequires. (1.68 KB, patch)
2004-09-29 15:34 EDT, Toshio Kuratomi
no flags Details | Diff

  None (edit)
Description Maxim Dziumanenko 2003-11-26 09:20:50 EST
Description of problem:
libgnomeprint22 and libgnomeprintui headers and development libs
needed to build gnome-python2, thus it should BuildRequires:
libgnomeprintui-devel >= 2.2.0 (according to configure.in of
gnome-python2 package).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.rpm -e libgnomeprintui-devel
2.rpmbuild --rebuild gnome-python2-2.0.0-3.src.rpm
3.Wait for build errors
Actual results:

Expected results:

Additional info:
Comment 1 Miloslav Trmac 2003-11-26 14:26:26 EST
Comment 2 Warren Togami 2004-04-12 21:56:58 EDT
Removing EasyFix.

Missing BuildRequires are (some may be redundant):
libgnomeui-devel gnome-panel-devel gtkhtml2-devel libbonoboui-devel
nautilus libgnomeprint22-devel libgnomeprintui22-devel

This spec file needs to be largely redone because it depends on
existence of stuff in the buildroot in order to conditionally include
BuildRequires, which is wrong.  This is because pkg-config and the .pc
files that it looks for are not present during parsing of the
specfile, which is then used to tell the build system which packages
to install within the buildroot.  I suspect this kind of requirement
is missing from fedora.us documents.  Perhaps it could be worded
something like:

"Do not use conditional BuildRequires unless they are only dependent
upon packages within the defined minimal buildroot.  Also do not
depend on features or version of the running kernel."

Any comments?
Comment 3 Michael Schwendt 2004-04-13 06:09:19 EDT
Without a comment in the spec file, it doesn't become clear _why_ it
is done like that.

Even if pkgconfig were added as a buildrequires, it would not find any
of the .pc templates in a clean build environment and hence would not
enable any of the sub-packages. --with/--without switches would be
cleaner nowadays.

The notion of "conditional BuildRequires" may need a good definition
before it is discussed. There's a difference between "%define buildfoo
1" and "%define buildfoo $(do something to find out)".

At fedora.us, most auto-conditional buildrequires are used to adapt a
single spec file to the specific features of the different build
target platforms (e.g. different chain of -devel dependencies,
different vfolder structure of KDE 3.2, Python checks for versioned

[As a side-note, current "mach" is broken easily by anything in a spec
file which is executed to modify buildrequires:
https://bugzilla.fedora.us/show_bug.cgi?id=1426 ]
Comment 4 Ville Skyttä 2004-09-11 14:11:15 EDT
Created attachment 103725 [details]
Fix installed file permissions, own more dirs

Here's one suggested patch, fixes the following: there are a lot of bad file
permissions in the current package, some unowned directories, and cosmetic
issues with the %doc's in all subpackages.
Comment 5 Toshio Kuratomi 2004-09-29 14:57:20 EDT
Created attachment 104539 [details]
Patch to make BuildRequires complete.

Looks like someone fixed the rawhide spec file to take care of the conditional
BuildRequires problem in comments #2 and #3.  This patch should add the
necessary BuildRequires reported in the original report and Comment #2.  It
also removes a great many BuildRequires dragged in via dependencies.  Tested
with mach configured for FC2.
Comment 6 Toshio Kuratomi 2004-09-29 15:34:22 EDT
Created attachment 104541 [details]
Patch to complete BuildRequires.

Sorry, older version.  This is the one that also removes BuildRequires dragged
in via dependencies.
Comment 7 Ville Skyttä 2004-09-29 16:52:33 EDT
Please note that the patch in attachment 104541 [details] is not cumulative, and
attachment 103725 [details] is still needed in addition to it.
Comment 8 Toshio Kuratomi 2004-09-29 20:24:55 EDT
I've tested attachment 103725 [details] and it is a definite improvement to the
%files section.  The only thing I noticed is that it needs to include
the COPYING file, probably in the main package's %doc line.
Comment 9 Warren Togami 2004-10-11 20:08:15 EDT
Should be fixed in tomorrow's rawhide.

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