[Patches] [ python-Patches-718286 ] DESTDIR variable patch

SourceForge.net noreply@sourceforge.net
Sun, 11 May 2003 13:26:03 -0700


Patches item #718286, was opened at 2003-04-09 16:44
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=718286&group_id=5470

Category: Build
Group: Python 2.3
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: wrobell (wrobell)
Assigned to: Martin v. Löwis (loewis)
Summary: DESTDIR variable patch

Initial Comment:
This patch adds DESTDIR variable feature known from
automake generated Makefile's. It simplifies packaging
task and is useful for distro (i.e. PLD, RedHat,
Debian) developers.

For example, for rpm, one can specify in %install section:

  make install DESTDIR=$RPM_BUILD_ROOT

then Python will be installed under $RPM_BUILD_ROOT
directory.
Otherwise distro developer is forced to specify:

  make install \
       BINDIR=$RPM_BUILD_ROOT%{_bindir} \
       SCRIPTDIR=$RPM_BUILD_ROOT%{_libdir} \
       LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
       MANDIR=$RPM_BUILD_ROOT%{_mandir} \
       INCLUDEDIR=$RPM_BUILD_ROOT%{_includedir} \
       CONFINCLUDEDIR=$RPM_BUILD_ROOT%{_includedir}


The patch has been tested on Linux.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2003-05-11 22:26

Message:
Logged In: YES 
user_id=21627

Thanks for the patch. Committed as

Makefile.pre.in 1.125
README 1.172
NEWS 1.764


----------------------------------------------------------------------

Comment By: wrobell (wrobell)
Date: 2003-04-09 16:46

Message:
Logged In: YES 
user_id=387193

Adding the patch due to current sf policy.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=718286&group_id=5470