Re: Guidelines for R packages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



pingou wrote:
> Tom "spot" Callaway wrote:
>> I worked up some guidelines for packaging R addon libraries/modules in
>> Fedora:
>>
>> http://fedoraproject.org/wiki/PackagingDrafts/R
>>
>> I'm open to feedback from R packagers. I'm going to try to get this
>> approved by the Fedora Packaging Committee next week, barring any
>> serious complaints.
>>
>> Thanks,
>>
>> ~spot
> 
> Hi,
> 
> I have just test the macro.
> We should change the
> 
> %post
> %{_R_make_search_index}
> 
> to
> 
> %post -p %{_R_make_search_index}
> 
> Without rpmlint returned me a warning.
> 
> Thanks,
> Regards,
> ~pingou

Hi,

I am facing two problems,
Either we do:
%post
%{_R_make_search_index}
Then we need to ignore the following warning from rpmlint:
W: R-widgetTools one-line-command-in-%post
/usr/lib/rpm/R-make-search-index.sh
You should use %post -p <command> instead of using:

%post
<command>

It will avoid the fork of a shell interpreter to execute your command as
well as allows rpm to automatically mark the dependency on your command
for the excecution of the scriptlet.

or we go for
%post -p %{_R_make_search_index}
And then we are facing the following error from mock:
$ mock ../SRPMS/R-widgetTools-1.12.0-10.fc6.src.rpm
init
clean
prep
This may take a while
unpack cache
setup
No srpm created from specfile from srpm: R-widgetTools-1.12.0-10.fc6.src.rpm
ending
done

With nothing in the /var/lib/mock/fedora-6-i386-core/result/build.log
and this in the root.log http://rafb.net/p/GTEcKQ48.html (done for
another package but R-widgetTools
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=241081 has the same
error)

I would go for the first solution if we have no way to correct it, but
it that has it has to be precised in the packaging guidelines.

Best regards,

~pingou

	

	
		
___________________________________________________________________________ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire.
http://fr.mail.yahoo.com


[Index of Archives]     [Fedora Users]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux