[Rpm-maint] Issue: "--rcfile" option can not work for rpm command in 4.8.0
Panu Matilainen
pmatilai at redhat.com
Wed Jan 26 14:22:16 UTC 2011
On 01/18/2011 12:10 PM, Bingel Tang wrote:
> Hi all,
>
> Sorry to bother you!
>
> I'm not sure is it a bug.
>
> I'm working with rpm-4.8.0, and find that "--rcfile" option can not work,
> please
> see below to get detailed information:
>
> ******************************************************************
> Environment: RHEL6 Linux (x86_64)
>
> [root at rhel6 rpm-4.8.0]$/bin/rpm --version
> RPM version 4.8.0
>
> [root at rhel6 rpm-4.8.0]$/bin/rpm -q rpm<<<< installed rpm-4.8.0-12 rpm
> package
> rpm-4.8.0-12.el6.x86_64
>
> [root at rhel6 rpm-4.8.0]$cat /root/rpmbuild/rpmrc<<< the rcfile
> macrofiles:/root/rpmbuild/rpmmacros
^^^^^^^^^^
It's not that --rcfile is not honored, it's that macrofiles directive in
rpmrc files hasn't been processed since rpm >= 4.6.0. Maybe it's about
time to start warning on it too...
>
> [root at rhel6 rpm-4.8.0]$
> [root at rhel6 rpm-4.8.0]$cat /root/rpmbuild/rpmmacros<<< the macro file
> %_topdir /root/rpm
>
> [root at rhel6 rpm-4.8.0]$/bin/rpm --rcfile /root/rpmbuild/rpmrc --showrc |grep
> "_topdir"
> -14: _builddir %{_topdir}/BUILD
> -14: _buildrootdir %{_topdir}/BUILDROOT
> -14: _rpmdir %{_topdir}/RPMS
> -14: _sourcedir %{_topdir}/SOURCES
> -14: _specdir %{_topdir}/SPECS
> -14: _srcrpmdir %{_topdir}/SRPMS
> -14: _topdir %{getenv:HOME}/rpmbuild<<<<<< did NOT change to /root/rpm
> ******************************************************************
>
> Any replies will be awfully appreciated!
Just place any macros you want to override into ~/.rpmmacros (or
system-wide rpm config), or --define on the command line, depending on
the situation.
--
- Panu -
More information about the Rpm-maint
mailing list