17
0
Files
xapian-bindings/do-not-use-sphinx.diff
Antonio Larrosa 60fc482430 - Update to 1.4.27:
General:
  * We now consistently fail at configure time if bindings for a target
    language are explicitly enabled (using e.g. `--with-lua`) but required
    dependencies are not found.  Previously in some cases we would continue
    but effectively ignore the option.
  Portability:
  * We no longer explicitly link bindings with -lstdc++.  This was added in 0.9.3
    in 2005 as a workaround for a linking problem on OpenBSD, but nowadays it
    causes link failures on platforms which use clang+libc++ as the C++ compiler
    which includes OpenBSD so it seems this fix is no longer useful anywhere.
    Fixes #834, reported by David Gessel.
    If this change results in you getting a link failure, please let us know
    about it.  You can probably workaround the failure by specifying an explicit
    link with -lstdc++ like so:
        make LIBS=-lstdc++
    This assumes the C++ compiler you are using uses libstdc++ - if it uses
    libc++ then try:
        make LIBS=-lc++
  Java:
  * Formally declare Java bindings API stable.  This API has been de-facto stable
    for several years and any incompatible changes can now be handled in the
    usual way at the start of a release series.
  * Improve build on FreeBSD and DragonFlyBSD to find the jni_md.h header
    automatically.
  Lua:
  * Overhaul Lua configure probes.  As part of this we now check for the Lua
    interpreter with a versioned name (e.g. lua5.4 and lua54) and handle a DOS
    drive letter on the directories in `package.cpath`.
  PHP:

OBS-URL: https://build.opensuse.org/package/show/server:search/xapian-bindings?expand=0&rev=106
2025-03-07 10:33:39 +00:00

107 lines
4.7 KiB
Diff

Index: xapian-bindings-1.4.20/configure
===================================================================
--- xapian-bindings-1.4.20.orig/configure
+++ xapian-bindings-1.4.20/configure
@@ -18076,19 +18076,6 @@ printf "%s\n" "$as_me: WARNING: Couldn't
fi
fi
fi
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python2 sphinx module" >&5
-printf %s "checking for python2 sphinx module... " >&6; }
- if $PYTHON2 -c 'import sphinx;print(repr(sphinx.main))' >&5 2>&5 ; then
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-printf "%s\n" "yes" >&6; }
- else
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
-printf "%s\n" "no" >&6; }
- if test yes = "$with_python" ; then
- as_fn_error $? "Couldn't import sphinx module and call sphinx.main() for Python2 - try package python-sphinx" "$LINENO" 5
- fi
- PYTHON2=
- fi
if test -n "$PYTHON2" ; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PYTHON2_INC/Python.h" >&5
printf %s "checking for $PYTHON2_INC/Python.h... " >&6; }
@@ -18263,16 +18250,6 @@ printf "%s\n" "$version (too old)" >&6;
PYTHON3_INC=`$PYTHON3 -c 'import os,sysconfig;print(sysconfig.get_path("include").replace(os.sep,"/"))' 2>/dev/null`
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python3 sphinx module" >&5
-printf %s "checking for python3 sphinx module... " >&6; }
- if $PYTHON3 -c 'import sphinx' >&5 2>&5 ; then
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-printf "%s\n" "yes" >&6; }
- else
- { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (try installing package python3-sphinx" >&5
-printf "%s\n" "no (try installing package python3-sphinx" >&6; }
- python3_ok=no
- fi
fi
if test yes = "$python3_ok" ; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PYTHON3_INC/Python.h" >&5
Index: xapian-bindings-1.4.20/configure.ac
===================================================================
--- xapian-bindings-1.4.20.orig/configure.ac
+++ xapian-bindings-1.4.20/configure.ac
@@ -353,16 +353,6 @@ if test no != "$with_python" ; then
fi
fi
fi
- AC_MSG_CHECKING([for python2 sphinx module])
- if $PYTHON2 -c 'import sphinx;print(repr(sphinx.main))' >&5 2>&5 ; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- if test yes = "$with_python" ; then
- AC_MSG_ERROR([Couldn't import sphinx module and call sphinx.main() for Python2 - try package python-sphinx])
- fi
- PYTHON2=
- fi
if test -n "$PYTHON2" ; then
dnl Check that Python.h is there, which is a good way to check that
dnl the appropriate python-dev package has been installed.
@@ -434,13 +424,6 @@ if test no != "$with_python3" ; then
PYTHON3_INC=`$PYTHON3 -c 'import os,sysconfig;print(sysconfig.get_path("include").replace(os.sep,"/"))' 2>/dev/null`
AC_SUBST(PYTHON3_INC)
- AC_MSG_CHECKING([for python3 sphinx module])
- if $PYTHON3 -c 'import sphinx' >&5 2>&5 ; then
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no (try installing package python3-sphinx])
- python3_ok=no
- fi
fi
if test yes = "$python3_ok" ; then
dnl Check that Python.h is there, which is a good way to check that
Index: xapian-bindings-1.4.20/python/Makefile.am
===================================================================
--- xapian-bindings-1.4.20.orig/python/Makefile.am
+++ xapian-bindings-1.4.20/python/Makefile.am
@@ -151,9 +151,7 @@ sphinxdocs = docs/html/index.html
install-data-local:
$(mkinstalldirs) '$(DESTDIR)$(docdir)/python'
- cp -R -p `test -r docs/html || echo '$(srcdir)/'`docs/html '$(DESTDIR)$(docdir)/python'
-
-all-local: $(sphinxdocs)
+ cp -R -p `test -r docs/index.rst || echo '$(srcdir)/'`docs '$(DESTDIR)$(docdir)/python'
$(sphinxdocs): xapian/__init__.py xapian/_xapian$(PYTHON2_SO) docs/conf.py $(RST_DOCS) $(dist_exampledata_DATA)
## We need to run Sphinx for the right version of Python here, so we can't
Index: xapian-bindings-1.4.20/python3/Makefile.am
===================================================================
--- xapian-bindings-1.4.20.orig/python3/Makefile.am
+++ xapian-bindings-1.4.20/python3/Makefile.am
@@ -160,9 +160,7 @@ sphinxdocs = docs/html/index.html
install-data-local:
$(mkinstalldirs) '$(DESTDIR)$(docdir)/python3'
- cp -R -p `test -r docs/html || echo '$(srcdir)/'`docs/html '$(DESTDIR)$(docdir)/python3'
-
-all-local: $(sphinxdocs)
+ cp -R -p `test -r docs/index.rst || echo '$(srcdir)/'`docs '$(DESTDIR)$(docdir)/python3'
$(sphinxdocs): xapian/__init__.py xapian/_xapian$(PYTHON3_EXT_SUFFIX) docs/conf.py $(RST_DOCS) $(dist_exampledata_DATA)
PYTHONPATH=..:$$PYTHONPATH $(MACOS_SIP_HACK_ENV) $(PYTHON3) \