Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568858 - python-3.5.1 won't build, potential typo in ebuild?
Summary: python-3.5.1 won't build, potential typo in ebuild?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-20 06:59 UTC by Qiming Wang
Modified: 2015-12-21 15:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Qiming Wang 2015-12-20 06:59:01 UTC
dev-lang/python-3.5.1 is a subslotted package. But in several place in the ebuild, the ${SLOT} is used directly to as the target of `newins` or `cp`, which results in an error 'directory or file doesn't exist',
because `${SLOT}` is 3.5/3.5m now.
I think that these ${SLOT} should be changed to ${PYVER}.
Comment 1 Qiming Wang 2015-12-20 07:01:25 UTC
$ diff  -C 1 python-3.5.1.ebuild ~/python-3.5.1.ebuild
*** python-3.5.1.ebuild	Fri Dec 18 19:32:25 2015
--- /Users/dom/python-3.5.1.ebuild	Sun Dec 20 14:47:09 2015
***************
*** 287,292 ****

! 		local fwdir=/usr/$(get_libdir)/Python.framework/Versions/${SLOT}
! 		ln -s "${EPREFIX}"/usr/include/python${SLOT} \
  			"${ED}${fwdir}"/Headers || die
! 		ln -s "${EPREFIX}"/usr/lib/libpython${SLOT}.dylib \
  			"${ED}${fwdir}"/Python || die
--- 287,292 ----

! 		local fwdir=/usr/$(get_libdir)/Python.framework/Versions/${PYVER}
! 		ln -s "${EPREFIX}"/usr/include/python${PYVER} \
  			"${ED}${fwdir}"/Headers || die
! 		ln -s "${EPREFIX}"/usr/lib/libpython${PYVER}.dylib \
  			"${ED}${fwdir}"/Python || die
***************
*** 328,330 ****
  		# since that won't work here, use a (cheap) trick instead
! 		local libname=libpython${SLOT}
  	else
--- 328,330 ----
  		# since that won't work here, use a (cheap) trick instead
! 		local libname=libpython${PYVER}
  	else
Comment 2 Fabian Groffen gentoo-dev 2015-12-21 08:49:48 UTC
this looks like a forward patching artifact, so I guess you're right
Comment 3 Fabian Groffen gentoo-dev 2015-12-21 15:22:50 UTC
Fixed, thanks!