On Thu, Jul 10, 2003, Matthias Kurz wrote: > Is it possible to query the defaults for "package options" before > installation ?
You can query the source package, i.e: rpm -qip gcc-3.3-20030702.src.rpm or rpm -qip ftp://ftp.openpkg.org/current/SRC/gcc-3.3-20030702.src.rpm yields: Name: gcc Source RPM: (none) Version: 3.3 Packager: The OpenPKG Project Release: 20030702 Build Host: dv1.dev.de.cw.net Group: Language Build System: ix86-freebsd4.8 Distrib: OpenPKG [CORE] Build Time: Wed Jul 2 21:39:48 2003 License: GPL Relocations: (not relocateable) Vendor: Free Software Foundation Install Size: 24127017 bytes URL: http://gcc.gnu.org/ Install Time: (not installed) Summary: GNU Compiler Collection Description: The GNU Compiler Collection (GCC) provides a standard conforming and highly portable ISO C and ISO C++ compiler. Provides: gcc::with_cxx = yes gcc::with_optimize = yes gcc::with_binutils = yes gcc::with_threads = yes gcc::with_bounds = no gcc::with_spp = no gcc::with_gcc = no Each option provides PKG::NAME = VALUE. > e.g. the defaults in gcc.spec are: > > # package options > %option with_cxx yes > %option with_optimize yes > %option with_binutils yes > %option with_threads yes > %option with_bounds no > %option with_spp no > %option with_gcc no > > And where can one find an explanation of this options (e.g. why are > binutils used under Solaris) ? Most options should be self-explaining. with_cxx = enable build of C++ compiler with_optimize = build an optimized version of the compiler with_binutils = use binutils package with_threads = enable -pthread switch with_bounds = add bounds-checking patch with_spp = add stack-smashing-protector patch with_gcc = provide standard binary names (used only by gcc32 and gcc34). binutils is used with Solaris for compatibility. Other systems like Linux already provide a binutils-based linker, however, even there we chose our own packaged binutils so that we can rely on a specific version. Please note that some options are 'dangerous', don't expect other packages to build correctly when you enable for example the bounds- checking patch. Greetings, -- ,eM""=. a"-. Michael van Elst dWWMWM" - :GM==; [EMAIL PROTECTED] :WWMWMw=--. "W=' cable & wireless 9WWMm==-. "-Wmw-" CABLE & WIRELESS ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List [EMAIL PROTECTED]
