https://qa.mandrakesoft.com/show_bug.cgi?id=724
Product: rpm
Component: program
Summary: %configure2_5x does not work from relative dir
Version: 4.0.4-23mdk
Platform: PC
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: P2
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
Hi,
For example, the gtk2.0.spec file use:
mkdir x11-build
cd x11-build
CONFIGURE_TOP=.. %configure2_5x
Well, this does not work because %configure2_5x evaluates to:
cd $CONFIGURE_TOP; [ -f configure.in -o -f configure.ac ] && libtoolize --copy
--force ;
$CONFIGURE_TOP/configure
Of course, because of the cd $CONFIGURE_TOP, ../configure does not exist.
Putting the libtoolize line between parenthesis to execute it in a subshell
should solve the problem. Something like:
%{?__libtoolize:(cd $CONFIGURE_TOP; [ -f configure.in -o -f configure.ac ] &&
%{__libtoolize} --copy --force)} ; \
Note: I can set the version to 4.0.4-23mdk, but the current version is still set
to 4.0.4-20mdk.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.