Re: SASL-RPM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Hi!
>
> I want to build a SASL-rpm (on AIX 5.3) [first steps in rpm...].

I have never used RPM on anything than Linux, so I can only guess.

>
> The problem is, SASL requires itself.
> "Requires: [...] libsasl2.a"

I don't think that's really a problem, your problem might be that your rpm
doesn't provide correctly. What does it provide, try

rpm -qp --provides cyrus-sasl-2.1.21-1.aix5.3.ppc.rpm

Maybe the find-provides and find-requires don't work as expected. You
could define your own scripts here or disable autoproviding.

Simon

>
> Processing files: cyrus-sasl-2.1.21-1
> Finding  Provides: (using /opt/freeware/lib/rpm/find-provides)...
> Finding  Requires: (using /opt/freeware/lib/rpm/find-requires)...
> Provides: libanonymous.so.2.0.21 libcrammd5.so.2.0.21
> libdigestmd5.so.2.0.21 libldapdb.so.2.0.21 liblogin.so.2.0.21
> libplain.so.2.0.21 libsasl2.so.2 libsasl2.so.2.0.21 libsasldb.so.2.0.21
> Requires: db openldap openssl libc.a(shr.o)
> libcrypto.a(libcrypto.so.0.9.7) libdl.a(shr.o) libpam.a(shr.o)
> libsasl2.a libssl.a(libssl.so.0.9.7)
> Wrote: /sicher/rpm/SRPMS/cyrus-sasl-2.1.21-1.src.rpm
> Wrote: /sicher/rpm/RPMS/ppc/cyrus-sasl-2.1.21-1.aix5.3.ppc.rpm
>
> I compiled SASL without LDAP first, then compiled openLDAP with SASL,
> third compiled SASL with LDAP (ldapdb) und tried to build the rpm.
>
> Because this rpm requires itself, it cannot be installed. :(
> How do I get it work?
>
> ------- spec -------------------
>
> # cat eMail2-sasl-2.1.21_1st.spec
> ### Das RPM für SASL 2.1.21 mit LDAP
> Summary: Dieses RPM installiert SASL mit LDAP
> Name: cyrus-sasl
> Version: 2.1.21
> Release: 1
> Copyright: none
> Group: System
> Packager:
> Requires: db
> Requires: openldap
> Requires: openssl
>
> Source: cyrus-sasl-2.1.21.tar.gz
> Patch: sasl-patch-1
> Patch: sasl-patch-2
>
> %description
> SASL fuer Postfix, IMAPd und OpenLDAP (mit LDAP!)
> Setzt OpenLDAP, BDB und OpenSSL voraus.
>
> %prep
> rm -rf $RPM_BUILD_DIR/cyrus-sasl-2.1.21
>
> export CC=gcc
> export CFLAGS="-O2"
> export CXXFLAGS="-O2"
> export LDFLAGS="-lssl -lcrypto -lsasl2"
> export MAKE=gmake
>
> %setup
> %patch
> ./configure \
> --prefix=/opt/mail/ \
> --libdir=/opt/freeware/lib \
> --includedir=/opt/freeware/include \
> --with-plugindir=/opt/mail/lib/sasl2 \
> --mandir=/opt/freeware/man \
> --enable-sample \
> --enable-anon \
> --enable-plain \
> --disable-krb4 \
> --disable-otp \
> --enable-cram \
> --enable-digest \
> --enable-login \
> --with-bdb-libdir=/opt/freeware/lib \
> --with-bdb-incdir=/opt/freeware/include \
> --enable-ldapdb \
> --with-ldap=/opt/freeware/ldap \
> --with-openssl=/opt/freeware/include/openssl
>
> %build
> gmake
>
> %install
> gmake install
>
> %files
> /opt/freeware/include/sasl/hmac-md5.h
> /opt/freeware/include/sasl/md5.h
> /opt/freeware/include/sasl/md5global.h
> /opt/freeware/include/sasl/sasl.h
> /opt/freeware/include/sasl/saslplug.h
> /opt/freeware/include/sasl/saslutil.h
> /opt/freeware/include/sasl/prop.h
> /opt/mail//lib/sasl2/libsasldb.so.2.0.21
> /opt/mail//lib/sasl2/libsasldb.la
> /opt/mail//lib/sasl2/libcrammd5.la
> /opt/mail//lib/sasl2/libcrammd5.so.2.0.21
> /opt/mail//lib/sasl2/libdigestmd5.so.2.0.21
> /opt/mail//lib/sasl2/libdigestmd5.la
> /opt/mail//lib/sasl2/libplain.so.2.0.21
> /opt/mail//lib/sasl2/libplain.la
> /opt/mail//lib/sasl2/libanonymous.la
> /opt/mail//lib/sasl2/libanonymous.so.2.0.21
> /opt/mail//lib/sasl2/liblogin.la
> /opt/mail//lib/sasl2/liblogin.so.2.0.21
> /opt/mail//lib/sasl2/libldapdb.so.2.0.21
> /opt/mail//lib/sasl2/libldapdb.la
> /opt/freeware/lib/libsasl2.so.2.0.21
> /opt/freeware/lib/libsasl2.la
> /opt/freeware/lib/libsasl2.a
> /opt/freeware/lib/libsasl2.so.2
> /opt/mail//sbin/saslpasswd2
> /opt/mail//sbin/sasldblistusers2
> %doc /opt/freeware/man/man8/saslpasswd2.8
> %doc /opt/freeware/man/man8/sasldblistusers2.8
> %doc /opt/freeware/man/man3/sasl_authorize_t.3
> %doc /opt/freeware/man/man3/sasl_done.3
> %doc /opt/freeware/man/man3/sasl_listmech.3
> %doc /opt/freeware/man/man3/sasl_callbacks.3
> %doc /opt/freeware/man/man3/sasl_encode.3
> %doc /opt/freeware/man/man3/sasl_encodev.3
> %doc /opt/freeware/man/man3/sasl_log_t.3
> %doc /opt/freeware/man/man3/sasl_checkpass.3
> %doc /opt/freeware/man/man3/sasl_errstring.3
> %doc /opt/freeware/man/man3/sasl_dispose.3
> %doc /opt/freeware/man/man3/sasl_canon_user_t.3
> %doc /opt/freeware/man/man3/sasl_server_init.3
> %doc /opt/freeware/man/man3/sasl_client_init.3
> %doc /opt/freeware/man/man3/sasl_getopt_t.3
> %doc /opt/freeware/man/man3/sasl_server_new.3
> %doc /opt/freeware/man/man3/sasl_client_new.3
> %doc /opt/freeware/man/man3/sasl_getpath_t.3
> %doc /opt/freeware/man/man3/sasl_server_start.3
> %doc /opt/freeware/man/man3/sasl_client_start.3
> %doc /opt/freeware/man/man3/sasl_getprop.3
> %doc /opt/freeware/man/man3/sasl_server_step.3
> %doc /opt/freeware/man/man3/sasl_client_step.3
> %doc /opt/freeware/man/man3/sasl_getsecret_t.3
> %doc /opt/freeware/man/man3/sasl_setprop.3
> %doc /opt/freeware/man/man3/sasl_decode.3
> %doc /opt/freeware/man/man3/sasl_getsimple_t.3
> %doc /opt/freeware/man/man3/sasl.3
> %doc /opt/freeware/man/man3/sasl_checkapop.3
> %doc /opt/freeware/man/man3/sasl_errors.3
> %doc /opt/freeware/man/man3/sasl_verifyfile_t.3
> %doc /opt/freeware/man/man3/sasl_getrealm_t.3
> %doc /opt/freeware/man/man3/sasl_chalprompt_t.3
> %doc /opt/freeware/man/man3/sasl_auxprop_request.3
> %doc /opt/freeware/man/man3/sasl_auxprop_getctx.3
> %doc /opt/freeware/man/man3/sasl_auxprop.3
> %doc /opt/freeware/man/man3/sasl_idle.3
> %doc /opt/freeware/man/man3/sasl_errdetail.3
> %doc /opt/freeware/man/man3/sasl_user_exists.3
> %doc /opt/freeware/man/man3/sasl_setpass.3
> %doc /opt/freeware/man/man3/sasl_server_userdb_checkpass_t.3
> %doc /opt/freeware/man/man3/sasl_server_userdb_setpass_t.3
> %doc  /opt/freeware/man/man3/sasl_global_listmech.3
> /opt/mail//sbin/saslauthd
> %doc /opt/freeware/man/cat8/saslauthd.8
>
> ------- spec -------------------
>
>
> Thanks!
>
>
> Hans
>

[Index of Archives]     [Info Cyrus]     [Squirrel Mail]     [Linux Media]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux