FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 10-12-2010, 05:29 PM
Orion Poplawski
 
Default Need help with requires

plplot-tk packages some examples:

/usr/share/plplot5.9.7/examples/tk/tk01
/usr/share/plplot5.9.7/examples/tk/tk01.in
/usr/share/plplot5.9.7/examples/tk/xtk01.c

tk01 is a script to run the compiled xtk01.c and has:

#!/usr/share/plplot5.9.7/examples/tk/xtk01 -f

This generates a requires of /usr/share/plplot5.9.7/examples/tk/xtk01 which is
not present in the package.

I'd like to just get rid of the requires all together, but not sure how.
Should this be considered a bug at all in rpm, where it should limit script
interpreter dependencies to {/usr}/bin or some such?

Should I change it to something like (this doesn't work):

#!/bin/sh -c /usr/share/plplot5.9.7/examples/tk/xtk01 -f

Add a comment:

#Remove this line

at the top?

I can't use the filtering because this is an arch package with binaries.

--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion@cora.nwra.com
Boulder, CO 80301 http://www.cora.nwra.com
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 10-12-2010, 05:47 PM
Paul Howarth
 
Default Need help with requires

On Tue, 12 Oct 2010 11:29:56 -0600
Orion Poplawski <orion@cora.nwra.com> wrote:

> plplot-tk packages some examples:
>
> /usr/share/plplot5.9.7/examples/tk/tk01
> /usr/share/plplot5.9.7/examples/tk/tk01.in
> /usr/share/plplot5.9.7/examples/tk/xtk01.c
>
> tk01 is a script to run the compiled xtk01.c and has:
>
> #!/usr/share/plplot5.9.7/examples/tk/xtk01 -f
>
> This generates a requires of /usr/share/plplot5.9.7/examples/tk/xtk01
> which is not present in the package.
>
> I'd like to just get rid of the requires all together, but not sure
> how. Should this be considered a bug at all in rpm, where it should
> limit script interpreter dependencies to {/usr}/bin or some such?
>
> Should I change it to something like (this doesn't work):
>
> #!/bin/sh -c /usr/share/plplot5.9.7/examples/tk/xtk01 -f
>
> Add a comment:
>
> #Remove this line
>
> at the top?
>
> I can't use the filtering because this is an arch package with
> binaries.

Doesn't just removing the exec bit of the permissions of the script do
what you need?

Paul.
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 10-12-2010, 05:48 PM
Orion Poplawski
 
Default Need help with requires

On 10/12/2010 11:47 AM, Paul Howarth wrote:
> On Tue, 12 Oct 2010 11:29:56 -0600
> Orion Poplawski<orion@cora.nwra.com> wrote:
>
>> plplot-tk packages some examples:
>>
>> /usr/share/plplot5.9.7/examples/tk/tk01
>> /usr/share/plplot5.9.7/examples/tk/tk01.in
>> /usr/share/plplot5.9.7/examples/tk/xtk01.c
>>
>> tk01 is a script to run the compiled xtk01.c and has:
>>
>> #!/usr/share/plplot5.9.7/examples/tk/xtk01 -f
>>
>> This generates a requires of /usr/share/plplot5.9.7/examples/tk/xtk01
>> which is not present in the package.
>>
>> I'd like to just get rid of the requires all together, but not sure
>> how. Should this be considered a bug at all in rpm, where it should
>> limit script interpreter dependencies to {/usr}/bin or some such?
>>
>> Should I change it to something like (this doesn't work):
>>
>> #!/bin/sh -c /usr/share/plplot5.9.7/examples/tk/xtk01 -f
>>
>> Add a comment:
>>
>> #Remove this line
>>
>> at the top?
>>
>> I can't use the filtering because this is an arch package with
>> binaries.
>
> Doesn't just removing the exec bit of the permissions of the script do
> what you need?
>

Yes, it does. Thank you.

--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion@cora.nwra.com
Boulder, CO 80301 http://www.cora.nwra.com
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 

Thread Tools




All times are GMT. The time now is 08:24 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org