Bug 80131 - Package can't be built from source-RPM in usual way
Package can't be built from source-RPM in usual way
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: rpmdb-redhat (Show other bugs)
8.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Powers
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-12-20 05:38 EST by Andrey
Modified: 2008-05-01 11:38 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-12-20 08:38:07 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch for rpmdb-redhat.spec.in (900 bytes, patch)
2002-12-20 05:41 EST, Andrey
no flags Details | Diff

  None (edit)
Description Andrey 2002-12-20 05:38:46 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830

Description of problem:
I tried to built this package from source-rpm
(rpmdb-redhat-8.0-0.20020910.src.rpm) but all my attempts were unsuccesfull.
Building craches at the %prep stage.
I found in spec-file the following:
...
#%dontdefine    rpmdbname               redhat
#%dontdefine    rpmdbversion            6.1
#%dontdefine    rpmdbversion               /mnt/somewhere
...
%prep
[ -d %{rpmdbtree} ] || {
    echo "This specfile needs access to %{rpmdbtree}/%{_arch}/Redhat/RPMS"
    exit 1
}
...
May be it will be better to define (for example) rpmdbname as 'redhat',
rpmdbversion as '8.0', rpmdbversion as '%{_tmppath}/rpmdbtree'. And then create
'%{rpmdbtree}/%{_arch}/Redhat/RPMS' directory needed for build.


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


How reproducible:
Always

Steps to Reproduce:
1. rpm -i rpmdb-redhat-8.0-0.20020910.src.rpm
2. cd /usr/src/redhat/SPECS
3. rpmbuild -bb rpmdb-redhat.spec.in


Actual Results:  Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.46149
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ '[' -d '%{rpmdbtree}' ']'
+ echo 'This specfile needs access to %{rpmdbtree}/i386/Redhat/RPMS'
This specfile needs access to %{rpmdbtree}/i386/Redhat/RPMS
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.46149 (%prep)

Expected Results:  Binary rpm should be built.


Additional info:
Comment 1 Andrey 2002-12-20 05:41:14 EST
Created attachment 88833 [details]
patch for rpmdb-redhat.spec.in

apply this patch from WORK_DIR (not from SPEC)
Comment 2 Tim Powers 2002-12-20 08:38:07 EST
That's because it's not built in the usual way :) 

The package is generated as part of the compose process, and not like any of the
other packages in the distro (aside from the comps package, which has to be
built in a special way as well). 

Tim

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