Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 393533 - Add support fory dev-lang/python-3 in app-portage/gentoopm and app-portage/smart-live-rebuild ebuild
Summary: Add support fory dev-lang/python-3 in app-portage/gentoopm and app-portage/sm...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on: 343721 417125
Blocks:
  Show dependency tree
 
Reported: 2011-12-07 17:54 UTC by daemonpnz
Modified: 2012-05-26 10:15 UTC (History)
3 users (show)

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


Attachments
ebuild changes (file_393533.txt,1.18 KB, text/plain)
2012-05-23 07:04 UTC, Michael Weber (RETIRED)
Details
ebuild changes (file_393533.txt,625 bytes, text/plain)
2012-05-23 07:12 UTC, Michael Weber (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description daemonpnz 2011-12-07 17:54:06 UTC
Please, add support Python 3.x in app-portage/gentoopm and app-portage/smart-live-rebuild ebuild. This is required to portage[+python3]. Without this support I have error message "Error during set creation: Could not import 'smartliverebuild.sets.SmartLiveRebuildSet' for section 'smart-live-rebuild'", if I try execute emerge with set @smart-live-rebuild.

Reproducible: Always

Steps to Reproduce:
1.build portage-2.2[+python3], smart-live-rebuild-1.2.1, gentoopm-0.2.3
2.emerge @smart-live-rebuild

Actual Results:  
Error message "Error during set creation: Could not import 'smartliverebuild.sets.SmartLiveRebuildSet' for section 'smart-live-rebuild'"
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2011-12-07 19:42:31 UTC
I'd need fixed Python3.1 or stable Python3.2 first.
Comment 2 Mike Gilbert gentoo-dev 2012-03-14 03:16:29 UTC
python-3.2.2 is now stable. :)
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-03-14 07:00:47 UTC
(In reply to comment #2)
> python-3.2.2 is now stable. :)

Does it bring necessary distutils fixes?
Comment 4 Robert Golding 2012-03-15 10:03:54 UTC
Everytime I use emerge, whether for a set or particular atom, I get the following message, except when using the search flag.

--->start
 # emerge -av [package]
Error during set creation: Could not import 'smartliverebuild.sets.SmartLiveRebuildSet' for section 'smart-live-rebuild'

These are the packages that would be merged, in order:

Calculating dependencies... done!
--->end

The package creating the error is app-portage/smart-live-rebuild and is pulled in by gentoolkit.

Reproducible: Always

Steps to Reproduce:
1.build Gentoo keyworded to ~amd64 which includes app-portage/gentoolkit-9999
2.emerge [anything]

Actual Results:  
Error message "Error during set creation: Could not import 'smartliverebuild.sets.SmartLiveRebuildSet' for section 'smart-live-rebuild'

How do I get rid of this message, it is driving me crazy seeing it there all the time.
Comment 5 Mike Gilbert gentoo-dev 2012-03-18 00:53:02 UTC
(In reply to comment #3)
> Does it bring necessary distutils fixes?

Good question. That would be a no. :(
Comment 6 Mike Gilbert gentoo-dev 2012-03-18 01:51:47 UTC
As a workaround, you could do something like this:

pkg_setup() {
	[[ $(locale charmap) == UTF-8 ]] || die "Please use a UTF-8 locale"
	python_pkg_setup
}

Or instead of dying, you could force a value in LC_CTYPE.
Comment 7 Mike Gilbert gentoo-dev 2012-03-18 02:59:31 UTC
(In reply to comment #4)
> How do I get rid of this message, it is driving me crazy seeing it there all
> the time.

eselect python set python2.7
python-updater
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-03-18 07:26:22 UTC
(In reply to comment #6)
> As a workaround, you could do something like this:
> 
> pkg_setup() {
> 	[[ $(locale charmap) == UTF-8 ]] || die "Please use a UTF-8 locale"
> 	python_pkg_setup
> }
> 
> Or instead of dying, you could force a value in LC_CTYPE.

Forcing a value requires using valid locale, no?
Comment 9 Mike Gilbert gentoo-dev 2012-03-18 07:31:51 UTC
(In reply to comment #8)
> Forcing a value requires using valid locale, no?

So it does; not an option then.
Comment 10 Michael Weber (RETIRED) gentoo-dev 2012-05-23 07:04:36 UTC
Created attachment 312781 [details]
ebuild changes

I just reinstalled both version without restricting 3.* ABIs, it installes and the python optimization compiles (so the code looks python3 compatible).

Which changes in distutils do you need? I didn't get that from the above comments.
Comment 11 Michael Weber (RETIRED) gentoo-dev 2012-05-23 07:12:53 UTC
Created attachment 312787 [details]
ebuild changes

Same for `smart-live-rebuild-3.2 -E`, everything is just fine.
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-23 16:40:08 UTC
Yes, I plan to revbump the ebuild when python-distutils-ng problems are resolved.
Comment 13 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-26 10:15:39 UTC
Done and done.