On Wed, 2 May 2018 23:57:53 -0400 Todd Zullinger <tmz@xxxxxxxxx> wrote: > stan wrote: > > From the man page for rpmbuild: > > """ > > --with OPTION > > Enable configure OPTION for build. > > > > --without OPTION > > Disable configure OPTION for build. > > """ > > > > Does adding the option --without _enable_debug_packages to the end > > of the rpmbuild line work? If it does, you could just disable any > > other debug options above that you don't want the same way. > > The --with/--without arguments toggle conditions set via > %bcond_with and %bcond_without. So that won't do what Robin > wants. > > More details on --with/--without are here: > > http://rpm.org/user_doc/conditional_builds.html > Thanks. My knowledge of this is minimal, but I was going by the kernel, which was probably a bad choice, as the kernel is unique. There, passing --without-debuginfo turns off debug package generation, but that is probably due to special coding in the spec file, shown below. """ # The following build options are enabled by default. # Use either --without <opt> in your rpmbuild command or force values # to 0 in here to disable them. # # standard kernel %define with_up %{?_without_up: 0} %{?!_without_up: 1} # kernel PAE (only valid for i686 (PAE) and ARM (lpae)) %define with_pae %{?_without_pae: 0} %{?!_without_pae: 0} # kernel-debug %define with_debug %{?_without_debug: 0} %{?!_without_debug: 0} # kernel-headers %define with_headers %{?_without_headers: 0} %{?!_without_headers: 1} %define with_cross_headers %{?_without_cross_headers: 0} %{?!_without_cross_headers: 0} # kernel-debuginfo %define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 0} # kernel-bootwrapper (for creating zImages from kernel + initrd) %define with_bootwrapper %{?_without_bootwrapper: 0} %{?!_without_bootwrapper: 1} # Want to build a the vsdo directories installed %define with_vdso_install %{?_without_vdso_install: 0} %{?!_without_vdso_install: 1} # # Additional options for user-friendly one-off kernel building: # # Only build the base kernel (--with baseonly): %define with_baseonly %{?_with_baseonly: 1} %{?!_with_baseonly: 0} # Only build the pae kernel (--with paeonly): %define with_paeonly %{?_with_paeonly: 1} %{?!_with_paeonly: 0} # """ _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx