Summary: | sci-geosciences/josm-99999 now depends on ivy | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jean-Claude Repetto <jrepetto> |
Component: | Current packages | Assignee: | Sci-geo Project <sci-geosciences> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | creideiki+gentoo-bugzilla, jrepetto, jstein, julien.papasian, mateubruno |
Priority: | Normal | Keywords: | PMASKED |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 794598 | ||
Bug Blocks: | |||
Attachments: |
Complete build log
Working ebuild with ivy Working ebuild with ivy Build log New working ebuild with ivy |
Description
Jean-Claude Repetto
2020-04-13 07:02:42 UTC
Created attachment 632584 [details]
Complete build log
probably since josm-16239 https://josm.openstreetmap.de/wiki/Changelog Created attachment 663760 [details]
Working ebuild with ivy
In case someone is looking for a working ebuild (tested with 17084), I attached one.
You will need to disable network sandbox for ivy to download dependencies for JOSM (instructions provided in ebuild).
Hi Julien, Thanks for your ebuild. I have put this line in /etc/portage/package.env: FEATURES=\"-network-sandbox\" sci-geosciences/josm But when I run "emerge josm", I get this error: --- Invalid atom in /etc/portage/package.env: FEATURES=\"-network-sandbox\" I removed the backslashes, same problem: --- Invalid atom in /etc/portage/package.env: FEATURES="-network-sandbox" Hello, sorry for late reply, I wasn't subscribed to the thread. Try this way: 1) Create /etc/portage/env/nonetworksandbox.conf 2) Put in it: FEATURES="${FEATURES} -network-sandbox" 3) In /etc/portage/package.env, add: sci-geosciences/josm nonetworksandbox.conf Hi Julien, Thank you very much, it works now! There is still a little problem, the version number is unknown: 2020-10-11 20:09:19.586 WARNING: Unexpected JOSM version number in revision file, value is 'UNKNOWN' In the JOSM splash screen: Strange version - You should update! Jean-Claude Created attachment 670094 [details, diff]
Working ebuild with ivy
I have fixed the "UNKNOWN" version of josm.
Please merge this ebuild. The current ebuild in the portage tree is not working. Hi, Today I am trying to emerge JOSM to update it. But now it fails: >>> Compiling source in /var/tmp/portage/sci-geosciences/josm-99999/work/josm-99999 ... * Disabling all optional ANT_TASKS Buildfile: /var/tmp/portage/sci-geosciences/josm-99999/work/josm-99999/build.xml init-properties: init-ivy: [get] Getting: https://josm.openstreetmap.de/nexus/content/repositories/public/org/apache/ivy/ivy/2.5.0/ivy-2.5.0.jar [get] To: /var/tmp/portage/sci-geosciences/josm-99999/work/josm-99999/tools/ivy/ivy-2.5.0.jar resolve: [ns0:resolve] :: Apache Ivy 2.5.0 - 20191020104435 :: https://ant.apache.org/ivy/ :: [ns0:resolve] :: loading settings :: file = /var/tmp/portage/sci-geosciences/josm-99999/work/josm-99999/ivysettings.xml * ACCESS DENIED: mkdir: /var/lib/portage/home/.ivy2 (This message is repeated a lot of times) Then lots of messages like: F: mkdir S: deny P: /var/lib/portage/home/.ivy2 A: /var/lib/portage/home/.ivy2 R: /var/lib/portage/home/.ivy2 C: /opt/openjdk-bin-8.272_p10/bin/java -classpath /usr/share/ant/lib/ant-launcher.jar:/opt/openjdk-bin-8.272_p10/lib/tools.jar -Dant.home=/usr/share/ant -Dant.library.dir=/usr/share/ant/lib org.apache.tools.ant.launch.Launcher -cp -Dnoget=true -Dmaven.mode.offline=true -Dbuild.sysclasspath=ignore -Dmaven.test.skip=true dist-optimized -DnoJavaFX=true Any idea? Created attachment 681256 [details]
Build log
For some reason, it's trying to write files in /var/lib/portage/ which is forbidden. It's probably only cache (I can see it reading in /var/lib/portage/home/.ivy2/cache). I guess, it requires a patch (build.xml, maybe other files?) to put the directory in portage tmp. The faulty line is probably at the beginning (appears twice): <dirname property="base.dir" file="${ant.file.josm}" /> Best would be to identify when it stopped working, so we can look at josm repo and find out the culprit commit and make a revert patch. When was your last successful build? If you have eix, it will show you with: $ eix sci-geosciences/josm Mine was 24 nov 2020. My latest successful build was on December 3, 2020. TL;DR: workaround on last paragraph. I see nothing relevant between Dec 3rd and today: https://josm.openstreetmap.de/changeset?old_path=%2Fjosm%2Ftrunk&old=17386&new_path=%2Fjosm%2Ftrunk&new=17444&sfp_email=&sfph_mail= The few lines modified on build.xml are unrelated (JUnit). Since it's not related to ant-ivy which has not been updated, I looked around the new package acct-user/portage added recently and we can see the following home directory in /etc/passwd: /var/lib/portage/home I don't know if it has changed since this new package, or if permissions on these folders have changed. I tried downgrading portage to 3.0.4 with no luck. Best is probably to find a way to change the home directory temporarily (or patch the directory that is used for build time) directly in the ebuild, if someone knows how to do it. In the meantime, I edited /etc/passwd to change portage home directory to /var/tmp/portage/home, created /var/tmp/portage/home, chowned portage:portage /var/tmp/portage/home and it worked. I reverted back /etc/passwd to /var/lib/portage/home to avoid any issue with other packages. you can override default ivy user dir like
> eant dist-optimized -DnoJavaFX=true -Divy.default.ivy.user.dir="${WORKDIR}"/ivy/
Thank you very much, it worked very well. Created attachment 689367 [details]
New working ebuild with ivy
Note that "sci-geosciences/josm-bin" was recently added as a new package. Switching to it might just solve this one for some people, while others might not like -bin. Give it a try and maybe rant on -bin. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e482ee2190800320d2c7495c74c5d648e95dcd6c commit e482ee2190800320d2c7495c74c5d648e95dcd6c Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2021-12-13 16:32:26 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2021-12-13 16:32:26 +0000 sci-geosciences/josm: treeclean Closes: https://bugs.gentoo.org/819129 Closes: https://bugs.gentoo.org/669218 Closes: https://bugs.gentoo.org/717274 Closes: https://bugs.gentoo.org/622502 Closes: https://bugs.gentoo.org/810712 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> profiles/package.mask | 6 --- sci-geosciences/josm/Manifest | 1 - sci-geosciences/josm/josm-10966.ebuild | 68 ---------------------------------- sci-geosciences/josm/josm-99999.ebuild | 50 ------------------------- sci-geosciences/josm/metadata.xml | 8 ---- 5 files changed, 133 deletions(-) |