Hi, an app I maintain recently gained a help menu. It expects to find the single help.html file in /usr/share/help (ie: make install helpdir=%{buildroot}%{_datadir}/help )
This folder seems to be owned by rarian, and hence doesn't seem to make sense as location to place this help file.
Is the best approach to patch the src so that it expects to find the help file in a better location ? What would that location be ?
ie. maybe: make install helpdir=%{buildroot}%{_datadir}/%{name} , and then adjust src to look there ?
Cheers, David Timms
On 10/25/2009 03:04 PM, David Timms wrote:
Hi, an app I maintain recently gained a help menu. It expects to find the single help.html file in /usr/share/help (ie: make install helpdir=%{buildroot}%{_datadir}/help )
This folder seems to be owned by rarian, and hence doesn't seem to make sense as location to place this help file.
This sounds like a blatant bug in rarian to me ;-)
Is the best approach to patch the src so that it expects to find the help file in a better location ? What would that location be ?
ie. maybe: make install helpdir=%{buildroot}%{_datadir}/%{name}
No, because this would only change the directory of installation, but would not change the application's expectiations (the application's built-in directory).
I.e. the application would still look into $(datadir)/help while the files it expects to find are located elsewhere.
, and then adjust src to look there ?
Exactly. You have to change the sources to make the app look into the modified installation directory.
How to implement this depends on a package's configuration/makefile details.
In some cases it would be necessary to patch the sources.
In some cases it's possible to override values at "configuration-time" or make-time.
I.e. there are chances %configure helpdir=%{_datadir}/%{name} make make install DESTDIR="..." might work.
or %configure make helpdir="%{_datadir}/%{name}" make helpdir="%{_datadir}/%{name}" DESTDIR="..." install
will work.
Ralf
On 10/26/2009 06:37 PM, Ralf Corsepius wrote:
This sounds like a blatant bug in rarian to me ;-)
Although, there was a bz requesting that rarian own that folder. I thought I might be missing some knowledge about whether a help file for an app could/should live there.
In some cases it's possible to override values at "configuration-time" or make-time.
I hoped there would be, but alas, the source code needed to be modified.
I placed the file in %{buildroot}%{_datadir}/%{name}.
I take it from Ralf's answer, that this is an acceptable/suitable place to put it ?
AIUI, it couldn't go in %doc dir ? And should the folder include the version (or does it that only apply to %doc location ?).
Thanks, DaveT.
On 10/26/2009 02:05 PM, David Timms wrote:
On 10/26/2009 06:37 PM, Ralf Corsepius wrote:
This sounds like a blatant bug in rarian to me ;-)
Although, there was a bz requesting that rarian own that folder. I thought I might be missing some knowledge about whether a help file for an app could/should live there.
Well, the question would be: Is /usr/share/help an acceptable directory to be owned by an arbitrary application?
IMO, it is not. It's a too general directory name to allow an arbitrary application to own it and fill it with some "non-standardized files".
In some cases it's possible to override values at "configuration-time" or make-time.
I hoped there would be, but alas, the source code needed to be modified.
I placed the file in %{buildroot}%{_datadir}/%{name}.
I take it from Ralf's answer, that this is an acceptable/suitable place to put it ?
AIUI, it couldn't go in %doc dir ? And should the folder include the version (or does it that only apply to %doc location ?).
Which package are we talking about? Are the sources rsp. your packaging publicly available somewhere?
Ralf
On 10/27/2009 12:16 AM, Ralf Corsepius wrote:
AIUI, it couldn't go in %doc dir ? And should the folder include the version (or does it that only apply to %doc location ?).
Which package are we talking about? Are the sources rsp. your packaging publicly available somewhere?
It's dvbcut: http://cvs.rpmfusion.org/viewvc/rpms/dvbcut/devel/?root=free
http://dvbcut.svn.sourceforge.net/viewvc/dvbcut/trunk/
Cheers, DaveT.
packaging@lists.fedoraproject.org