fix multilib issues by cleaning up auto-hacks

Newly upstream started to use 2.4.2.248 pre-release version of an
obsolescent release of libtool, which turned into weird
circumstances so 'make install' installed libtool script wrappers
instead of the built binaries.

Ideally we would drop re-autotooling, but we still need that for
some of the patches (TODO?), but also upstream does some hacks
which we should protect against (TODO: report).

Drop the ./configure --enable-ltdllib option which was no-op for
quite some time.

Resolves: rhbz#1546921
Version: 2.3.5-2
This commit is contained in:
Pavel Raiskup 2018-02-20 12:25:59 +01:00
parent faf59870af
commit 67de6fdd78

View File

@ -1,7 +1,7 @@
Summary: A complete ODBC driver manager for Linux Summary: A complete ODBC driver manager for Linux
Name: unixODBC Name: unixODBC
Version: 2.3.5 Version: 2.3.5
Release: 1%{?dist} Release: 2%{?dist}
Group: System Environment/Libraries Group: System Environment/Libraries
URL: http://www.unixODBC.org/ URL: http://www.unixODBC.org/
# Programs are GPL, libraries are LGPL, except News Server library is GPL. # Programs are GPL, libraries are LGPL, except News Server library is GPL.
@ -49,26 +49,17 @@ chmod 0644 doc/ProgrammerManual/Tutorial/*.html
chmod 0644 doc/lst/* chmod 0644 doc/lst/*
chmod 0644 include/odbcinst.h chmod 0644 include/odbcinst.h
# Blow away the embedded libtool and replace with build system's libtool. autoreconf -vfi
# (We will use the installed libtool anyway, but this makes sure they match.)
rm -rf config.guess config.sub install-sh ltmain.sh libltdl depcomp missing compile
# this hack is so we can build with either libtool 2.2 or 1.5
libtoolize --install --copy || libtoolize --copy
%build %build
aclocal
automake --add-missing
autoheader
autoconf
# unixODBC 2.2.14 is not aliasing-safe # unixODBC 2.2.14 is not aliasing-safe
CFLAGS="%{optflags} -fno-strict-aliasing" CFLAGS="%{optflags} -fno-strict-aliasing"
CXXFLAGS="$CFLAGS" CXXFLAGS="$CFLAGS"
export CFLAGS CXXFLAGS export CFLAGS CXXFLAGS
%configure --with-gnu-ld=yes --enable-threads=yes \ %configure --with-gnu-ld=yes --enable-threads=yes \
--enable-drivers=yes --enable-driverc=yes --enable-ltdllib --enable-drivers=yes --enable-driverc=yes
# Get rid of the rpaths # Get rid of the rpaths
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
@ -134,6 +125,9 @@ done
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%changelog %changelog
* Tue Feb 20 2018 Pavel Raiskup <praiskup@redhat.com> - 2.3.5-2
- cleanup autotool hacks
* Mon Feb 19 2018 Jan Staněk <jstanek@redhat.com> - 2.3.5-1 * Mon Feb 19 2018 Jan Staněk <jstanek@redhat.com> - 2.3.5-1
- Update to version 2.3.5 - Update to version 2.3.5