Changeset: 8b136b2feca9 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8b136b2feca9 Modified Files: MonetDB.spec configure.ag sql/server/sql_parser.y Branch: Nov2019 Log Message:
Ported to Fedora 31. diffs (95 lines): diff --git a/MonetDB.spec b/MonetDB.spec --- a/MonetDB.spec +++ b/MonetDB.spec @@ -84,9 +84,9 @@ %bcond_without rintegration %endif -# On Fedora and RHEL 7, create the MonetDB-python2 package. +# On Fedora <= 30 and RHEL 7, create the MonetDB-python2 package. # On RHEL 6, numpy is too old. -%if %{?rhel:0}%{!?rhel:1} || 0%{?rhel} >= 7 +%if 0%{?rhel} == 7 || %{!?fedora:1000}%{?fedora} <= 30 %bcond_without py2integration %endif %if %{?rhel:0}%{!?rhel:1} @@ -164,12 +164,7 @@ BuildRequires: python-devel # RedHat Enterprise Linux calls it simply numpy BuildRequires: numpy %else -%if (0%{?fedora} >= 24) BuildRequires: python2-numpy -%else -# Fedora <= 23 doesn't have python2-numpy -BuildRequires: numpy -%endif %endif %endif %if %{with py3integration} @@ -1053,7 +1048,12 @@ do install -p -m 644 buildtools/selinux/monetdb.pp.${selinuxvariant} \ %{buildroot}%{_datadir}/selinux/${selinuxvariant}/monetdb.pp done -/usr/sbin/hardlink -cv %{buildroot}%{_datadir}/selinux +if [ -x /usr/sbin/hardlink ]; then + /usr/sbin/hardlink -cv %{buildroot}%{_datadir}/selinux +else + # Fedora 31 + /usr/bin/hardlink -cv %{buildroot}%{_datadir}/selinux +fi %endif %post -p /sbin/ldconfig diff --git a/configure.ag b/configure.ag --- a/configure.ag +++ b/configure.ag @@ -1013,7 +1013,7 @@ AC_PROG_LN_S AC_CHECK_PROGS([DIFF], [gdiff diff]) AC_DEFINE_UNQUOTED([DIFF], ["$DIFF"], [Program to perform diffs]) -AC_CHECK_PROGS([RPMBUILD], [rpmbuild]) +AC_CHECK_PROG([RPMBUILD], [rpmbuild], [rpmbuild], [false]) # This is how we use the various Python-related configuration variables. # PYTHON - the Python interpreter we use for testing. This can either @@ -2268,7 +2268,6 @@ AC_CHECK_HEADERS([ \ sys/param.h \ sys/resource.h \ sys/socket.h \ - sys/sysctl.h \ sys/time.h \ sys/times.h \ sys/types.h \ @@ -2283,12 +2282,14 @@ AC_CHECK_HEADERS([ \ ]) # on OpenBSD, sys/sysctl.h requires sys/param.h to be included beforehand -AC_CHECK_HEADERS([sys/sysctl.h], [], [], -[ - @%:@ifdef HAVE_SYS_PARAM_H - @%:@ include <sys/param.h> - @%:@endif -]) +AS_CASE([$host_os], + [linux*], [], + [AC_CHECK_HEADERS([sys/sysctl.h], [], [], + [ + @%:@ifdef HAVE_SYS_PARAM_H + @%:@ include <sys/param.h> + @%:@endif + ])]) SOCKET_LIBS="" diff --git a/sql/server/sql_parser.y b/sql/server/sql_parser.y --- a/sql/server/sql_parser.y +++ b/sql/server/sql_parser.y @@ -164,7 +164,7 @@ uescape_xform(char *restrict s, const ch %lex-param { void *m } /* reentrant parser */ -%pure-parser +%define api.pure %union { int i_val,bval; lng l_val,operation; _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list