Are they usually? Anyway, there’s no problem for me :)
Search Criteria
Package Details: python2-pyjnius 1.0.3-1
Package Actions
| Package Base: | python2-pyjnius |
|---|---|
| Description: | Python module to access Java class as Python class, using JNI. |
| Upstream URL: | https://github.com/kivy/pyjnius |
| Category: | lib |
| Licenses: | |
| Submitter: | flying-sheep |
| Maintainer: | flying-sheep |
| Last Packager: | None |
| Votes: | 3 |
| First Submitted: | 2012-08-20 20:31 |
| Last Updated: | 2012-09-06 15:15 |
Latest Comments
Comment by flying-sheep
Comment by biloucat
i put "# Contributor: flying-sheep" in the PKGBUILD but it don't appear on https://aur.archlinux.org/packages/python2-pyjnius-git/ !
Comment by biloucat
Thanks you,
I will submit it tomorrow
Comment by flying-sheep
of course can you add me as contributor.
and the package looks great! i built it and see no problems.
Comment by biloucat
This is my first official AUR PKGBUILD, please give me your opinion on its correctness, also can i report you as a contributor ?
pkgname=python2-pyjnius-git
pkgver=1.0.3.r103.gd5d2926
pkgrel=1
pkgdesc="Python module to access Java class as Python class, using JNI."
arch=('i686' 'x86_64')
url="https://github.com/kivy/pyjnius"
license=('MIT')
depends=('java-environment' 'python2')
makedepends=('cython2' 'git')
conflicts=('python2-pyjnius')
provides=('python2-pyjnius')
source=("$pkgname"::'git://github.com/kivy/pyjnius')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
# Use the tag of the last commit
git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$pkgname"
python2 setup.py build_ext --inplace -f
python2 setup.py build
}
package() {
cd "$srcdir/$pkgname"
python2 setup.py install --prefix="$pkgdir/usr"
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
Comment by flying-sheep
git version would be a new package, though.
you could ask them to tag a new version, then i’ll bump this package :)
(or base a python2-pyjnius-git package off this PKGBUILD)
Comment by biloucat
Oops i meant jdk 7.51-1 from AUR
seriously git version is better:
see for example https://github.com/kivy/pyjnius/commit/481b3e5d30fbf2cd09409b024ead0a1ee27fb354
Comment by flying-sheep
sun? java is by oracle by now.
this builds and installs flawlessly for me with default java (jdk7-openjdk)
Comment by biloucat
i have jdk from sun installed on arch 64bits.
Compil of python2-pyjnius fail with:
jnius/jnius.c:345:17: erreur fatale: jni.h : Aucun fichier ou dossier de ce type
#include "jni.h"
compilation terminée.
error: command 'gcc' failed with exit status 1
but if i use the git cloned version, all is Ok
Comment by mitsuse
Hmm...openjdk6 is installed from arch repositories.
But, I understand this is an upstream issue.
Thanks.
Comment by flying-sheep
this is an upstream issue. the package isn’t out of date (afaik “out of date” means there is a new upstream release or some urls or hashes changed)
this being said, the problem happens apparently if you installed java manually.
if you want this unusual setup to work, please try to get it working and then submit a pull request upstream, there is nothing i as a packager can do about it.
as soon as it is accepted and they generated a new version tag, i can update the package.
until then, consider using java from the arch repositories.
Comment by mitsuse
This problem may be same as below:
https://github.com/kivy/pyjnius/issues/18
Comment by mitsuse
A build error has occured.
'/usr/lib/jvm/java-6-openjdk/lib/amd64/server' is not found.
In my environment, '/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server' exists.
# output
gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -Wl,-O1,--sort-common,--as-needed,-z,relro -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-2.7/jnius/jnius.o -L/usr/lib/jvm/java-6-openjdk/lib/amd64/server -L/usr/lib -ljvm -lpython2.7 -o /tmp/yaourt-tmp-to/aur-python2-pyjnius/src/pyjnius-1.0.3/jnius/jnius.so -Wl,-rpath /usr/lib/jvm/java-6-openjdk/lib/amd64/server
gcc: error: /usr/lib/jvm/java-6-openjdk/lib/amd64/server: No such file or directory