[opensuse-packaging] Bug in singlespec?
Morning, I was building a new package, setup was made as for singlespec, but by definition %define skip_python2 1 it should only be py3. I noticed a build failure for Leap 42.3, while Tumbleweed builds fine. The error is: [ 3s] ----------------------------------------------------------------- [ 3s] I have the following modifications for gnuhealth-thalamus.spec: [ 3s] ----------------------------------------------------------------- [ 3s] ----- building gnuhealth-thalamus.spec (user abuild) [ 3s] ----------------------------------------------------------------- [ 3s] ----------------------------------------------------------------- [ 3s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' -- nosignature /home/abuild/rpmbuild/SOURCES/gnuhealth-thalamus.spec [ 3s] error: line 82: Package does not exist: %files -n python-gnuhealth- thalamus No idea why it asks for this file, it was defined nowhere.... I have rewritten the specfile for Python3 only , and then it builds for Leap 42.3 as well. See: https://build.opensuse.org/package/show/Application:ERP:Tryton:4.2/ gnuhealth-thalamus I guess this is an error in the singlespec macros? Best regards Axel
Does it work when you put the `%define skip_python2 1` at the top? Otherwise all the build requirements and sub-packages are already created with python2 On 12/03/2017 09:59 AM, Axel Braun wrote:
Morning,
I was building a new package, setup was made as for singlespec, but by definition %define skip_python2 1 it should only be py3.
I noticed a build failure for Leap 42.3, while Tumbleweed builds fine. The error is:
[ 3s] ----------------------------------------------------------------- [ 3s] I have the following modifications for gnuhealth-thalamus.spec: [ 3s] ----------------------------------------------------------------- [ 3s] ----- building gnuhealth-thalamus.spec (user abuild) [ 3s] ----------------------------------------------------------------- [ 3s] ----------------------------------------------------------------- [ 3s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' -- nosignature /home/abuild/rpmbuild/SOURCES/gnuhealth-thalamus.spec [ 3s] error: line 82: Package does not exist: %files -n python-gnuhealth- thalamus
No idea why it asks for this file, it was defined nowhere.... I have rewritten the specfile for Python3 only , and then it builds for Leap 42.3 as well.
See: https://build.opensuse.org/package/show/Application:ERP:Tryton:4.2/ gnuhealth-thalamus
I guess this is an error in the singlespec macros?
Best regards Axel
Am Sonntag, 3. Dezember 2017, 13:19:39 CET schrieben Sie:
Does it work when you put the `%define skip_python2 1` at the top?
yes, this time the build passes.
Otherwise all the build requirements and sub-packages are already created with python2
I have added this to the documentation: https://en.opensuse.org/ openSUSE:Packaging_Python_Singlespec#Packages_for_single_Python_version Thanks Axel -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
Axel Braun
-
Sebix