1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-09 03:41:46 +03:00

fixing portability bug #113002 on HP-UX cleanup of --with-python like for

* xsltproc/xsltproc.c: fixing portability bug #113002 on HP-UX
* configure.in libxslt.spec.in python/Makefile.am: cleanup
  of --with-python like for libxml2
Daniel
This commit is contained in:
Daniel Veillard
2003-05-15 20:28:53 +00:00
parent c589bdcf67
commit ada71b3bb5
6 changed files with 84 additions and 86 deletions

View File

@ -1,3 +1,9 @@
Thu May 15 16:26:34 EDT 2003 Daniel Veillard <daniel@veillard.com>
* xsltproc/xsltproc.c: fixing portability bug #113002 on HP-UX
* configure.in libxslt.spec.in python/Makefile.am: cleanup
of --with-python like for libxml2
Thu May 15 11:45:00 HKT 2003 William Brack <wbrack@mmm.com.hk>
* libxslt/xsltutils.c: fixing bug #112995, a problem with

View File

@ -151,6 +151,7 @@ PYTHON=
PYTHON_VERSION=
PYTHON_INCLUDES=
PYTHON_SITE_PACKAGES=
pythondir=
AC_ARG_WITH(python, [ --with-python[=DIR] Build Python bindings if found])
if test "$with_python" != "no" ; then
if test -x "$with_python/bin/python"
@ -206,6 +207,12 @@ except: print 0"`
fi
fi
fi
if test "$with_python" != ""
then
pythondir='$(PYTHON_SITE_PACKAGES)'
else
pythondir='$(libdir)/python${PYTHON_VERSION}/site-packages'
fi
fi
AM_CONDITIONAL(WITH_PYTHON, test "$PYTHON_INCLUDES" != "")
if test "$PYTHON_INCLUDES" != ""
@ -214,6 +221,7 @@ then
else
PYTHON_SUBDIR=
fi
AC_SUBST(pythondir)
AC_SUBST(PYTHON_SUBDIR)
dnl

View File

