[opensuse-packaging] Right usage of libexecdir?
Hey, Dominique and I are currently wondering what to do wrt libexecdir for evolution-data-server. Should we leave it unchanged (so files will be in /usr/lib) or should we change it to /usr/lib/evolution-data-server? If the latter, is there any reason this is not done automatically? Also, hrm, would rpmlint have ways to warn about packages that put binaries in libdir instead of libexecdir? (I can find a few of them here with a grep) Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
* Vincent Untz (vuntz@opensuse.org) [20091204 12:21]:
Also, hrm, would rpmlint have ways to warn about packages that put binaries in libdir instead of libexecdir? (I can find a few of them here with a grep)
Why should it? AFAIR FHS, libdir is the correct place for architecture dependent stuff while /usr/share is the right place for architecture independent stuff. Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Le vendredi 04 décembre 2009, à 16:14 +0100, Philipp Thomas a écrit :
* Vincent Untz (vuntz@opensuse.org) [20091204 12:21]:
Also, hrm, would rpmlint have ways to warn about packages that put binaries in libdir instead of libexecdir? (I can find a few of them here with a grep)
Why should it? AFAIR FHS, libdir is the correct place for architecture dependent stuff while /usr/share is the right place for architecture independent stuff.
Hrm, I'm talking about libexecdir vs libdir, not libdir vs datadir :-) Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
* Vincent Untz (vuntz@opensuse.org) [20091204 16:16]:
Hrm, I'm talking about libexecdir vs libdir, not libdir vs datadir :-)
Me too :) But I guess I should have phrased it better. But I think I'd better study the FHS again before I say more because as far as I remember, it says nothing about libexecdir. Philipp -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
2009/12/4 Philipp Thomas <pth@suse.de>:
* Vincent Untz (vuntz@opensuse.org) [20091204 16:16]:
Hrm, I'm talking about libexecdir vs libdir, not libdir vs datadir :-)
Me too :) But I guess I should have phrased it better. But I think I'd better study the FHS again before I say more because as far as I remember, it says nothing about libexecdir.
FHS says: "/usr/lib includes object files, libraries, and ***internal binaries that are not intended to be executed directly by users or shell scripts***." That is the definition of libexecdir ("The directory for installing executable programs to be run by other programs rather than by users") from http://www.gnu.org/prep/standards/html_node/Directory-Variables.html GNU says libexecdir should normally be $(exec_prefix)/libexec, that enters in contradiction with FHS. But without having any official reference I would say it's common to put "executable programs to be run by other programs rather than by users" inside $(libdir)/<package>/ And we have: $ rpm --eval=%_libexecdir /usr/lib RPM itself installs a lot of things in /usr/lib/rpm -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Fri, Dec 04, 2009 at 09:42:32PM +0100, Cristian Morales Vega wrote:
2009/12/4 Philipp Thomas <pth@suse.de>:
* Vincent Untz (vuntz@opensuse.org) [20091204 16:16]:
Hrm, I'm talking about libexecdir vs libdir, not libdir vs datadir :-)
Me too :) But I guess I should have phrased it better. But I think I'd better study the FHS again before I say more because as far as I remember, it says nothing about libexecdir.
FHS says: "/usr/lib includes object files, libraries, and ***internal binaries that are not intended to be executed directly by users or shell scripts***." That is the definition of libexecdir ("The directory for installing executable programs to be run by other programs rather than by users") from http://www.gnu.org/prep/standards/html_node/Directory-Variables.html
GNU says libexecdir should normally be $(exec_prefix)/libexec, that enters in contradiction with FHS.
GNU and FHS is not entirely compatible, but Linux distributions generally tend to follow FHS, which has been AFAIK designed in the glorious past to align all modern UNIXes together in this regard. FHS has no libexec and *generally* uses /usr/lib for this purpose. I'd expect SUSE to follow FHS like other Linux distributions (Debian is especially strict about this, and libexec in particular which is a prominent point of content), but of course this is up to our core packagers to decide - one could also say that it's too a minor point to waste time on. I was not able to quickly google out exact technical reasons for not including libexec, but I found some political ones... http://lists.zerezo.com/debian-devel/msg144902.html -- Petr "Pasky" Baudis A lot of people have my books on their bookshelves. That's the problem, they need to read them. -- Don Knuth -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Wednesday 25 May 2011 On Fri, 4 Dec 2009 21:42:32 +0100 Cristian Morales Vega wrote:
And we have: $ rpm --eval=%_libexecdir /usr/lib
I see in http://old-en.opensuse.org/Packaging/RPM_Macros: %{_libexecdir} = %{_libdir} What is the truth? -- WBR Kyrill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 24/05/11 21:16, Kyrill Detinov wrote:
Wednesday 25 May 2011
On Fri, 4 Dec 2009 21:42:32 +0100 Cristian Morales Vega wrote:
And we have: $ rpm --eval=%_libexecdir /usr/lib I see in http://old-en.opensuse.org/Packaging/RPM_Macros: %{_libexecdir} = %{_libdir}
What is the truth?
Preferred libexecdir on SUSE is usually /usr/lib/%{name} note NOT lib64 even on x86_64 (ignore old wiki) but this has to be defined in each specfile http://en.opensuse.org/openSUSE:Specfile_guidelines#Libexecdir Tejas -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Le mardi 24 mai 2011, à 22:21 +0100, Tejas Guruswamy a écrit :
On 24/05/11 21:16, Kyrill Detinov wrote:
Wednesday 25 May 2011
On Fri, 4 Dec 2009 21:42:32 +0100 Cristian Morales Vega wrote:
And we have: $ rpm --eval=%_libexecdir /usr/lib I see in http://old-en.opensuse.org/Packaging/RPM_Macros: %{_libexecdir} = %{_libdir}
This was the case a while ago, but it got changed (in 11.2, I'd say) to be /usr/lib on all architectures.
What is the truth?
Preferred libexecdir on SUSE is usually /usr/lib/%{name}
FWIW, in the GNOME team, we stopped doing that as several packages had to be patched to be aware of the libexecdir of other packages, which was creating a mess. So we usually just use the default %{_libexecdir} now. Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Wednesday 25 May 2011 On Wed, 25 May 2011 09:07:43 +0200 Vincent Untz wrote:
I see in http://old-en.opensuse.org/Packaging/RPM_Macros: %{_libexecdir} = %{_libdir}
This was the case a while ago, but it got changed (in 11.2, I'd say) to be /usr/lib on all architectures.
OK. Fixed in Wiki. -- WBR Kyrill -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (6)
-
Cristian Morales Vega
-
Kyrill Detinov
-
Petr Baudis
-
Philipp Thomas
-
Tejas Guruswamy
-
Vincent Untz