FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 07-16-2008, 09:04 PM
tblader
 
Default openldap package compilation flags?

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!

--

Flambeau Inc. Technology Center - Baraboo, WI
Email : tblader@flambeau.com
Keyserver: http://pgp.mit.edu KeyID: 0x00E9EC2C
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-16-2008, 10:30 PM
Johnny Hughes
 
Default openldap package compilation flags?

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



_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-17-2008, 02:01 PM
tblader
 
Default openldap package compilation flags?

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.src.rpm
# fgrep enable /usr/src/redhat/SPECS/openldap.spec
...


--

Flambeau Inc. Technology Center - Baraboo, WI
Email : tblader@flambeau.com
Keyserver: http://pgp.mit.edu KeyID: 0x00E9EC2C
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 08-07-2008, 06:58 PM
"Bob Beers"
 
Default openldap package compilation flags?

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?

--
Thanks,
-Bob
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 08-07-2008, 08:20 PM
Johnny Hughes
 
Default openldap package compilation flags?

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


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 08-07-2008, 09:02 PM
"Bob Beers"
 
Default openldap package compilation flags?

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?
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 08-07-2008, 10:23 PM
Johnny Hughes
 
Default openldap package compilation flags?

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


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 09:27 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org