@ -1,14 +1,16 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<api name='libxslt'>
<files>
<file name='documents'>
<exports symbol='xsltFindDocument'/>
<exports symbol='xsltFreeDocuments'/>
<exports symbol='xsltFreeStyleDocuments'/>
<exports symbol='xsltLoadDocument'/>
<exports symbol='xsltLoadStyleDocument'/>
<exports symbol='xsltNewDocument'/>
<exports symbol='xsltNewStyleDocument'/>
<file name='extra'>
<exports symbol='XSLT_LIBXSLT_NAMESPACE'/>
<exports symbol='XSLT_NORM_SAXON_NAMESPACE'/>
<exports symbol='XSLT_SAXON_NAMESPACE'/>
<exports symbol='XSLT_XALAN_NAMESPACE'/>
<exports symbol='XSLT_XT_NAMESPACE'/>
<exports symbol='xsltDebug'/>
<exports symbol='xsltFunctionNodeSet'/>
<exports symbol='xsltRegisterAllExtras'/>
<exports symbol='xsltRegisterExtras'/>
</file>
<file name='imports'>
<exports symbol='XSLT_GET_IMPORT_INT'/>
@ -20,40 +22,11 @@
<exports symbol='xsltParseStylesheetImport'/>
<exports symbol='xsltParseStylesheetInclude'/>
</file>
<file name='security'>
<exports symbol='XSLT_SECPREF_CREATE_DIRECTORY'/>
<exports symbol='XSLT_SECPREF_READ_FILE'/>
<exports symbol='XSLT_SECPREF_READ_NETWORK'/>
<exports symbol='XSLT_SECPREF_WRITE_FILE'/>
<exports symbol='XSLT_SECPREF_WRITE_NETWORK'/>
<exports symbol='xsltCheckRead'/>
<exports symbol='xsltCheckWrite'/>
<exports symbol='xsltFreeSecurityPrefs'/>
<exports symbol='xsltGetDefaultSecurityPrefs'/>
<exports symbol='xsltGetSecurityPrefs'/>
<exports symbol='xsltNewSecurityPrefs'/>
<exports symbol='xsltSecurityAllow'/>
<exports symbol='xsltSecurityCheck'/>
<exports symbol='xsltSecurityForbid'/>
<exports symbol='xsltSecurityOption'/>
<exports symbol='xsltSecurityPrefs'/>
<exports symbol='xsltSecurityPrefsPtr'/>
<exports symbol='xsltSetCtxtSecurityPrefs'/>
<exports symbol='xsltSetDefaultSecurityPrefs'/>
<exports symbol='xsltSetSecurityPrefs'/>
</file>
<file name='templates'>
<exports symbol='xsltAttrListTemplateProcess'/>
<exports symbol='xsltAttrTemplateProcess'/>
<exports symbol='xsltAttrTemplateValueProcess'/>
<exports symbol='xsltAttrTemplateValueProcessNode'/>
<exports symbol='xsltEvalAttrValueTemplate'/>
<exports symbol='xsltEvalStaticAttrValueTemplate'/>
<exports symbol='xsltEvalTemplateString'/>
<exports symbol='xsltEvalXPathPredicate'/>
<exports symbol='xsltEvalXPathString'/>
<exports symbol='xsltEvalXPathStringNs'/>
<exports symbol='xsltTemplateProcess'/>
<file name='preproc'>
<exports symbol='xsltDocumentComp'/>
<exports symbol='xsltExtMarker'/>
<exports symbol='xsltFreeStylePreComps'/>
<exports symbol='xsltStylePreCompute'/>
</file>
<file name='xsltutils'>
<exports symbol='IS_XSLT_ELEM'/>
@ -122,24 +95,49 @@
<exports symbol='xsltUnparsedEntityURIFunction'/>
<exports symbol='xsltXPathFunctionLookup'/>
</file>
<file name='namespaces'>
<exports symbol='xsltCopyNamespace'/>
<exports symbol='xsltCopyNamespaceList'/>
<exports symbol='xsltFreeNamespaceAliasHashes'/>
<exports symbol='xsltGetNamespace'/>
<exports symbol='xsltGetSpecialNamespace'/>
<exports symbol='xsltNamespaceAlias'/>
<file name='security'>
<exports symbol='XSLT_SECPREF_CREATE_DIRECTORY'/>
<exports symbol='XSLT_SECPREF_READ_FILE'/>
<exports symbol='XSLT_SECPREF_READ_NETWORK'/>
<exports symbol='XSLT_SECPREF_WRITE_FILE'/>
<exports symbol='XSLT_SECPREF_WRITE_NETWORK'/>
<exports symbol='xsltCheckRead'/>
<exports symbol='xsltCheckWrite'/>
<exports symbol='xsltFreeSecurityPrefs'/>
<exports symbol='xsltGetDefaultSecurityPrefs'/>
<exports symbol='xsltGetSecurityPrefs'/>
<exports symbol='xsltNewSecurityPrefs'/>
<exports symbol='xsltSecurityAllow'/>
<exports symbol='xsltSecurityCheck'/>
<exports symbol='xsltSecurityForbid'/>
<exports symbol='xsltSecurityOption'/>
<exports symbol='xsltSecurityPrefs'/>
<exports symbol='xsltSecurityPrefsPtr'/>
<exports symbol='xsltSetCtxtSecurityPrefs'/>
<exports symbol='xsltSetDefaultSecurityPrefs'/>
<exports symbol='xsltSetSecurityPrefs'/>
</file>
<file name='extra'>
<exports symbol='XSLT_LIBXSLT_NAMESPACE'/>
<exports symbol='XSLT_NORM_SAXON_NAMESPACE'/>
<exports symbol='XSLT_SAXON_NAMESPACE'/>
<exports symbol='XSLT_XALAN_NAMESPACE'/>
<exports symbol='XSLT_XT_NAMESPACE'/>
<exports symbol='xsltDebug'/>
<exports symbol='xsltFunctionNodeSet'/>
<exports symbol='xsltRegisterAllExtras'/>
<exports symbol='xsltRegisterExtras'/>
<file name='templates'>
<exports symbol='xsltAttrListTemplateProcess'/>
<exports symbol='xsltAttrTemplateProcess'/>
<exports symbol='xsltAttrTemplateValueProcess'/>
<exports symbol='xsltAttrTemplateValueProcessNode'/>
<exports symbol='xsltEvalAttrValueTemplate'/>
<exports symbol='xsltEvalStaticAttrValueTemplate'/>
<exports symbol='xsltEvalTemplateString'/>
<exports symbol='xsltEvalXPathPredicate'/>
<exports symbol='xsltEvalXPathString'/>
<exports symbol='xsltEvalXPathStringNs'/>
<exports symbol='xsltTemplateProcess'/>
</file>
<file name='documents'>
<exports symbol='xsltFindDocument'/>
<exports symbol='xsltFreeDocuments'/>
<exports symbol='xsltFreeStyleDocuments'/>
<exports symbol='xsltLoadDocument'/>
<exports symbol='xsltLoadStyleDocument'/>
<exports symbol='xsltNewDocument'/>
<exports symbol='xsltNewStyleDocument'/>
</file>
<file name='xsltInternals'>
<exports symbol='CHECK_STOPPED'/>
@ -337,11 +335,13 @@
<exports symbol='xsltLibxsltVersion'/>
<exports symbol='xsltMaxDepth'/>
</file>
<file name='preproc'>
<exports symbol='xsltDocumentComp'/>
<exports symbol='xsltExtMarker'/>
<exports symbol='xsltFreeStylePreComps'/>
<exports symbol='xsltStylePreCompute'/>
<file name='namespaces'>
<exports symbol='xsltCopyNamespace'/>
<exports symbol='xsltCopyNamespaceList'/>
<exports symbol='xsltFreeNamespaceAliasHashes'/>
<exports symbol='xsltGetNamespace'/>
<exports symbol='xsltGetSpecialNamespace'/>
<exports symbol='xsltNamespaceAlias'/>
</file>
<file name='variables'>
<exports symbol='XSLT_REGISTER_VARIABLE_LOOKUP'/>

