Bug 661770

Summary: can't be rebuild in mock
Product: Red Hat Enterprise Linux 6 Reporter: Levente Farkas <lfarkas>
Component: foomaticAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: jpopelka, ovasik, pknirsch, redhatbugs, tpelka
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foomatic-4.0.4-3.el6 Doc Type: Bug Fix
Doc Text:
Cause: The installation locations for perl files were incorrect in the spec file. Consequence: The package could not be rebuilt. Fix: The installation locations have been fixed. Result: The package can now be rebuilt.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-17 09:26:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
foomatic-perl.patch none

Description Levente Farkas 2010-12-09 16:04:51 UTC
build always fail in mock with this error:


Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.th4OHJ
+ umask 022
+ cd /builddir/build/BUILD
+ cd foomatic-4.0.4
+ DOCDIR=/builddir/build/BUILDROOT/foomatic-4.0.4-1.el6.i386/usr/share/doc/foomatic-4.0.4
+ export DOCDIR
+ rm -rf /builddir/build/BUILDROOT/foomatic-4.0.4-1.el6.i386/usr/share/doc/foomatic-4.0.4
+ /bin/mkdir -p /builddir/build/BUILDROOT/foomatic-4.0.4-1.el6.i386/usr/share/doc/foomatic-4.0.4
+ cp -pr --parents foomatic-filters-4.0.4/COPYING /builddir/build/BUILDROOT/foomatic-4.0.4-1.el6.i386/usr/share/doc/foomatic-4.0.4
+ cp -pr --parents foomatic-db-engine-4.0.4/COPYING /builddir/build/BUILDROOT/foomatic-4.0.4-1.el6.i386/usr/share/doc/foomatic-4.0.4
+ exit 0
RPM build errors:
    Macro % has illegal name (%define)
    Macro % has illegal name (%define)
    File not found: /builddir/build/BUILDROOT/foomatic-4.0.4-1.el6.i386/usr/share/perl5/Foomatic

Comment 3 Levente Farkas 2010-12-21 13:56:02 UTC
can we wait an update for rhel-6 too?

Comment 4 Tim Waugh 2010-12-21 15:27:16 UTC
We hope to fix this in a future update to Red Hat Enterprise Linux.  Thank you for reporting it.

Comment 5 Levente Farkas 2010-12-21 15:47:35 UTC
and the above patch is wrong for two reason:
- installvendorlib and installvendorarch by default
- INSTALLSITELIB=$RPM_BUILD_ROOT/%{installvendorlib} should have to be INSTALLSITELIB=%{perl_vendorlib} without $RPM_BUILD_ROOT

Comment 6 Tim Waugh 2010-12-21 16:06:49 UTC
Created attachment 470016 [details]
foomatic-perl.patch

Thanks.  Here is a new proposed patch based on your suggestion.

Comment 7 Levente Farkas 2010-12-21 16:23:18 UTC
that's exactly what i did.

Comment 8 Siddharth Nagar 2011-06-09 01:54:26 UTC
Deferring to RHEL 6.3 for possible inclusion. We are unable to accommodate this for RHEL 6.2.

Comment 11 Suzanne Logcher 2012-02-14 23:05:15 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 16 errata-xmlrpc 2013-07-17 09:26:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1084.html