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 80131 - Package can't be built from source-RPM in usual way
Package can't be built from source-RPM in usual way
Product: Red Hat Linux
Classification: Retired
Component: rpmdb-redhat (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Powers
Depends On:
  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:
Last Closed: 2002-12-20 08:38:07 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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
[ -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:

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
+ 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). 


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