Bug#811053: *.poms Should Not Be Required to Ensure Trailing Newline

2016-11-29 Thread 殷啟聰
Actually, not all programs think `debian/libandroid-dex-java.poms` has a trailing new line. Inside the text, it is like: `line1\n` While the version without trailing new line would be: `line1` So some program considers this file has one line regardless the trailing new line. And the bug is,

Bug#811053: *.poms Should Not Be Required to Ensure Trailing Newline

2016-09-27 Thread Christopher Hoskin
I've just tried this on Debian Testing: > apt source android-platform-libcore > cd android-platform-libcore-6.0.1+r55/ > cat debian/libandroid-dex-java.poms | wc -l 1 > debuild find ./ | grep "\.pom$" ./debian/libandroid-json-java/usr/share/maven-repo/com/android/json/debian/json-debian.pom

Bug#811053: *.poms Should Not Be Required to Ensure Trailing Newline

2016-09-27 Thread Christopher Hoskin
Ah, in mongo-java-driver I'm using: dh $@ --buildsystem=gradle --with javahelper,jh_maven_repo_helper whereas android-platform-libcore uses: dh $@ --with maven_repo_helper --buildsystem=gradle Christopher

Bug#811053: *.poms Should Not Be Required to Ensure Trailing Newline

2016-09-27 Thread 殷啟聰
I can definitely reproduce this bug in src:android-platform-libcore . I guess this bug only appears if your package uses bare maven-repo-helper wthout Maven or maven-debian-helper?

Bug#811053: *.poms Should Not Be Required to Ensure Trailing Newline

2016-09-26 Thread Christopher Hoskin
Package: maven-repo-helper Version: 1.9.2 Followup-For: Bug #811053 I haven't reproduced the trailing newline issue, but there's definitely a problem with multiple poms. What happens at the moment is that jh_maven_repo_helper adds the following to the debhelper sequence: mh_installpoms

Bug#811053: *.poms Should Not Be Required to Ensure Trailing Newline

2016-01-15 Thread Rene Engelhard
[ I am not the maven-repo-helper maintainer ] Hi, On Fri, Jan 15, 2016 at 04:42:54PM +0800, 殷啟聰 wrote: > If the $package.poms contains only one line, say: > > debian/foo.pom --usj-name=foo > > maven-repo-helper will not install any .pom or symlinks to > usr/share/maven-repo. But if I append

Bug#811053: *.poms Should Not Be Required to Ensure Trailing Newline

2016-01-15 Thread 殷啟聰
Package: maven-repo-helper Version: 1.8.12 Severity: normal If the $package.poms contains only one line, say: debian/foo.pom --usj-name=foo maven-repo-helper will not install any .pom or symlinks to usr/share/maven-repo. But if I append a newline to the end, it works without any problem. And

Bug#811053: *.poms Should Not Be Required to Ensure Trailing Newline

2016-01-15 Thread Emmanuel Bourg
Hi Seamlik, Thank you for reporting this issue. This is certainly not intentional but I'm not sure to understand how it happens. I got a look at the class that parses the .poms files (org.debian.maven.repo.ListOfPOMs) and it seems to handle the last line properly, with or without a trailing line

Bug#811053: *.poms Should Not Be Required to Ensure Trailing Newline

2016-01-15 Thread 殷啟聰
Thank you for responding so rapidly! I am packaging android-platform-libcore in . Actually I think this is also the reason why src:gradle currently only installs .pom but without symlinks.