You are not logged in.

#1 2010-09-17 10:14:14

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427

Alpino

I'm creating a PKGBUILD for alpino. To build alpino, it needs, among other things, /usr/lib/swipl-5.10.1/library/dialect/sicstus/swipl-lfr.pl from the swi-prolog package. However, to use such prolog files as they do in the Makefile, e.g:

swipl  /usr/lib/swipl-5.10.1/library/dialect/sicstus/swipl-lfr.pl <args>

the swipl-lfr.pl needs to be executable, which it isn't. Is there a way to achieve this in a PKGBUILD? i.e. how can I give executable rights to swipl-lfr.pl?

p.s. If the file is executable, alpino builds just fine.

Offline

#2 2010-09-17 10:16:21

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,430
Website

Re: Alpino

My guess is that the easiest way is to file a bug report to get it made executable....

Offline

#3 2010-09-17 10:25:31

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427

Re: Alpino

That has crossed my mind as well. To run a prolog file, by definition it has to be executable (makes sense so far). However, that means you can say the same for all the 1719 pl files included in swi-prolog? When taking a look at the rpm package provided by swi-prolog, none of these files are executable which leads me to think they're may be a better solution.

Offline

#4 2010-09-17 10:43:03

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Alpino

You could always chmod within the PKGBUILD. Hacky, and will fail if stuff gets moved around.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#5 2010-09-17 10:46:08

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,430
Website

Re: Alpino

You should not be able to chmod a file on your system from within a PKGBUILD.

Offline

#6 2010-09-17 10:47:00

Nepherte
Member
From: Singapore
Registered: 2008-09-09
Posts: 427

Re: Alpino

Offline

Board footer

Powered by FluxBB