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 11-28-2010, 06:39 PM
Andrea Musuruane
 
Default Docs outside %docdir

Hi all,
I was performing a package review for RPM Fusion:
http://bugzilla.rpmfusion.org/show_bug.cgi?id=1153

RPM Fusion follows the Fedora Packaging Guidelines so I think I can
ask here a question it came to me during the review.

This package has some exec files correctly installed by the packager
in %libexecdir/packagename/bin instead of %libdir/packagename/bin
because they are called by the main program who sits in %bindir.

The files in %libexecdir use some files in
%libexecdir/packagename/doc to show help, options, examples, etc when
called with some parameters.

Is it acceptable to leave these files here? Or they should be moved
somewhere else?

They cannot be installed in %docdir because they affect the runtime of
the application:
https://fedoraproject.org/wiki/Packaging/Guidelines#Documentation

Thanks in advance for you help.

Bye,

Andrea.
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 11-29-2010, 04:11 AM
Ralf Corsepius
 
Default Docs outside %docdir

On 11/28/2010 08:39 PM, Andrea Musuruane wrote:
> Hi all,
> I was performing a package review for RPM Fusion:
> http://bugzilla.rpmfusion.org/show_bug.cgi?id=1153
>
> RPM Fusion follows the Fedora Packaging Guidelines so I think I can
> ask here a question it came to me during the review.
>
> This package has some exec files correctly installed by the packager
> in %libexecdir/packagename/bin instead of %libdir/packagename/bin
> because they are called by the main program who sits in %bindir.
>
> The files in %libexecdir use some files in
> %libexecdir/packagename/doc to show help, options, examples, etc when
> called with some parameters.
>
> Is it acceptable to leave these files here?
No, this is not acceptable.

Think of libexecdir as an auxilliary bindir, which is supposed to take
applications, users are not supposed to invoke directly.

> Or they should be moved
> somewhere else?
Yes.

> They cannot be installed in %docdir because they affect the runtime of
> the application:
You'd have to provide more details about how these "docs affect the
runtime" to be able to help.

In case applications (Independently of where they are installed) access
them directly (e.g. because these docs are part of an
application-specific, application-integrated documentation system),
/usr/share/<package> or a subdir of it may be a suitable candidate.

Ralf

--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 11-29-2010, 05:33 AM
Jiri Vanek
 
Default Docs outside %docdir

Have no Ida how this email come to me
But - best way is to let them pass to doc dir, and link them from the
location where program expect them, so both sides are satisfied.

Regards J.
Redhar cz

On 11/28/2010 08:39 PM, Andrea Musuruane wrote:
> Hi all,
> I was performing a package review for RPM Fusion:
> http://bugzilla.rpmfusion.org/show_bug.cgi?id=1153
>
> RPM Fusion follows the Fedora Packaging Guidelines so I think I can
> ask here a question it came to me during the review.
>
> This package has some exec files correctly installed by the packager
> in %libexecdir/packagename/bin instead of %libdir/packagename/bin
> because they are called by the main program who sits in %bindir.
>
> The files in %libexecdir use some files in
> %libexecdir/packagename/doc to show help, options, examples, etc when
> called with some parameters.
>
> Is it acceptable to leave these files here? Or they should be moved
> somewhere else?
>
> They cannot be installed in %docdir because they affect the runtime of
> the application:
> https://fedoraproject.org/wiki/Packaging/Guidelines#Documentation
>
> Thanks in advance for you help.
>
> Bye,
>
> Andrea.
> --
> packaging mailing list
> packaging@lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/packaging

--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 11-29-2010, 05:58 AM
Ralf Corsepius
 
Default Docs outside %docdir

On 11/29/2010 07:33 AM, Jiri Vanek wrote:
> Have no Ida how this email come to me
> But - best way is to let them pass to doc dir, and link them from the
> location where program expect them, so both sides are satisfied.

a) docs below libexecdir are always wrong "by definition of libexecdir"

b) This kind of symlinks only work if docs are considered strictly
optional by applications, because rpm --exclude-docs would break such
kind of symlinks.

Ralf

--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 
Old 11-29-2010, 08:36 AM
Andrea Musuruane
 
Default Docs outside %docdir

On Mon, Nov 29, 2010 at 6:11 AM, Ralf Corsepius <rc040203@freenet.de> wrote:
> On 11/28/2010 08:39 PM, Andrea Musuruane wrote:
>>
>> Hi all,
>> * * I was performing a package review for RPM Fusion:
>> http://bugzilla.rpmfusion.org/show_bug.cgi?id=1153
>>
>> RPM Fusion follows the Fedora Packaging Guidelines so I think I can
>> ask here a question it came to me during the review.
>>
>> This package has some exec files correctly installed by the packager
>> in %libexecdir/packagename/bin instead of %libdir/packagename/bin
>> because they are called by the main program who sits in %bindir.
>>
>> The files in %libexecdir use some files in
>> %libexecdir/packagename/doc to show help, options, examples, etc when
>> called with some parameters.
>>
>> Is it acceptable to leave these files here?
>
> No, this is not acceptable.
>
> Think of libexecdir as an auxilliary bindir, which is supposed to take
> applications, users are not supposed to invoke directly.

Files in libexecdir are only called by a wrapper that sits in bindir.

> You'd have to provide more details about how these "docs affect the runtime"
> to be able to help.
>
> In case applications (Independently of where they are installed) access them
> directly (e.g. because these docs are part of an application-specific,
> application-integrated documentation system), /usr/share/<package> or a
> subdir of it may be a suitable candidate.

Yes, that's the case. I agree datadir/package_name is the best option we have.

Thank you for your reply.

Regards,

Andrea.
--
packaging mailing list
packaging@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/packaging
 

Thread Tools




All times are GMT. The time now is 05:42 AM.

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