[opensuse-packaging] Project example binaries - arch-dependent-file-in-usr-share error
Hello, I'm attempting to build a package for numerical simulations, that includes examples in /usr/share/<name>. I'm running into the 'arch-dependent-file-in-usr-share' error because there are sample binaries included in some sub-directories, and I'm looking to this list for some guidance. I read the guidelines on https://en.opensuse.org/openSUSE:Packaging_checks And the suggestion was to put the binaries into %libexecdir/packagename Am I supposed to move the binaries there manually and add the path to PATH in the spec file? Regards, Chris -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Here's a link to my project for reference: https://build.opensuse.org/package/show/home:cbcoutinho/dakota On Thu, 28 Feb 2019 at 15:10, Chris Coutinho <chrisbcoutinho@gmail.com> wrote:
Hello,
I'm attempting to build a package for numerical simulations, that includes examples in /usr/share/<name>. I'm running into the 'arch-dependent-file-in-usr-share' error because there are sample binaries included in some sub-directories, and I'm looking to this list for some guidance.
I read the guidelines on
https://en.opensuse.org/openSUSE:Packaging_checks
And the suggestion was to put the binaries into
%libexecdir/packagename
Am I supposed to move the binaries there manually and add the path to PATH in the spec file?
Regards, Chris
-- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hi Chris, Chris Coutinho <chrisbcoutinho@gmail.com> writes:
Hello,
I'm attempting to build a package for numerical simulations, that includes examples in /usr/share/<name>. I'm running into the 'arch-dependent-file-in-usr-share' error because there are sample binaries included in some sub-directories, and I'm looking to this list for some guidance.
I read the guidelines on
https://en.opensuse.org/openSUSE:Packaging_checks
And the suggestion was to put the binaries into
%libexecdir/packagename
Am I supposed to move the binaries there manually and add the path to PATH in the spec file?
I think moving the binaries after the installation to %libexecdir/%{name} is a viable solution. However, I don't think that you should modify $PATH, especially if these are examples that the average user doesn't need to run. If you think that after installing your package one of the examples should be in $PATH, rather move them to %{_bindir} instead.
Regards, Chris -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Cheers, Dan -- Dan Čermák <dcermak@suse.com> Software Engineer Development tools SUSE Linux GmbH, Maxfeldstr. 5, D-90409 Nürnberg Tel: +49-911-74053-0; Fax: +49-911-7417755; https://www.suse.com/ SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
On jeudi, 28 février 2019 15.50:56 h CET Dan Čermák wrote:
Hi Chris,
Chris Coutinho <chrisbcoutinho@gmail.com> writes:
Hello,
I'm attempting to build a package for numerical simulations, that includes examples in /usr/share/<name>. I'm running into the 'arch-dependent-file-in-usr-share' error because there are sample binaries included in some sub-directories, and I'm looking to this list for some guidance.
I read the guidelines on
https://en.opensuse.org/openSUSE:Packaging_checks
And the suggestion was to put the binaries into
%libexecdir/packagename
Am I supposed to move the binaries there manually and add the path to PATH in the spec file?
I think moving the binaries after the installation to %libexecdir/%{name} is a viable solution. However, I don't think that you should modify $PATH, especially if these are examples that the average user doesn't need to run.
If you think that after installing your package one of the examples should be in $PATH, rather move them to %{_bindir} instead.
Regards, Chris
Cheers,
Dan
the other way around, if it is examples, I guess they can be considered as documentation ? and as such goes to /usr/share/doc/packagename normally there's no complain here, and it offer a benefit to have them in a separate package, those who wont need them didn't bloat their system with. But it's a rough guess, you have to decide if it is better or not. -- Bruno Friedmann Ioda-Net Sàrl www.ioda-net.ch Bareos Partner, openSUSE Member, fsfe supporter GPG KEY : D5C9B751C4653227 irc: tigerfoot -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Bruno Friedmann
-
Chris Coutinho
-
Dan Čermák