You are not logged in.

#1 2013-10-16 21:44:01

pingpong
Member
From: Los Angeles
Registered: 2010-12-30
Posts: 93

Problems in upgrading jre

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

#2 2013-10-16 21:49:22

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,835

Re: Problems in upgrading jre

Might be a packer problem, build and install with makepkg/pacman to check.

Offline

#3 2013-10-16 22:09:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Problems in upgrading jre

What exactly are you trying to do? Is your system fully up to date?

Offline

#4 2013-10-16 22:10:21

pingpong
Member
From: Los Angeles
Registered: 2010-12-30
Posts: 93

Re: Problems in upgrading jre

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

#5 2013-10-16 22:15:15

pingpong
Member
From: Los Angeles
Registered: 2010-12-30
Posts: 93

Re: Problems in upgrading jre

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

#6 2013-10-16 22:23:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Problems in upgrading jre

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

#7 2013-10-16 22:31:41

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,835

Re: Problems in upgrading jre

pingpong wrote:

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.

pingpong wrote:

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

#8 2013-10-16 22:32:21

pingpong
Member
From: Los Angeles
Registered: 2010-12-30
Posts: 93

Re: Problems in upgrading jre

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

#9 2013-10-16 22:36:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Problems in upgrading jre

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

#10 2013-10-16 22:43:02

pingpong
Member
From: Los Angeles
Registered: 2010-12-30
Posts: 93

Re: Problems in upgrading jre

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

#11 2013-10-16 22:45:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Problems in upgrading jre

What's the output of 'pacman -Q jre'?

Offline

#12 2013-10-16 23:17:55

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 4,050

Re: Problems in upgrading jre


Booting with apg Openrc, NOT systemd.
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#13 2013-10-16 23:42:50

pingpong
Member
From: Los Angeles
Registered: 2010-12-30
Posts: 93

Re: Problems in upgrading jre

@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

#14 2013-10-16 23:47:59

pingpong
Member
From: Los Angeles
Registered: 2010-12-30
Posts: 93

Re: Problems in upgrading jre

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

#15 2013-10-16 23:49:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Problems in upgrading jre

Yup, as I said, you can ignore the package for now, you will get such behavior because the PKGBUILD needs fixing.

Offline

#16 2013-10-17 00:57:52

pingpong
Member
From: Los Angeles
Registered: 2010-12-30
Posts: 93

Re: Problems in upgrading jre

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

#17 2013-10-17 01:09:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,423

Re: Problems in upgrading jre

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

#18 2013-10-17 04:00:44

pingpong
Member
From: Los Angeles
Registered: 2010-12-30
Posts: 93

Re: Problems in upgrading jre

@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

Board footer

Powered by FluxBB