Hi Orion Thanks for the comments. Did you mean the packages created by those rpm macros are supposed to be autoloaded when starting octave? Strangely, when I tested all the 4 toolboxes I recently packaged, they are not autoloaded. For example, after installing octave-jnifti or octave-zmat (both in updates-testing repo) https://koji.fedoraproject.org/koji/packageinfo?packageID=30109 https://koji.fedoraproject.org/koji/packageinfo?packageID=30102 https://src.fedoraproject.org/rpms/octave-zmat https://src.fedoraproject.org/rpms/octave-jnifti I can not call the functions in these toolboxes unless I manually call pkg load. Did I miss anything in the spec file? Thanks Qianqian From: Orion Poplawski On 10/10/19 9:27 PM, Qianqian Fang wrote: > Dear list, > > I am packaging a few octave toolboxes for Fedora. Some of the toolboxes > have a dependency to other toolboxes. > > On the rpm package level, I can use *Requires* to ask rpm to install > these dependent modules, but when running Octave, the *pkg load* command > is not aware of the dependent toolboxes and automatically load them. > > I would like to know if anyone know if pkg is capable of loading > dependent toolboxes? if yes, what file I should create to tell pkg such > information? because the spec file uses the > *%octave_pkg_{build,install,preun}* macros to create toolbox packages, I > am wondering if adding dependency info is supported by these macros (and > how). Fedora octave rpm packages are configured to be auto-loaded by octave. I'm not sure how "pkg" itself handles package dependencies. The %octave_pkg_* macros do not do anything with regards to dependencies. All dependencies are specified via BuildRequires/Requires. That's about as much as I can say without any specific examples of any problems you may be seeing. HTH, Orion -- Orion Poplawski Manager of NWRA Technical Systems 720-772-5637 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane orion@xxxxxxxx Boulder, CO 80301 https://www.nwra.com/ |
_______________________________________________ scitech mailing list -- scitech@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to scitech-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/scitech@xxxxxxxxxxxxxxxxxxxxxxx