[opensuse-buildservice] RPMLINT warning: dir-or-file-in-usr-local
Hello OBS users, some days before I started with my first project at the OBS (https://build.opensuse.org/project/show?project=home%3Adaswaldhorn). The package was build successful, but I get some warnings in the build log. Here is one: ----------------------------------------------------- RPMLINT report: =============== nted.i586: W: dir-or-file-in-usr-local /usr/local/bin/nted ... [all other files of the package] ... A file in the package is located in /usr/local. It's not permitted for packages to install files in this directory. ----------------------------------------------------- What can I do to avoid this warning? I had a look to http://en.opensuse.org/Packaging/RpmLint but there I don't find this warning. Greetings and thanks, Carsten -- Hier ist mein öffentlicher GPG-Schlüssel: http://daswaldhorn.funpic.de/gpg.html ========================================= www.stopptdievorratsdatenspeicherung.de
* Carsten Gerlach
What can I do to avoid this warning?
Don't install to /usr/local/bin but to %{_bindir} (which is /usr/bin). Does your package use Autotools (configure && make && make install)? Bernhard -- Bernhard Walle, SUSE LINUX Products GmbH, Architecture Development "Make everything as simple as possible, but not simpler." -- Albert Einstein --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Sonntag 24. August 2008 14:28:43 schrieb Bernhard Walle:
* Carsten Gerlach
[2008-08-24 13:34]: What can I do to avoid this warning?
Don't install to /usr/local/bin but to %{_bindir} (which is /usr/bin).
Ok, but how do I have to write this to the spec file?
Does your package use Autotools (configure && make && make install)?
Yes. Does it makes sense to post my spec file here, or is the link enough? https://build.opensuse.org/package/view_file?file=nted.spec&package=nted&project=home%3Adaswaldhorn Greetings, Carsten -- Hier ist mein öffentlicher GPG-Schlüssel: http://daswaldhorn.funpic.de/gpg.html ========================================= www.stopptdievorratsdatenspeicherung.de
Carsten Gerlach
Am Sonntag 24. August 2008 14:28:43 schrieb Bernhard Walle:
* Carsten Gerlach
[2008-08-24 13:34]: What can I do to avoid this warning?
Don't install to /usr/local/bin but to %{_bindir} (which is /usr/bin).
Ok, but how do I have to write this to the spec file?
Does your package use Autotools (configure && make && make install)?
Yes.
Does it makes sense to post my spec file here, or is the link enough? https://build.opensuse.org/package/view_file?file=nted.spec&package=nted&project=home%3Adaswaldhorn
Yes, helped ;) You use: ./configure instead use ./configure --prefix=%{_prefix} (%{_prefix} expands to /usr) or even better use the macro %configure, Andreas -- Andreas Jaeger, Director Platform / openSUSE, aj@suse.de SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
* Andreas Jaeger (aj@suse.de) [20080824 21:33]:
or even better use the macro %configure,
That's definitely the best, as it'll also set things like libdir, mandir and infodir. Philipp --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, Am Montag 25. August 2008 17:44:11 schrieb Philipp Thomas:
* Andreas Jaeger (aj@suse.de) [20080824 21:33]:
or even better use the macro %configure, That's definitely the best, as it'll also set things like libdir, mandir and infodir.
thanks to all for this info. It works fine and the warning is gone. But where do I find the content of this %configure macro and all other %-macros of the OBS? Greetings, Carsten -- Hier ist mein öffentlicher GPG-Schlüssel: http://daswaldhorn.funpic.de/gpg.html ========================================= www.stopptdievorratsdatenspeicherung.de
On 2008-08-25 19:26:15 +0200, Carsten Gerlach wrote:
Hi,
Am Montag 25. August 2008 17:44:11 schrieb Philipp Thomas:
* Andreas Jaeger (aj@suse.de) [20080824 21:33]:
or even better use the macro %configure, That's definitely the best, as it'll also set things like libdir, mandir and infodir.
thanks to all for this info. It works fine and the warning is gone.
But where do I find the content of this %configure macro and all other %-macros of the OBS?
This is no obs specific macro - it's defined in /usr/lib/rpm/macros. Marcus --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Mon, 25 Aug 2008 19:26:15 +0200, Carsten Gerlach wrote:
But where do I find the content of this %configure macro and all other %-macros of the OBS?
Either /usr/lib/rpm/macros or /usr/lib/rpm/suse_macros.The suse_macros are described in the opensuse wiki. Philipp --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Carsten Gerlach escribió:
Hello OBS users,
some days before I started with my first project at the OBS (https://build.opensuse.org/project/show?project=home%3Adaswaldhorn). The package was build successful, but I get some warnings in the build log. Here is one:
----------------------------------------------------- RPMLINT report: =============== nted.i586: W: dir-or-file-in-usr-local /usr/local/bin/nted ...
use %configure macro or --prefix=%{_usr} -- "A computer is like an Old Testament god, with a lot of rules and no mercy. " Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
participants (7)
-
Andreas Jaeger
-
Bernhard Walle
-
Carsten Gerlach
-
Cristian Rodríguez
-
Marcus Hüwe
-
Philipp Thomas
-
Philipp Thomas