You are not logged in.

#1 2015-09-07 10:50:02

Shibumi
Package Maintainer (PM)
Registered: 2013-04-14
Posts: 41
Website

[SOLVED] problems with PKGBUILD python-oletools

Hello,
I have a problem with the following PKGBUILD.

before you complain: python2-oletools is only available for python2, thats the reason why i am not using a split package.
Nevertheless, I have problems with python2-oletools. here is the output of makepkg:

==> Making package: python-oletools 0.12-1 (Mon Sep  7 12:48:07 CEST 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found oletools-0.12.tar.gz
==> Validating source files with sha512sums...
    oletools-0.12.tar.gz ... Passed
==> Extracting sources...
  -> Extracting oletools-0.12.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package_python-oletools()...
Sorry, oletools 0.12 requires Python 2.x.
==> ERROR: A failure occurred in package_python-oletools().
    Aborting...

And yes.. python2 is installed.. I think it has todo with the python twist in other distributions: python == python2 in archlinux

# Maintainer: Christian Rebischke <echo Q2hyaXMuUmViaXNjaGtlQGdtYWlsLmNvbQo= | base64 -d>

_pyname=oletools
pkgname=python2-oletools
pkgver=0.12
pkgrel=1
pkgdesc="Python tools to analyze security characteristics of MS Office and OLE files"
depends="python2"
arch=('any')
url="https://pypi.python.org/pypi/oletools"
license=('BSD')
source=("https://pypi.python.org/packages/source/o/$_pyname/$_pyname-$pkgver.tar.gz")
sha512sums=('4c9a1141b7d3e59010e5af93acced268c7c027c9049232b67fad8b0770de3cc55a9ca87178fb9d714bc485d95e9cf0f10b30101fc61b7ab6f1caf40d5ea427af')

package() {
  cd "$srcdir/$_pyname-$pkgver"
  python setup.py install -O1 --root=$pkgdir
  install -Dm 644 ${_pyname}/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README"
  cp ${_pyname}/doc/* "${pkgdir}/usr/share/doc/${pkgname}"

}

# vim:set ts=2 sw=2 et:

Last edited by Shibumi (2015-09-07 11:30:56)

Offline

#2 2015-09-07 11:00:06

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,396

Re: [SOLVED] problems with PKGBUILD python-oletools

And yes.. python2 is installed.. I think it has todo with the python twist in other distributions: python == python2 in archlinux

Since this is a python2 program, setup.py probably expects python === python2 , which is false on arch.

changing the PKGBUILD to force setup.py to run with python2 like this is usally enough :

python2 setup.py install -O1 --root=$pkgdir

Sidenote :
Lately most of my programming is done in JS , so  I tend to favor using triple =

Last edited by Lone_Wolf (2015-09-07 11:01:57)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2015-09-07 11:30:24

Shibumi
Package Maintainer (PM)
Registered: 2013-04-14
Posts: 41
Website

Re: [SOLVED] problems with PKGBUILD python-oletools

damn thx I am blind!

Offline

Board footer

Powered by FluxBB