[opensuse-packaging] BuildRoot Tag
I know that they are just recommendations and isn't so important at all... but couldn't we agree at least with this? I don't see any recommendation from Mandriva, openSUSE "prefers" "%{_tmppath}/%{name}-%{version}-build", and Fedora says: "The BuildRoot value MUST be below %{_tmppath}/ and MUST contain at least %{name}, %{version} and %{release}. It may invoke mktemp since this is guaranteed to exist on every system. From there, packagers are expected to use a sane BuildRoot. The recommended values for the BuildRoot tag are (in descending order of preference) : %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %{_tmppath}/%{name}-%{version}-%{release}-root At one point, the second was a mandatory value, but it is now left to the packager to decide. If unsure, simply pick the first." http://fedoraproject.org/wiki/PackagingDrafts/BuildRoot http://en.opensuse.org/SUSE_Package_Conventions/RPM_Style#1.16._BuildRoot_Ta... Someone has any problem in changing the SUSE Package Conventions/RPM Style wiki and copying the text from Fedora? Their option makes more sense anyway. With the openSUSE "preference" two users at the same machine could try to create at the same time a package of the same sotware/version with different spec files and end using the same build directory. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Saturday 09 February 2008, Christian Morales Vega wrote:
I know that they are just recommendations and isn't so important at all... but couldn't we agree at least with this?
the opensuse packaging conventions for the BuildRoot tag are pure documentation, at least for the internal buildsystem it is always set to a defined value.
Their option makes more sense anyway. With the openSUSE "preference" two users at the same machine could try to create at the same time a package of the same sotware/version with different spec files and end using the same build directory.
thats correct, but do they end up with another rpm? I believe the only thing you'd have is a DoS - as our rpm checks if the buildroot has proper privileges and owner, and aborts if it doesn't. Greetings, Dirk -- RPMLINT information under http://en.opensuse.org/Packaging/RpmLint --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Christian Morales Vega
-
Dirk Mueller