Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1584575
 поиск   регистрация   авторизация 
 
Группа :: Разработка/Прочее
Пакет: subversion

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: subversion-1.3.0-deb-swig-1.3.27.patch


swig embeds its own C preprocessor which somehow breaks apr.h.  This is
the only workaround I can think of.  And yes, I *know* it's horrible.
(Harmless, though, as the bindings don't use APR_PATH_MAX anyway.)
See bug #341812 against swig 1.3.27-1.
--- subversion-1.3.0/Makefile.in.orig	2005-11-16 02:56:15 +0200
+++ subversion-1.3.0/Makefile.in	2006-01-16 19:27:17 +0200
@@ -108,11 +108,13 @@ APACHE_TARGET = @APACHE_TARGET@
 APACHE_LIBEXECDIR = $(DESTDIR)@APACHE_LIBEXECDIR@
 
 SWIG = @SWIG@
+SWIG_1_3_27_HACK = -DPATH_MAX=4096
 SWIG_INCLUDES = -I$(SWIG_BUILD_DIR) \
                 -I$(SWIG_SRC_DIR)/include \
                 -I$(SWIG_BUILD_DIR)/proxy \
                 -I$(SWIG_SRC_DIR)/proxy \
                 -I$(abs_srcdir)/subversion/include \
+                $(SWIG_1_3_27_HACK) \
                 $(SVN_APR_INCLUDES) $(SVN_APRUTIL_INCLUDES)
 SWIG_PY_INCLUDES = @SWIG_PY_INCLUDES@ -I$(SWIG_SRC_DIR)/python/libsvn_swig_py
 SWIG_PY_COMPILE = @SWIG_PY_COMPILE@
--- subversion-1.3.0/subversion/bindings/swig/perl/native/Makefile.PL.in.orig	2005-10-14 23:45:33 +0300
+++ subversion-1.3.0/subversion/bindings/swig/perl/native/Makefile.PL.in	2006-01-16 19:28:29 +0200
@@ -28,6 +28,8 @@ my @ldmodules = map {"-lsvn_$_-1"} (@mod
 my $apr_shlib_path_var = '@SVN_APR_SHLIB_PATH_VAR@';
 my $apr_cflags = '@SVN_APR_INCLUDES@';
 my $apu_cflags = '@SVN_APRUTIL_INCLUDES@';
+# Debian HACK to work around bug in swig 1.3.27.  Ewwww.  But it works.
+$apr_cflags .= ' -DPATH_MAX=4096';
 
 # According to the log of r7937, the flags guarded by the conditional break
 # the build on FreeBSD if not conditionalized.
 
design & coding: Vladimir Lettiev aka crux © 2004-2005