View File

@ -61,25 +61,6 @@ rm -fr %{buildroot}
%makeinstall
#
# this is a bit ugly but tries to generate the bindings for all versions
# of python installed
#
for i in %{prefix}/include/python*
do
py_version=`echo $i | sed "s+%{prefix}/include/python++"`
if test -x %{prefix}/bin/python$py_version
then
echo generating bindings for Python $py_version
(cd python ; make clean ; \
make PYTHON="%{prefix}/bin/python$py_version" \
PYTHON_VERSION="$py_version"; \
%makeinstall PYTHON="%{prefix}/bin/python$py_version" \
PYTHON_VERSION="$py_version" \
prefix=$RPM_BUILD_ROOT%{prefix})
fi
done
%clean
rm -fr %{buildroot}

View File

@ -33,7 +33,6 @@ mylibs = \
all-local: libxslt.py
pythondir = $(libdir)/python${PYTHON_VERSION}/site-packages
python_LTLIBRARIES = libxsltmod.la
libxsltmod_la_SOURCES = libxslt.c types.c libxslt-py.c
@ -43,8 +42,8 @@ libxslt.py: $(srcdir)/libxsl.py $(srcdir)/libxsltclass.py
cat $(srcdir)/libxsl.py $(srcdir)/libxsltclass.py > libxslt.py
install-data-local:
$(mkinstalldirs) $(DESTDIR)$(libdir)/python${PYTHON_VERSION}/site-packages
@INSTALL@ -m 0644 libxslt.py $(DESTDIR)$(libdir)/python${PYTHON_VERSION}/site-packages
$(mkinstalldirs) $(DESTDIR)$(pythondir)
@INSTALL@ -m 0644 libxslt.py $(DESTDIR)$(pythondir)
$(mkinstalldirs) $(DESTDIR)$(DOCS_DIR)
@(for doc in $(DOCS) ; \
do @INSTALL@ -m 0644 $$doc $(DESTDIR)$(DOCS_DIR) ; done)

View File

@ -73,6 +73,10 @@
#endif
#endif /* WIN32 */
#ifdef HAVE_SYS_TIMEB_H
#include <sys/timeb.h>
#endif
#ifndef HAVE_STAT
# ifdef HAVE__STAT
/* MS C library seems to define stat and _stat. The definition