Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 337303

Summary: Prefix/Cygwin: Invalid path "//home/" breaks Python during "make altinstall"
Product: Gentoo/Alt Reporter: Al <oss.elmar>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Other   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: --root=/$(DESTDIR) to --root=$(DESTDIR) to avoid //home/

Description Al 2010-09-14 16:28:09 UTC
When running "ebuild python-2.6.5-r2.ebuild install" it breaks while trying to create a directory "//home/". 

Reproducible: Always

Steps to Reproduce:
Bootstrap Prefix on Cygwin.



The reason is a parameter handling in Makefile.pre.in line 1005 and 1085:

  --root=/$(DESTDIR)

Where $DESTDIR is /home/...

I think it is an unclean approach to try to fix a defectify reltive path by prepending a slash. People should give clean pathes.

I append a little patch that works for me, if I find out how to do that. Maybe as comment in the next setp?

Al
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-09-14 16:30:38 UTC
(In reply to comment #0)

> I append a little patch that works for me, if I find out how to do that. Maybe
> as comment in the next setp?

Unified diff (diff -u <old> <new>) and there is a "Create a New Attachment" link ;)
Comment 2 Al 2010-09-14 16:33:46 UTC
Created attachment 247287 [details, diff]
--root=/$(DESTDIR)  to --root=$(DESTDIR)  to avoid //home/

This patch works for me. There is more patching required to bootstrap Python on Cygwin. This patch only addresses the given issue.
Comment 3 Fabian Groffen gentoo-dev 2014-01-14 19:51:59 UTC
this needs reevaluation