[Patches] [ python-Patches-434008 ] sharedinstall must use $prefix

noreply@sourceforge.net noreply@sourceforge.net
Tue, 11 Dec 2001 21:14:51 -0800


Patches item #434008, was opened at 2001-06-17 15:01
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=434008&group_id=5470

Category: Build
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 3
Submitted By: Gregor Hoffleit (flight)
Assigned to: Guido van Rossum (gvanrossum)
Summary: sharedinstall must use $prefix

Initial Comment:
In the sharedinstall target of the Makefile, we have to
provide setup.py with the $prefix variable. Currently,
the $prefix is ignored in this call of setup.py, in
this leads to strange results:

When called with "make install
prefix=/tmp/python/debian/tmp" (which is used in
packaging Python, and works completely fine otherwise),
we get this (running this is non-root user):

  copying
build/lib.linux-i686-2.1/linuxaudiodev.so->/data/src/debian/python2-2.1/debian/tmp/usr/lib/python2.1/lib-dynload
  running install_scripts
  copying build/scripts/pydoc -> /usr/bin
  error: /usr/bin/pydoc: Read-only file system
  make[1]: *** [sharedinstall] Error 1
  make[1]: Leaving directory `/data/src/debian/python2-2.1'
  make: *** [install-stamp] Error 2

The same kind of problem occurs with all other things
that are installed by the call of the setup.py script.

The attached patch cures this problem by providing the
$prefix to the setup.py script. I think this is the
correct way to fix it.

    Gregor



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

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-12-11 21:14

Message:
Logged In: YES 
user_id=6380

Closing as Won't fix. If Gregor still wants this, he can
always add a note and I'll reopen it.

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

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-12-04 11:44

Message:
Logged In: YES 
user_id=6380

Gregor, care to respond? Or should I just reject this?

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

Comment By: Guido van Rossum (gvanrossum)
Date: 2001-08-09 10:53

Message:
Logged In: YES 
user_id=6380

Hm, the comment one line above says "This goes into
$(exec_prefix)".

Shouldn't setup.py be given the exec-prefix variable then?

Is this still an issue if the correct -prefix option is
given to the configure script?

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

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