[opensuse] Recovering ./configure options used with package
I would like to rebuild a package (nut) with the same ./configure options such as --with-statepath=somewhere used by the openSUSE distribution. Neither the binary nor the the source rpm provides these details. Is there some way of revealing the ./configure options used to build a package? Roger -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
See net.spec at https://build.opensuse.org/package/show/hardware/nut
--
Later,
Darin
On Mon, Jun 20, 2016 at 12:49 PM, Roger Price
I would like to rebuild a package (nut) with the same ./configure options such as --with-statepath=somewhere used by the openSUSE distribution. Neither the binary nor the the source rpm provides these details. Is there some way of revealing the ./configure options used to build a package?
Roger -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, 20 Jun 2016, Darin Perusich wrote:
See net.spec at https://build.opensuse.org/package/show/hardware/nut
Thanks, exactly what I needed. Roger -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Roger Price wrote:
I would like to rebuild a package (nut) with the same ./configure options such as --with-statepath=somewhere used by the openSUSE distribution. Neither the binary nor the the source rpm provides these details. Is there some way of revealing the ./configure options used to build a package?
They are surely in .spec file? (when you unpack the source package). -- Per Jessen, Zürich (21.1°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
They are surely in .spec file? (when you unpack the source package). Not all options can be found in the *.spec files. There are some local RPM options in "rpmrc" (see "man rpm") used by rpmbuild.
Maybe the openSUSE build services uses special standard options for "rpmbuild". Are they documented somewhere? Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
You're better off to ask this on opensuse-buildservice.
But OBS definitely has macros (variables) it sets before the spec file
logic is invoked.
Greg
--
Greg Freemyer
www.IntelligentAvatar.net
On Mon, Jun 20, 2016 at 4:43 PM, Bjoern Voigt
Per Jessen wrote:
They are surely in .spec file? (when you unpack the source package). Not all options can be found in the *.spec files. There are some local RPM options in "rpmrc" (see "man rpm") used by rpmbuild.
Maybe the openSUSE build services uses special standard options for "rpmbuild". Are they documented somewhere?
Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Bjoern Voigt wrote:
Per Jessen wrote:
They are surely in .spec file? (when you unpack the source package).
Not all options can be found in the *.spec files. There are some local RPM options in "rpmrc" (see "man rpm") used by rpmbuild.
Ah okay. I occasionally build something from source with the options (and patches) from the source package, sofar the configure options from the spec file have worked without exception. -- Per Jessen, Zürich (15.4°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 20/06/2016 18:49, Roger Price wrote:
I would like to rebuild a package (nut) with the same ./configure options such as --with-statepath=somewhere used by the openSUSE distribution. Neither the binary nor the the source rpm provides these details. Is there some way of revealing the ./configure options used to build a package?
Roger Use the %configure spec file macro and to see what configure flags it contains use "rpm --eval %configure" Best regards Dave P -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tue, 21 Jun 2016, Dave Plater wrote:
Use the %configure spec file macro and to see what configure flags it contains use "rpm --eval %configure"
Thanks, rpm --eval %configure nut-2.6.5-6.1.5.src.rpm does the job for me. Roger -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Bjoern Voigt
-
Darin Perusich
-
Dave Plater
-
Greg Freemyer
-
Per Jessen
-
Roger Price