Bug 18281
Summary: | -bp not working with --root | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Need Real Name <phutchis> |
Component: | rpm-build | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 6.2 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-10-04 02:04:09 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: |
Description
Need Real Name
2000-10-04 02:04:06 UTC
--root while building does not have the semantics you want to "... build a source RPM in an alternate location". What you want to do is configure rpm to build in an alternate directory. For example, doing echo "%_topdir /your/directory/here" >> ~/.rpmmacros will change the default /usr/src/redhat hierarchy used to build to /your/directory/here. With that change, it now builds and runs successfully although the resulting executable is about 2KB larger than the original binary. Maybe there's a difference in patch level. $ pwd /var/tmp $ ls -l usr/src/redhat/BUILD/mailx-8.1.1/mail mailx-root/bin/mail /bin/mail -rwxr-xr-x 1 root mail 62640 Aug 7 09:03 /bin/mail -rwxr-xr-x 1 phutchis phutchis 64828 Oct 4 15:04 mailx-root/bin/mail -rwxr-xr-x 1 phutchis phutchis 85778 Oct 4 14:58 usr/src/redhat/BUILD/mailx-8.1.1/mail Might I suggest enhancing the manpage to include this sort of info (or a pointer to more extensive documentation if any exists -- "info rpm" finds only the manpage)? |