Python 3.4 RPM on AIX
hi I am having problem building Python RPM on AIX and I think there are several bugs in Python .spec files. README file says download the bz2 version, but only gziped and xz version available from Python website so had to convert the .tgz file to bz2 and copy it over to SOURCES directory. %define config_binsuffix was set to 2.6 and not sure why it should be 2.6 when I am working on 3.4 version. had to change it to to pass the error. %define config_binsuffix none Misc/cheatsheet seems to be decommissioned in new version of Python but still in spec file so commented it. The last error that I am receiving and can't figure the resolution is belowwhy it won't create the required direcotory ?Processing files: python-devel-3.4.2-AIX71 File not found by glob: /var/opt/freeware/tmp/python-3.4.2-root/usr/include/python3.4/*.h File not found: /var/opt/freeware/tmp/python-3.4.2-root/usr/lib/python3.4/config PreReq: rpmlib(VersionedDependencies) <= 3.0.3-1 python = 3.4.2 Processing files: python-tools-3.4.2-AIX71 File not found: /var/opt/freeware/tmp/python-3.4.2-root/usr/bin/pydoc File not found: /var/opt/freeware/tmp/python-3.4.2-root/usr/bin/smtpd.py PreReq: rpmlib(VersionedDependencies) <= 3.0.3-1 python = 3.4.2-AIX71 running rpm -bl option to see missing files are below: rpm -bl /opt/freeware/src/packages/SPECS/python-3.4.spec Processing files: python-3.4.2-AIX71 File not found by glob: /var/opt/freeware/tmp/python-3.4.2-root/opt/freeware/man/man1/python.1* File not found: /var/opt/freeware/tmp/python-3.4.2-root/usr/include/python3.4 Processing files: python-devel-3.4.2-AIX71 File not found by glob: /var/opt/freeware/tmp/python-3.4.2-root/usr/include/python3.4/*.h File not found: /var/opt/freeware/tmp/python-3.4.2-root/usr/lib/python3.4/config PreReq: rpmlib(VersionedDependencies) <= 3.0.3-1 python = 3.4.2 Processing files: python-tools-3.4.2-AIX71 File not found: /var/opt/freeware/tmp/python-3.4.2-root/usr/bin/pydoc File not found: /var/opt/freeware/tmp/python-3.4.2-root/usr/bin/smtpd.py PreReq: rpmlib(VersionedDependencies) <= 3.0.3-1 python = 3.4.2-AIX71 Any idea as how I can fix this ?
Blaxton writes:
I am having problem building Python RPM on AIX and I think there are several bugs in Python .spec files.
This list is for development *of* Python, not development *with* Python. In this case, you would probably be better off with an AIX list devoted to packaging, an RPM-specific list, or failing those two, a Red Hat/Fedora list on packaging. All of the issues you list are related to generic distro packaging issues, and not to Python itself.
I am using the spec file that comes with Python source code which downloaded from python.org website source file is set on spec file to file with bz2 format while there is only .xz and zipped are available to download. I thought somehow some one from development team has wrote that .spec fileand maybe supporting it. This is like no support. From: Stephen J. Turnbull <stephen@xemacs.org> To: Blaxton <blaxxton@yahoo.com> Cc: "python-dev@python.org" <python-dev@python.org> Sent: Monday, February 16, 2015 10:02 PM Subject: [Python-Dev] Python 3.4 RPM on AIX Blaxton writes:
I am having problem building Python RPM on AIX and I think there are several bugs in Python .spec files.
This list is for development *of* Python, not development *with* Python. In this case, you would probably be better off with an AIX list devoted to packaging, an RPM-specific list, or failing those two, a Red Hat/Fedora list on packaging. All of the issues you list are related to generic distro packaging issues, and not to Python itself.
On Mon, Feb 16, 2015 at 10:50 PM, Blaxton <blaxxton@yahoo.com.dmarc.invalid> wrote:
I am using the spec file that comes with Python source code which downloaded from python.org website source file is set on spec file to file with bz2 format while there is only .xz and zipped are available to download.
I thought somehow some one from development team has wrote that .spec file and maybe supporting it.
This is like no support.
The spec file in Misc/RPM has not been maintained in quite some time; the last change to that file that wasn't just a version bump was one [1] whose commit message was "#5776: fix mistakes in python specfile. (Nobody probably uses it anyway.)" and was committed four and a half years ago. It's not unlikely that you're the first person to use the file since then :). We should probably just remove the file, but if you manage to get it working and would like to provide a patch on bugs.python.org, it would probably be accepted. [1] https://hg.python.org/cpython/rev/ef75ecd0e1a7 -- Zach
Hi Zach, I think it is best to remove the .spec file if it is not supported by Python developers.It is misleading to ship unsupported file within source tree. Thanks for reply. From: Zachary Ware <zachary.ware+pydev@gmail.com> To: "python-dev@python.org" <python-dev@python.org> Cc: Blaxton <blaxxton@yahoo.com> Sent: Monday, February 16, 2015 11:54 PM Subject: Re: [Python-Dev] Python 3.4 RPM on AIX On Mon, Feb 16, 2015 at 10:50 PM, Blaxton <blaxxton@yahoo.com.dmarc.invalid> wrote:
I am using the spec file that comes with Python source code which downloaded from python.org website source file is set on spec file to file with bz2 format while there is only .xz and zipped are available to download.
I thought somehow some one from development team has wrote that .spec file and maybe supporting it.
This is like no support.
The spec file in Misc/RPM has not been maintained in quite some time; the last change to that file that wasn't just a version bump was one [1] whose commit message was "#5776: fix mistakes in python specfile. (Nobody probably uses it anyway.)" and was committed four and a half years ago. It's not unlikely that you're the first person to use the file since then :). We should probably just remove the file, but if you manage to get it working and would like to provide a patch on bugs.python.org, it would probably be accepted. [1] https://hg.python.org/cpython/rev/ef75ecd0e1a7 -- Zach
Blaxton writes:
I am using the spec file that comes with Python source code which downloaded from python.org website
Ah, sorry, I didn't realize that. My advice still stands; while there are Red Hat/Fedora/other-RPM-based distro workers here, I don't know if any of them actually have anything to do with RPM-building. And I've been following this list for over 10 years -- this is the first I've heard of problems with the .spec in the Python sources, so I suspect Zach is right: you're the first person to use the thing in half a decade. The Python project itself doesn't distribute RPMs as far as I can see.
This is like no support.
Unfortunately, yes. I know I don't have the knowledge to help fix the .spec file, and I don't even know who to tell you to ask in the project.
----- Original Message -----
Blaxton writes:
I am using the spec file that comes with Python source code which downloaded from python.org website
Ah, sorry, I didn't realize that. My advice still stands; while there are Red Hat/Fedora/other-RPM-based distro workers here, I don't know if any of them actually have anything to do with RPM-building. And I've been following this list for over 10 years -- this is the first I've heard of problems with the .spec in the Python sources, so I suspect Zach is right: you're the first person to use the thing in half a decade. The Python project itself doesn't distribute RPMs as far as I can see.
Yes, there are people here who do everything around distro RPM-building here :) AFAIK no RPM based distribution uses the specfile from the Python tarball. Our specfiles (Fedora/Red Hat Enterprise Linux) are much more complex to satisfy all the downstream policies and such. In case you're interested, you can have a look at our current python3.spec [1]. Feel free to reuse it (all Fedora specfiles are licensed under MIT license unless noted otherwise).
This is like no support.
Unfortunately, yes. I know I don't have the knowledge to help fix the .spec file, and I don't even know who to tell you to ask in the project.
I can help with RPM related questions (it'd probably be best to ask them privately, since their offtopic for this list), but I have pretty much zero knowledge of AIX - so I won't be able to help you with AIX-specific issues. -- Regards, Slavek Kabrda [1] http://pkgs.fedoraproject.org/cgit/python3.git/tree/python3.spec
participants (5)
-
Benjamin Peterson -
Blaxton -
Bohuslav Kabrda -
Stephen J. Turnbull -
Zachary Ware