]> TLD Linux GIT Repositories - packages/poldek.git/blob - poldek-python-fix.patch
- don't hold any packages by default, let admin decide
[packages/poldek.git] / poldek-python-fix.patch
1 diff -urNpa poldek-0.32.2.orig/python/Makefile.am poldek-0.32.2/python/Makefile.am
2 --- poldek-0.32.2.orig/python/Makefile.am       2016-01-30 14:05:57.000000000 +0000
3 +++ poldek-0.32.2/python/Makefile.am    2017-11-08 07:55:31.168941840 +0000
4 @@ -3,8 +3,8 @@ py_ver     = $(shell python -c "import s
5  py_prefix  = $(shell python -c "import sys; print sys.prefix")
6  py_incdir  = $(py_prefix)/include/python$(py_ver)
7  
8 -EXTRA_DIST = poldekmod.i local_stdint.c pyldek.py run.sh
9 -CLEANFILES = wrap_* poldekmod.py local_stdint.h
10 +EXTRA_DIST = poldekmod.i pyldek.py run.sh
11 +CLEANFILES = wrap_* poldekmod.py
12  
13  AM_CPPFLAGS = @TRURL_INCLUDE@ @TNDB_INCLUDE@ -I$(top_srcdir) -I$(py_incdir) -I.
14  
15 @@ -21,16 +21,12 @@ AM_CFLAGS=
16  CFLAGS=
17  CPPFLAGS += -DSWIG -DPOCLIDEK_ITSELF 
18  
19 -poldekmod.i: local_stdint.h
20 -
21 -#install-exec-hook:
22 -#      $(mkinstalldirs) "$(DESTDIR)$(py_sitedir)"
23 +install-exec-hook:
24 +       $(mkinstalldirs) "$(DESTDIR)$(py_sitedir)"
25 +       $(install_sh) .libs/_poldekmod.so "$(DESTDIR)$(py_sitedir)"
26  
27  poldekmod.py: wrap_poldekmod.c
28  
29 -local_stdint.h: local_stdint.c
30 -       $(CPP) $< > $@
31 -
32  #wrap_poldekmod.c: poldekmod.i
33  #      $(SWIG) $(SWIG_PYTHON_OPT) $(INCLUDES) -I/usr/include -o $@ $<
34  
35 diff -urNpa poldek-0.32.2.orig/python/poldekmod.i poldek-0.32.2/python/poldekmod.i
36 --- poldek-0.32.2.orig/python/poldekmod.i       2016-01-30 14:05:57.000000000 +0000
37 +++ poldek-0.32.2/python/poldekmod.i    2017-11-08 07:55:31.169941840 +0000
38 @@ -1,7 +1,6 @@
39  %module poldekmod
40  
41  %{
42 -#include "local_stdint.h"
43  #include "poldek.h"
44  #include "trurl/narray.h"
45  #include "trurl/nhash.h"
46 @@ -33,7 +32,6 @@ static struct vf_progress vfPyProgress;
47  %}
48  
49  %include exception.i
50 -%include "local_stdint.h"
51  %include "trurl/narray.h"
52  %include "capreq.h"
53  %include "pkg.h"
54 diff -urNpa poldek-0.32.2.orig/python/wrap_poldekmod.c poldek-0.32.2/python/wrap_poldekmod.c
55 --- poldek-0.32.2.orig/python/wrap_poldekmod.c  2016-07-18 18:00:08.000000000 +0000
56 +++ poldek-0.32.2/python/wrap_poldekmod.c       2017-11-08 07:55:53.362940517 +0000
57 @@ -3065,7 +3065,6 @@ static swig_module_info swig_module = {s
58  #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a)) 
59  
60  
61 -#include "local_stdint.h"
62  #include "poldek.h"
63  #include "trurl/narray.h"
64  #include "trurl/nhash.h"