RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 806121 - configure defined in /usr/lib/rpm/redhat/macros ignores _configure
Summary: configure defined in /usr/lib/rpm/redhat/macros ignores _configure
Keywords:
Status: CLOSED DUPLICATE of bug 652084
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rpm
Version: 6.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Panu Matilainen
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-22 23:53 UTC by Dennis Schridde
Modified: 2012-08-20 07:36 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-03 08:28:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dennis Schridde 2012-03-22 23:53:33 UTC
Description of problem:
According to rpm(8) the order of reading macro definitions is:
   Macro Configuration
       /usr/lib/rpm/macros
       /usr/lib/rpm/redhat/macros
       /etc/rpm/macros
       ~/.rpmmacros

Which means that even though /usr/lib/rpm/macros defines:
%configure \
  ...
  %{_configure} --host=%{_host} --build=%{_build} \\\
  ...

/usr/lib/rpm/redhat/macros overrides it as:
%configure \
  ...
  ./configure --build=%{_build} --host=%{_host} \\\

So the value of _configure will be ignored, even though it is necessary to compile some packages (like python3 from pkgs.fedoraproject.org).

Version-Release number of selected component (if applicable):
$ rpm -qf /usr/lib/rpm/redhat/macros
redhat-rpm-config-9.0.3-34.el6.sl.noarch
$ rpm -qf /usr/lib/rpm/macros
rpm-4.8.0-19.el6.x86_64

Comment 6 RHEL Program Management 2012-05-03 04:46:20 UTC
Since RHEL 6.3 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

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.

Comment 7 Dennis Schridde 2012-05-03 07:28:01 UTC
Since the fix is so damn simple (s.b.), it would be nice if you could include it in RHEL 6.4 anyway.


--- /usr/lib/rpm/redhat/macros.orig     2012-05-03 09:26:30.055106442 +0200
+++ /usr/lib/rpm/redhat/macros  2012-05-03 09:26:51.112107285 +0200
@@ -31,7 +31,7 @@
   CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
   CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
   FFLAGS="${FFLAGS:-%optflags -I%_fmoddir}" ; export FFLAGS ; \
-  ./configure --build=%{_build} --host=%{_host} \\\
+  %{_configure} --build=%{_build} --host=%{_host} \\\
        --target=%{_target_platform} \\\
        --program-prefix=%{?_program_prefix} \\\
        --prefix=%{_prefix} \\\

Comment 9 Panu Matilainen 2012-05-03 08:28:57 UTC

*** This bug has been marked as a duplicate of bug 652084 ***

Comment 10 Dennis Schridde 2012-05-03 15:16:01 UTC
(In reply to comment #9)
> *** This bug has been marked as a duplicate of bug 652084 ***
"You are not authorized to access bug #652084."

Would be nice if you could fix that, so I can have a look at the other bug myself.

Comment 11 Dennis Schridde 2012-08-20 07:36:35 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > *** This bug has been marked as a duplicate of bug 652084 ***
> "You are not authorized to access bug #652084."
> 
> Would be nice if you could fix that, so I can have a look at the other bug
> myself.
I still am not allowed to see that bugreport. Could you please change that?


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