On Thu, Aug 7, 2008 at 4:20 PM, Johnny Hughes <johnny at centos.org> wrote: > Bob Beers wrote: >> Slightly OT, but related to this question and answer, >> I'd like to know what options are used to >> build the openssh-4.3p2-26.el5 package. >> >> Fetching the SRPM and exploring in there >> I can see the %configure section in the openssh.spec: >> >> %configure \ >> --sysconfdir=%{_sysconfdir}/ssh \ >> --libexecdir=%{_libexecdir}/openssh \ >> --datadir=%{_datadir}/openssh \ >> --with-tcp-wrappers \ >> --with-rsh=%{_bindir}/rsh \ >> --with-default-path=/usr/local/bin:/bin:/usr/bin \ >> >> --with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin >> \ >> --with-privsep-path=%{_var}/empty/sshd \ >> --enable-vendor-patchlevel="FC-%{version}-%{release}" \ >> --disable-strip \ >> --without-zlib-version-check \ >> %if %{nss} >> --with-nss \ >> %endif >> %if %{scard} >> --with-smartcard \ >> %endif >> %if %{rescue} >> --without-pam \ >> %else >> --with-pam \ >> %endif >> %if %{WITH_SELINUX} >> --with-selinux \ >> %endif >> %if %{WITH_AUDIT} >> --with-linux-audit \ >> %endif >> %if %{kerberos5} >> --with-kerberos5${krb5_prefix:+=${krb5_prefix}} >> %else >> --without-kerberos5 >> %endif >> >> But many of these %if's leave me wondering what was actually used. >> Is there a way to query the resultant binary files for their options? >> > > Not by looking at the RPM .. but you can look in the build log (if you have > one). Here is the line for i386 for openssh-4.3p2-26.el5: > > ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu > --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr > --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc > --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib > --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com > --mandir=/usr/share/man --infodir=/usr/share/info --sysconfdir=/etc/ssh > --libexecdir=/usr/libexec/openssh --datadir=/usr/share/openssh > --with-tcp-wrappers --with-rsh=/usr/bin/rsh > --with-default-path=/usr/local/bin:/bin:/usr/bin > --with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin > --with-privsep-path=/var/empty/sshd > --enable-vendor-patchlevel=FC-4.3p2-26.el5 --disable-strip > --without-zlib-version-check --with-nss --with-pam --with-selinux > --with-linux-audit --with-kerberos5 > ok, very nice! And could I get such build log by rebuilding the rpm from the SRPM?