Bug 56459 - patch: util-linux MCONFIG problem with infodir and mandir
Summary: patch: util-linux MCONFIG problem with infodir and mandir
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: util-linux
Version: 1.0
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Elliot Lee
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-11-19 09:22 UTC by Pekka Savola
Modified: 2007-03-27 03:49 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2002-01-05 17:52:38 UTC
Embargoed:


Attachments (Terms of Use)

Description Pekka Savola 2001-11-19 09:22:55 UTC
If you have changed your infodir and mandir (at least), util-linux will not
build.
This can be seen on an updated RHL62 box.

The problem is that even though the proper values are passed to %configure,
they are not written to MCONFIG.

This should fix the problem in a generic fashion.

--- util-linux.spec~    Wed Nov 14 19:41:10 2001
+++ util-linux.spec     Mon Nov 19 11:11:42 2001
@@ -112,6 +112,9 @@
 %build
 unset LINGUAS || :

+perl -pi -e s':^MAN_DIR=.*:MAN_DIR=    %{_mandir}:' MCONFIG
+perl -pi -e s':^INFO_DIR=.*:INFO_DIR=  %{_infodir}:' MCONFIG
+
 %configure

 make "OPT=$RPM_OPT_FLAGS -g -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" \

(note a tab after {INFO,MAN}_DIR in perl, probably munged in cut'n'paste).

Comment 1 Elliot Lee 2002-01-04 20:29:13 UTC
Does this still occur with the util-linux-2.11n in rawhide?

Comment 2 Pekka Savola 2002-01-05 17:52:32 UTC
Yes, tested on 2.11n-1.  For example, %configure has --mandir=/usr/man but MAN_DIR in MCONFIG is /usr/share/man.


Comment 3 Elliot Lee 2002-01-29 20:43:44 UTC
I've made this happen using sed instead of perl, and gotten rid of the other
perl invocation, so now we BuildRequires sed instead ofperl.


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