Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - trang

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: trang 20131210-1

Git Clone URL: https://aur-dev.archlinux.org/trang.git (read-only)
Package Base: trang
Description: Converts between different schema languages for XML
Upstream URL: https://github.com/relaxng/jing-trang
Licenses: GPL
Submitter: ShadowKyogre
Maintainer: ShadowKyogre
Last Packager: ShadowKyogre
Votes: 4
Popularity: 0.022517
First Submitted: 2015-08-13 18:31
Last Updated: 2016-04-04 19:50

Latest Comments

mephinet commented on 2017-01-17 20:10

I tried to build this with openjdk version "1.8.0_112", which fails with:

[javac] .../trang/src/jing-trang-20131210/build/mod/rng-parse/gensrc/main/com/thaiopensource/relaxng/parse/compact/CompactSyntax.java:1590: error: incompatible types: Annotations cannot be converted to AnnotationsImpl
[javac] a = IncludeBody(include, scope, a);
[javac] ^
[javac] where AnnotationsImpl,Location,ElementAnnotation,CommentListImpl are type-variables:
[javac] AnnotationsImpl extends Annotations<Location,ElementAnnotation,CommentListImpl> declared in class CompactSyntax
[javac] Location extends Object declared in class CompactSyntax
[javac] ElementAnnotation extends Object declared in class CompactSyntax
[javac] CommentListImpl extends CommentList<Location> declared in class CompactSyntax

The issue is known (https://aur.archlinux.org/trang.git) and a patch is available (https://github.com/relaxng/jing-trang/issues/182#issuecomment-90583555) - it would be great if you could apply this patch to your PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index bf637cf..69b0983 100644
@@ -13,8 +13,14 @@ depends=(java-runtime-headless)
+ https://storage.googleapis.com/google-code-attachments/jing-trang/issue-182/comment-1/jing-trang-20131210-java8.patch

+prepare() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ patch -Np1 -i "${srcdir}/jing-trang-20131210-java8.patch"
build() {
cd "$srcdir/${_pkgname}-${pkgver}"
@@ -29,4 +35,6 @@ package() {

- '1641a4fa0578ddec1afb374a5da75be6816e659f60c98207619f656cb90ca135')
+ '1641a4fa0578ddec1afb374a5da75be6816e659f60c98207619f656cb90ca135'
+ '880692dc2cf926fb1cb96a68008b11c73f5ebd422fffc8995c9a7526f8ba5767'
+ )

piater commented on 2016-07-25 19:34

Thanks for packaging this. I was actually hunting for jing, and found a working install here. Thus my suggestions:

- Could you make it explicit (in the description, and ideally also by renaming this package to jing-trang) that this package also provides jing?

- Could you add the jing equivalent of the trang launcher script?

- It did not compile for me because of a missing javac. makedepends=(java-environment) fixed it.

- Any reason why not arch=('any')?

ShadowKyogre commented on 2016-04-04 19:51

@unhammer: Updated to a more recent release and used the nicer runner! Thanks a bunch!

unhammer commented on 2016-04-04 18:35

Also seems there's been later releases: https://github.com/relaxng/jing-trang/releases

unhammer commented on 2016-04-04 18:32

debian has a nice runner like http://sprunge.us/hZdj in /usr/bin/trang, maybe that could be included?

pdxleif commented on 2015-10-08 04:34

Also "java-runtime-headless" is enough of a requirement; no need to list java-environment AND java-runtime.

pdxleif commented on 2015-10-08 04:32

The PKGBUILD needs to be updated. Specifically, it's missing a package() function. And "|| return 1" hasn't been needed for quite some time.