Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 478802 - media-libs/alsa-lib-1.0.27.1 - python.c: In function 'pymelem_dealloc': python.c:591:13: error: 'struct pymelem' has no member named 'ob_type'
Summary: media-libs/alsa-lib-1.0.27.1 - python.c: In function 'pymelem_dealloc': pytho...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
: 478812 478844 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-07-30 12:06 UTC by Frank Krömmelbein
Modified: 2016-08-11 11:13 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,69.63 KB, text/plain)
2013-07-30 12:07 UTC, Frank Krömmelbein
Details
emerge --info (emerge.info,6.25 KB, text/plain)
2013-07-30 12:08 UTC, Frank Krömmelbein
Details
patch to readd the missing line (alsa-lib-1.0.27.1.python.patch,265 bytes, patch)
2013-07-30 14:18 UTC, Bruno Redondi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Krömmelbein 2013-07-30 12:06:56 UTC
[ebuild     U  ] media-libs/alsa-lib-1.0.27.1 [1.0.26-r1] USE="-alisp -debug -doc -python" PYTHON_SINGLE_TARGET="python2_7 (-python2_6%)" PYTHON_TARGETS="python2_7 (-python2_6%)" 0 kB


Update to 1.0.27.2 compiles again on my machine.

Reproducible: Always
Comment 1 Frank Krömmelbein 2013-07-30 12:07:48 UTC
Created attachment 354602 [details]
build.log
Comment 2 Frank Krömmelbein 2013-07-30 12:08:13 UTC
Created attachment 354604 [details]
emerge --info
Comment 3 Agostino Sarubbo gentoo-dev 2013-07-30 12:13:38 UTC
[I] media-libs/alsa-lib                                                                                                                                                             
     Available versions:  1.0.26-r1 1.0.27.1 ~1.0.27.1-r1 ~1.0.27.2 {{abi_mips_n32 abi_mips_n64 abi_mips_o32 abi_x86_32 abi_x86_64 abi_x86_x32 alisp debug doc python python_single_target_python2_6 python_single_target_python2_7 python_targets_python2_6 python_targets_python2_7}}                                                                                 
     Installed versions:  1.0.27.1(10:58:52 07/30/13)(python_single_target_python2_7 python_targets_python2_7 -alisp -debug -doc -python)
Comment 4 Josh Holmer 2013-07-30 12:57:58 UTC
I can confirm this bug. Same USE flags and PYTHON_TARGETS as original poster.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2013-07-30 13:11:41 UTC
hmm. I can't wrap my head around why it's working for some and some not but I can propably provide still solution. should be in mirrors in about hour.

+  30 Jul 2013; Samuli Suominen <ssuominen@gentoo.org> alsa-lib-1.0.27.1.ebuild,
+  alsa-lib-1.0.27.2.ebuild:
+  Force use of correct python-config wrt #478802 by Frank Krömmelbein

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/alsa-lib/alsa-lib-1.0.27.1.ebuild?r1=1.5&r2=1.6
Comment 6 Bruno Redondi 2013-07-30 14:17:22 UTC
Still broken with USE=-python

Looking at the differences between 1.0.26-r1 and 1.0.27.1 in the src_configure() i noticed the deletion of $(use_enable python) from econf command line.

Readding the line fixed the problem on my pc.
Comment 7 Bruno Redondi 2013-07-30 14:18:27 UTC
Created attachment 354622 [details, diff]
patch to readd the missing line

patch to readd $(use_enable python) to econf
Comment 8 Frank Krömmelbein 2013-07-30 14:53:32 UTC
-> Reopen

The problem still exist, even with the change from Samuli.
Same error.

I´ve found Bug #478812 https://bugs.gentoo.org/show_bug.cgi?id=478812 the comment 5 from "Coacher".

Also my System Python version was magical switched to 3.2?

After changing it back to 2.7 the alsa-lib i was able to compile this version.


I´ll try later the patch provided by Bruno again with python 3.2.


@Bruno
What Python version did 
"eselect python list" shows as your system python version?
Comment 9 Coacher 2013-07-30 14:58:36 UTC
*** Bug 478812 has been marked as a duplicate of this bug. ***
Comment 10 Bruno Redondi 2013-07-30 15:02:41 UTC
(In reply to Frank Krömmelbein from comment #8)
> -> Reopen
> 
> The problem still exist, even with the change from Samuli.
> Same error.
> 
> I´ve found Bug #478812 https://bugs.gentoo.org/show_bug.cgi?id=478812 the
> comment 5 from "Coacher".
> 
> Also my System Python version was magical switched to 3.2?
> 
> After changing it back to 2.7 the alsa-lib i was able to compile this
> version.
> 
> 
> I´ll try later the patch provided by Bruno again with python 3.2.
> 
> 
> @Bruno
> What Python version did 
> "eselect python list" shows as your system python version?

Old versions of stage3 setted python2 as system python version, newer set python3. When I noticed it, I manually switched old installations to use python3, so on all the computers I use the result is:

sargas ~ # eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.2 *
sargas ~ #
Comment 11 Frank Krömmelbein 2013-07-30 15:15:59 UTC
Thank you very much for this Info Bruno! 

So i changed my python version back to 3.2 and tried the small patch from Bruno
Result: It compiles.

So i would suggest to add this line to the Ebuild.
Comment 12 Coacher 2013-07-30 16:04:55 UTC
(In reply to Samuli Suominen from comment #5)

I confirm this bug on hardened amd64. Pushed changes are not enough to build alsa-lib against python-3.2 which is the default in modern stage3 for some time.
Comment 13 Samuli Suominen (RETIRED) gentoo-dev 2013-07-30 16:36:46 UTC
(In reply to Bruno Redondi from comment #7)
> Created attachment 354622 [details, diff] [details, diff]
> patch to readd the missing line
> 
> patch to readd $(use_enable python) to econf

applied in tree

+  30 Jul 2013; Samuli Suominen <ssuominen@gentoo.org> alsa-lib-1.0.27.1.ebuild:
+  Restore missing use_enable for python.
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2013-07-30 17:30:21 UTC
*** Bug 478844 has been marked as a duplicate of this bug. ***