You are not logged in.
Pacman complained about invalid url when I tried to upgrade jre to the latest version.
Upon a closer look of the PKGBUILD file, I realized by changing one of the _minor=45 to _major=7,
it solved the problem.
However, it does not seem to know that the upgrade had been successful and when I run
# packer -Syu
at a later time, it asks me to install jre again.
How can I stop this from happening?
Offline
Might be a packer problem, build and install with makepkg/pacman to check.
Offline
What exactly are you trying to do? Is your system fully up to date?
Offline
Well, I usually just use packer so I am not sure what's the right steps to use makepkg
Anyway, here is what I tried: I saved the PKGBUILD (modified it with _major=7) and jre.install into a directory and then run makepkg in that directory.
That resulted in an error: ==> ERROR: java-policy-settings.desktop was not found in the build directory and is not a URL.
Could I get more pointers on how to do what you just said.
Also could someone please post a corrected PKGBUILD?
Thanks
Offline
to Karol: When I tried upgrading jre yesterday,it complained that the source file cannot be found and the reason is that there is a mistake in the PKGBUILD (as explained above).
After correcting that mistake, jre upgraded but it still prompts me to upgrade jre everytime I run #packer -Syu.
I want to get that issue fixed.
Offline
jre is in the AUR https://aur.archlinux.org/packages/jre/
Please post the exact errors you get, because in your first post you said that pacman printed some errors related to jre, which is unlikely, as jre is not in the repos.
Offline
Could I get more pointers on how to do what you just said.
There are pointers all over the place - try the wiki and the man pages for a start. Also, some advice, albeit a little late - you shouldn't be using any aur helper if you haven't got your head around the underlying processes first.
Also could someone please post a corrected PKGBUILD?
I'm sure the maintainer will be happy to oblige whenever he has the time. Until then, couldn't you post it somewhere yourself? You said you had fixed it.
Offline
Here is what I exactly what I got by issuing sudo packer -Syu
~ > sudo packer -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
archlinuxfr is up to date
:: Starting full system upgrade...
there is nothing to do
:: Synchronizing aur database...
aur 31 31 [######################]100%
:: Starting full aur upgrade...
Aur Targets (1): jre
Proceed with installation? [Y/n]
Edit jre PKGBUILD with $EDITOR? [Y/n] n
Edit jre.install with $EDITOR? [Y/n] n
==> Making package: jre .45-1 (Wed Oct 16 15:26:05 PDT 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading jre-u45-linux-x64.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 286 0 0 652 0 --:--:-- --:--:-- --:--:-- 652
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
==> ERROR: Failure while downloading jre-u45-linux-x64.tar.gz
Aborting...
The build failed.
local database is up to date
As I said, it should be jre-7u45-... the 7 is missing and that's because the PKGBUILD that comes with it does not have _major=7.
Offline
Edit the PKGBUILD, download the package and install it.
This is the solution until the maintainer fixes the PKGBUILD, as per comment on https://aur.archlinux.org/packages/jre/
Last edited by karol (2013-10-16 22:36:56)
Offline
Yes, I probably shouldn't use an AUR helper. Perhaps, I probably shouldn't use Archlinux at all.
I think I demonstrated I attempted to solve the problem (by reading the PKGBUILD).
If all the help one get can here is to go ahead and read the wiki (not even saying which wiki to read), well I guess is AUR, makepkg and ABS...
then I have to say I probably shouldn't ask for help here as well.
Offline
What's the output of 'pacman -Q jre'?
Offline
pingpong, start with these links :
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
@karol
~ > pacman -Q jre
jre 7.45-1
@Lone_Wolf
Thanks, I will follow the tips and see whether I can resolve the problem.
Offline
By the way
~ > packer jre
0 extra/jre7-openjdk 7.u40_2.4.2-1
Free Java environment based on OpenJDK 7.0 with IcedTea7 replacing binary
plugs - Full Java runtime environment - needed for executing Java GUI and
Webstart programs
1 extra/jre7-openjdk-headless 7.u40_2.4.2-1
Free Java environment based on OpenJDK 7.0 with IcedTea7 replacing binary
plugs - Minimal Java runtime - needed for executing non GUI Java programs
2 aur/jre .45-1 (540)
Java Runtime Environment
I guess item 2 aur/jre .45-1 (540) should read aur/jre 7.45-1 (540) [installed] if things run correctly.
That's probably the reason why packer thinks that I did not have the updated version, cos .45-1 and 7.45-1 does not match.
Offline
Yup, as I said, you can ignore the package for now, you will get such behavior because the PKGBUILD needs fixing.
Offline
Looking at the PKGBUILD, the maintainer is Det. Is there a way to get this to his/her attention quicker?
Or should one simply file a Bug report?
Th
Offline
Quicker? jre has been updated yesterday, give him a break.
You can e-mail him in a day or two https://aur.archlinux.org/account/Det
There's no bugtracker for the AUR packages, you post your issues and fixes in the comments.
Offline
@Karol Oops, I missed your reply in #9. It made me sound so unreasonable...
I don't mind to wait. I do understand it is volunteer work. I just didn't know what we are waiting for if we can't let the maintainer know about the issue. But thanks for pointing out to me how.
In fact, I'm more than happy to "help" by leaving a comment of what I know in the link that you provide.
Offline