FS#69421 - [hivex] 1.3.19-1 builds Python bindings against python2 instead of python

Attached to Project: Community Packages
Opened by Repentinus (Repentinus) - Sunday, 24 January 2021, 00:50 GMT
Last edited by Robin Broda (coderobe) - Sunday, 21 March 2021, 05:41 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Robin Broda (coderobe)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Upstream provides hivex with Python bindings that can be built against both Python 3 and Python 2. Considering that Python 2 is no longer supported and Python 3 has been the default for Arch for ages, one would expect these bindings to be built against Python 3, not Python 2.

Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any

The following patch fixes this:
```
diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD
index f0f6278..500ff4e 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -4,14 +4,14 @@

pkgname=hivex
pkgver=1.3.19
-pkgrel=1
+pkgrel=2
pkgdesc="System for extracting the contents of Windows Registry."
arch=("x86_64")
url="http://libguestfs.org"
license=("LGPL2.1")
depends=("libxml2" "perl")
-makedepends=("python2" "ruby" "ruby-rake" "ruby-rdoc" "perl-io-stringy" "perl-test-simple" "ocaml-findlib" "ocaml" "chrpath")
-optdepends=("python2: python bindings"
+makedepends=("python" "ruby" "ruby-rake" "ruby-rdoc" "perl-io-stringy" "perl-test-simple" "ocaml-findlib" "ocaml" "chrpath")
+optdepends=("python: python bindings"
"ruby: ruby bindings"
"ocaml: ocaml bindings")
source=("http://libguestfs.org/download/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig})
@@ -27,7 +27,7 @@ build() {
--libdir=/usr/lib \
--prefix=/usr \
--disable-rpath \
- --disable-static PYTHON=python2
+ --disable-static PYTHON=python

make
chrpath -d perl/blib/arch/auto/Win/Hivex/Hivex.so
```
This task depends upon

Closed by  Robin Broda (coderobe)
Sunday, 21 March 2021, 05:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  hivex 1.3.19-3

Loading...