Hello All. How do I find out what flags were used to compile the Centos openldap-2.3.27-8.el5_2.4 rpm package? I'm specifically wondering if it was compiled with --enable-lmpasswd
Thanks!
tblader wrote:
Hello All. How do I find out what flags were used to compile the Centos openldap-2.3.27-8.el5_2.4 rpm package? I'm specifically wondering if it was compiled with --enable-lmpasswd
Thanks!
If you download the SRPM and install it, then you can look at the spec file.
Server is built like this:
--enable-plugins \ --enable-slapd \ --enable-slurpd \ --enable-multimaster \ --enable-bdb \ --enable-hdb \ --enable-ldap \ --enable-ldbm \ --with-ldbm-api=%{ldbm_backend} \ --enable-meta \ --enable-monitor \ --enable-null \ --enable-shell \ --enable-sql=mod \ --disable-perl \ --disable-shared \ --disable-dynamic \ --enable-static \ --with-kerberos=k5only
Client like this:
--disable-slapd \ --disable-slurpd \ --enable-shared \ --enable-dynamic \ --enable-static \ --without-kerberos \ --with-pic
Johnny Hughes wrote:
If you download the SRPM and install it, then you can look at the spec file.
<snip>
Hi Johnny, Great, thanks for the info. Just in case anyone else is interested, here's how it worked for me:
# mkdir -p /usr/src/redhat/SOURCES # rpm -Uvh http://mirror.nic.uoregon.edu/centos/5/os/SRPMS/openldap-2.3.27-8.el5_1.3.sr... # fgrep enable /usr/src/redhat/SPECS/openldap.spec ...
On Wed, Jul 16, 2008 at 6:30 PM, Johnny Hughes johnny@centos.org wrote:
tblader wrote:
Hello All. How do I find out what flags were used to compile the Centos openldap-2.3.27-8.el5_2.4 rpm package? I'm specifically wondering if it was compiled with --enable-lmpasswd
Thanks!
If you download the SRPM and install it, then you can look at the spec file.
Server is built like this:
--enable-plugins \ --enable-slapd \ --enable-slurpd \ --enable-multimaster \ --enable-bdb \ --enable-hdb \ --enable-ldap \ --enable-ldbm \ --with-ldbm-api=%{ldbm_backend} \ --enable-meta \ --enable-monitor \ --enable-null \ --enable-shell \ --enable-sql=mod \ --disable-perl \ --disable-shared \ --disable-dynamic \ --enable-static \ --with-kerberos=k5only
Client like this:
--disable-slapd \ --disable-slurpd \ --enable-shared \ --enable-dynamic \ --enable-static \ --without-kerberos \ --with-pic
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?
Bob Beers wrote:
On Wed, Jul 16, 2008 at 6:30 PM, Johnny Hughes johnny@centos.org wrote:
tblader wrote:
Hello All. How do I find out what flags were used to compile the Centos openldap-2.3.27-8.el5_2.4 rpm package? I'm specifically wondering if it was compiled with --enable-lmpasswd
Thanks!
If you download the SRPM and install it, then you can look at the spec file.
Server is built like this:
--enable-plugins \ --enable-slapd \ --enable-slurpd \ --enable-multimaster \ --enable-bdb \ --enable-hdb \ --enable-ldap \ --enable-ldbm \ --with-ldbm-api=%{ldbm_backend} \ --enable-meta \ --enable-monitor \ --enable-null \ --enable-shell \ --enable-sql=mod \ --disable-perl \ --disable-shared \ --disable-dynamic \ --enable-static \ --with-kerberos=k5only
Client like this:
--disable-slapd \ --disable-slurpd \ --enable-shared \ --enable-dynamic \ --enable-static \ --without-kerberos \ --with-pic
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
On Thu, Aug 7, 2008 at 4:20 PM, Johnny Hughes johnny@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?
Bob Beers wrote:
On Thu, Aug 7, 2008 at 4:20 PM, Johnny Hughes johnny@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? _______________________________________________
Yes, you will have to redirect standard out, like this:
rpmbuild --rebuild <srpm_name> > build.log 2>&1