Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536972 - dev-util/rpmdevtools should depend on =dev-lang/python-2* and use it
Summary: dev-util/rpmdevtools should depend on =dev-lang/python-2* and use it
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Stanislav Ochotnicky (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-18 13:29 UTC by Guilherme Amadio
Modified: 2015-08-20 08:01 UTC (History)
0 users

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


Attachments
rpmdevtools-8.5.ebuild (rpmdevtools-8.5.ebuild,708 bytes, text/plain)
2015-03-12 14:46 UTC, Guilherme Amadio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guilherme Amadio gentoo-dev 2015-01-18 13:29:15 UTC
dev-util/rpmdevtools fails to build because the rpm python module it needs is only installed for python2, so if the active python is python3, it can't run the scripts to build man pages. Also, the checkbashisms script is no longer distributed in version 8.5, so removing it fails. A version bump might be interesting. Here's the diff for the 8.5 ebuild:

--- /usr/portage/dev-util/rpmdevtools/rpmdevtools-8.3-r1.ebuild 2013-06-04 19:01:14.000000000 -0300
+++ dev-util/rpmdevtools/rpmdevtools-8.5.ebuild 2015-01-18 11:21:32.099530472 -0200
@@ -28,8 +28,8 @@
 
 RDEPEND="${CDEPEND}"
 
-src_install() {
+src_prepare() {
        default
 
-       rm "${ED}/usr/bin/checkbashisms" || die "Failed to remove checkbashisms script"
+       sed -i 's:#!/usr/bin/python:#!/usr/bin/python2:' rpmdev-rmdevelrpms.py || die
 }



Reproducible: Always
Comment 1 Guilherme Amadio gentoo-dev 2015-03-12 14:46:19 UTC
Created attachment 398738 [details]
rpmdevtools-8.5.ebuild

Here is an ebuild that depends on python-2* and fixes the interpreter to use it.
It's also a version bump to 8.5. I will commit this to the tree in a week if there are no objections. Best,
Comment 2 Guilherme Amadio gentoo-dev 2015-08-20 08:01:56 UTC
New version is now in the main tree.