You are not logged in.

#1 2016-11-05 20:30:21

bkim125
Member
Registered: 2016-11-05
Posts: 3

(SOLVED) AUR Opengrok

Hi,

I am new. I am having trouble installing Opengrok from AUR possibly because it is outdated.

$ yaourt -S --noconfirm opengrok 
==> Downloading opengrok PKGBUILD from AUR...
x .SRCINFO
x PKGBUILD
x deploy.sh
opengrok 0.12.1-3  (2015-09-08 16:34)
( Unsupported package: Potentially dangerous ! )
==> opengrok dependencies:
 - tomcat8 (already installed)
 - ctags (already installed)
 - sh (already installed)
 - unzip (already installed)
 - sed (already installed) [makedepend]


==> Continue building opengrok ? [Y/n]
==> ----------------------------------
==> 
==> Building and installing package
==> Making package: opengrok 0.12.1-3 (Sat Nov  5 13:28:35 PDT 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading opengrok-0.12.1.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     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  146k    0  146k    0     0  99960      0 --:--:--  0:00:01 --:--:--  295k
  -> Found deploy.sh
==> Validating source files with sha1sums...
    opengrok-0.12.1.tar.gz ... FAILED
    deploy.sh ... Passed
==> ERROR: One or more files did not pass the validity check!
==> ERROR: Makepkg was unable to build opengrok.
==> Restart building opengrok ? [y/N]
==> ---------------------------------
==>

I tried using the solution based on this thread, but to no avail. Please help!

Last edited by bkim125 (2016-11-05 22:49:03)

Offline

#2 2016-11-05 20:50:39

headkase
Member
Registered: 2011-12-06
Posts: 1,975

Re: (SOLVED) AUR Opengrok

yaourt is the source of endless trouble.  I would suggest to use cower instead.  Then once you have a PKGBUILD ready to go that you downloaded with it use makepkg with the option to not perform the integrity check.  That's the hackish way to do it and a good way to learn what yaourt is hiding from you.

Offline

#3 2016-11-05 21:03:29

metak
Member
Registered: 2009-09-27
Posts: 198

Re: (SOLVED) AUR Opengrok

The download link just redirects to github page. You'll have to update the source & sha1sums lines in pkgbuild file.
Seems like the maintainer hasn't updated it in a long time.

Last edited by metak (2016-11-05 21:04:04)

Offline

#4 2016-11-05 21:12:08

bkim125
Member
Registered: 2016-11-05
Posts: 3

Re: (SOLVED) AUR Opengrok

metak wrote:

The download link just redirects to github page. You'll have to update the source & sha1sums lines in pkgbuild file.
Seems like the maintainer hasn't updated it in a long time.

How would I specifically go about doing this?

Thanks

Offline

#5 2016-11-05 21:19:50

metak
Member
Registered: 2009-09-27
Posts: 198

Re: (SOLVED) AUR Opengrok

bkim125 wrote:

How would I specifically go about doing this?

Thanks

Actually, you only have to fix the download link in sources line.

Replace 

https://java.net/projects/opengrok/downloads/download/opengrok-0.12.1.tar.gz

with   

https://java.net/downloads/opengrok/opengrok-0.12.1.tar.gz

Offline

#6 2016-11-05 21:39:28

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,788
Website

Re: (SOLVED) AUR Opengrok

The PKGBUILD is awful, I've just adopted it and am working on fixing it. Bear with me.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2016-11-05 22:48:23

bkim125
Member
Registered: 2016-11-05
Posts: 3

Re: (SOLVED) AUR Opengrok

Thanks for the help guys, issue is resolved! So in summary, this is what needs to happen:

Run the following commands:

$ packer -G opengrok
$ cd opengrok

edit the PKGBUILD like metak instructed:

metak wrote:
bkim125 wrote:

How would I specifically go about doing this?

Thanks

Actually, you only have to fix the download link in sources line.

Replace 

https://java.net/projects/opengrok/downloads/download/opengrok-0.12.1.tar.gz

with   

https://java.net/downloads/opengrok/opengrok-0.12.1.tar.gz

Then the following commands:

$ makepkg -g >> PKGBUILD
$ makepkg
$ sudo pacman -U opengrok-0.12.1-3-x86_64.pkg.tar.xz

Offline

#8 2016-11-06 02:11:11

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,788
Website

Re: (SOLVED) AUR Opengrok

Does it work like that? The script the package comes with expects tomcat at /opt/tomcat (which it isn't), and the runtime script upstream ships expects /etc/alternatives/java to exist (which it doesn't). I didn't get chance to rework the PKGBUILD yet, but if you've had success with the existing PKGBUILD, that'd make it easy to push out a quick version bump to 0.12.1.6 at least.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB