fix bug 150339: fix include paths for libbind; add BuildRequires for
libbind-devel
This commit is contained in:
parent
ecec97b5c8
commit
000ba96b33
@ -140,17 +140,11 @@ your sendmail.cf file.
|
|||||||
%patch13 -p1 -b .close_wait.p2
|
%patch13 -p1 -b .close_wait.p2
|
||||||
%patch14 -p1 -b .fix_for_libbind
|
%patch14 -p1 -b .fix_for_libbind
|
||||||
|
|
||||||
# NOTE: on ppc64, the db4 library won't link with objects compiled
|
|
||||||
# with the default ppc64 $RPM_OPT_FLAGS of '-m64' - disable for now,
|
|
||||||
# but re-enable once db4 is fixed.
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# generate redhat config file
|
# generate redhat config file
|
||||||
cat > redhat.config.m4 << EOF
|
cat > redhat.config.m4 << EOF
|
||||||
define(\`confMAPDEF', \`-DNEWDB -DNIS -DHESIOD -DMAP_REGEX -DSOCKETMAP')
|
define(\`confMAPDEF', \`-DNEWDB -DNIS -DHESIOD -DMAP_REGEX -DSOCKETMAP')
|
||||||
%ifnarch ppc64
|
|
||||||
define(\`confOPTIMIZE', \`\`\`${RPM_OPT_FLAGS}''')
|
define(\`confOPTIMIZE', \`\`\`${RPM_OPT_FLAGS}''')
|
||||||
%endif
|
|
||||||
define(\`confENVDEF', \`-I/usr/include/db4 -I/usr/kerberos/include -Wall -DXDEBUG=0 -DTCPWRAPPERS -DNETINET6 -DHES_GETMAILHOST -DUSE_VENDOR_CF_PATH=1 -D_FFR_WORKAROUND_BROKEN_NAMESERVERS -D_FFR_SMTP_SSL')
|
define(\`confENVDEF', \`-I/usr/include/db4 -I/usr/kerberos/include -Wall -DXDEBUG=0 -DTCPWRAPPERS -DNETINET6 -DHES_GETMAILHOST -DUSE_VENDOR_CF_PATH=1 -D_FFR_WORKAROUND_BROKEN_NAMESERVERS -D_FFR_SMTP_SSL')
|
||||||
define(\`confLIBDIRS', \`-L/usr/kerberos/%{_lib}')
|
define(\`confLIBDIRS', \`-L/usr/kerberos/%{_lib}')
|
||||||
define(\`confLIBS', \`-lnsl -lwrap -lhesiod -lcrypt -ldb')
|
define(\`confLIBS', \`-lnsl -lwrap -lhesiod -lcrypt -ldb')
|
||||||
@ -225,8 +219,8 @@ APPENDDEF(\`confLIBS',\`%{l_ldflags mysql .} -lmysqlclient -lz -lm')dnl
|
|||||||
EOF
|
EOF
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# on s390x, we end up getting NAMED_BIND=1 but no -lbind ?!?!
|
# on s390x and ppc64, we end up getting NAMED_BIND=1 but no -lbind ?!?!
|
||||||
%ifarch s390x
|
%ifarch s390x ppc64
|
||||||
cat >> redhat.config.m4 << EOF
|
cat >> redhat.config.m4 << EOF
|
||||||
APPENDDEF(\`confLIBS',\` -lbind')dnl
|
APPENDDEF(\`confLIBS',\` -lbind')dnl
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user