]>
Commit | Line | Data |
---|---|---|
04bb14bc JB |
1 | --- gpgme-1.3.1/src/gpgme-config.in.orig 2011-04-07 14:24:03.000000000 +0200 |
2 | +++ gpgme-1.3.1/src/gpgme-config.in 2011-06-18 08:59:14.834695342 +0200 | |
3 | @@ -45,6 +45,10 @@ | |
4 | cflags_glib="@GLIB_CFLAGS@" | |
5 | with_glib= | |
6 | ||
7 | +if test "0@NEED__FILE_OFFSET_BITS@" -gt "0" ; then | |
8 | + cflags_lfs="-D_FILE_OFFSET_BITS=@NEED__FILE_OFFSET_BITS@" | |
9 | +fi | |
10 | + | |
11 | output="" | |
12 | ||
13 | usage() | |
14 | @@ -136,6 +140,9 @@ | |
15 | result="$result $i" | |
16 | fi | |
17 | done | |
18 | + if test "x$cflags_lfs" != "x"; then | |
19 | + output="$output $cflags_lfs" | |
20 | + fi | |
21 | output="$output $result" | |
22 | ;; | |
23 | --libs) | |
24 | --- gpgme-1.7.0/configure.ac.orig 2016-09-21 09:18:01.000000000 +0200 | |
25 | +++ gpgme-1.7.0/configure.ac 2016-10-08 08:46:21.898705647 +0200 | |
26 | @@ -529,15 +529,18 @@ | |
27 | # A simple compile time check in gpgme.h for GNU/Linux systems that | |
28 | # prevents a file offset bits mismatch between gpgme and the application. | |
29 | NEED__FILE_OFFSET_BITS=0 | |
30 | +FILE_OFFSET_BITS_CPPFLAGS= | |
31 | if test "$have_w32_system" != yes; then | |
32 | case "$ac_cv_sys_file_offset_bits" in | |
33 | "" | no | unknown) ;; | |
34 | *) | |
35 | NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits | |
36 | + FILE_OFFSET_BITS_CPPFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits" | |
37 | ;; | |
38 | esac | |
39 | fi | |
40 | AC_SUBST(NEED__FILE_OFFSET_BITS) | |
41 | +AC_SUBST(FILE_OFFSET_BITS_CPPFLAGS) | |
42 | ||
43 | # Figure out platform dependent typedefs for gpgme.h | |
44 | if test "$have_w32_system" = yes; then | |
ef89bcd2 JB |
45 | --- gpgme-1.13.0/lang/cpp/src/Makefile.am.orig 2019-03-28 17:43:11.439122747 +0100 |
46 | +++ gpgme-1.13.0/lang/cpp/src/Makefile.am 2019-03-28 18:21:29.420006850 +0100 | |
47 | @@ -65,7 +65,7 @@ | |
04bb14bc JB |
48 | libgpgmepp_la_SOURCES = $(main_sources) $(gpgmepp_headers) context_vanilla.cpp \ |
49 | $(interface_headers) $(private_gpgmepp_headers) | |
50 | ||
51 | -AM_CPPFLAGS = -I$(top_builddir)/src @GPG_ERROR_CFLAGS@ @LIBASSUAN_CFLAGS@ \ | |
52 | +AM_CPPFLAGS = -I$(top_builddir)/src @GPG_ERROR_CFLAGS@ @LIBASSUAN_CFLAGS@ @FILE_OFFSET_BITS_CPPFLAGS@ \ | |
ef89bcd2 JB |
53 | -DBUILDING_GPGMEPP -Wsuggest-override \ |
54 | -Wzero-as-null-pointer-constant | |
04bb14bc | 55 | |
ef89bcd2 JB |
56 | --- gpgme-1.13.0/lang/python/setup.py.in.orig 2018-12-03 10:37:25.000000000 +0100 |
57 | +++ gpgme-1.13.0/lang/python/setup.py.in 2019-03-28 18:23:59.565860107 +0100 | |
58 | @@ -87,9 +87,8 @@ | |
04bb14bc JB |
59 | define_macros = [] |
60 | libs = getconfig('libs') | |
61 | ||
62 | -# Define extra_macros for both the SWIG and C code | |
63 | +# append extra_macros to define_macros | |
64 | for k, v in extra_macros.items(): | |
ef89bcd2 | 65 | - extra_swig_opts.append('-D{0}={1}'.format(k, v)) |
04bb14bc JB |
66 | define_macros.append((k, str(v))) |
67 | ||
68 | for item in getconfig('cflags'): | |
ef89bcd2 | 69 | @@ -102,6 +101,10 @@ |
04bb14bc JB |
70 | else: |
71 | define_macros.append((defitem[0], None)) | |
72 | ||
73 | +# use define_macros for both the SWIG and C code | |
74 | +for k,v in define_macros: | |
75 | + extra_swig_opts.append("-D{0}={1}".format(k, v)) | |
76 | + | |
77 | # Adjust include and library locations in case of win32 | |
ef89bcd2 JB |
78 | uname_s = os.popen('uname -s').read() |
79 | if uname_s.startswith('MINGW32'): | |
80 | --- gpgme-1.13.0/lang/qt/src/Makefile.am.orig 2019-03-28 17:43:11.439122747 +0100 | |
81 | +++ gpgme-1.13.0/lang/qt/src/Makefile.am 2019-03-28 18:21:48.163238642 +0100 | |
82 | @@ -218,7 +218,7 @@ | |
04bb14bc JB |
83 | libqgpgme_la_SOURCES = $(qgpgme_sources) $(qgpgme_headers) $(private_qgpgme_headers) |
84 | ||
85 | AM_CPPFLAGS = -I$(top_srcdir)/lang/cpp/src -I$(top_builddir)/src \ | |
86 | - @GPGME_QT_CFLAGS@ @GPG_ERROR_CFLAGS@ @LIBASSUAN_CFLAGS@ \ | |
87 | + @GPGME_QT_CFLAGS@ @GPG_ERROR_CFLAGS@ @LIBASSUAN_CFLAGS@ @FILE_OFFSET_BITS_CPPFLAGS@ \ | |
ef89bcd2 JB |
88 | -DBUILDING_QGPGME -Wsuggest-override \ |
89 | -Wzero-as-null-pointer-constant | |
04bb14bc | 90 | |
04bb14bc JB |
91 | --- gpgme-1.7.0/lang/qt/tests/Makefile.am.orig 2016-09-20 19:09:38.000000000 +0200 |
92 | +++ gpgme-1.7.0/lang/qt/tests/Makefile.am 2016-10-08 09:37:15.642004112 +0200 | |
93 | @@ -38,7 +38,7 @@ | |
94 | ||
95 | AM_CPPFLAGS = -I$(top_srcdir)/lang/cpp/src -I$(top_builddir)/src \ | |
96 | @GPG_ERROR_CFLAGS@ @GPGME_QT_CFLAGS@ @GPG_ERROR_CFLAGS@ \ | |
97 | - @LIBASSUAN_CFLAGS@ @GPGME_QTTEST_CFLAGS@ -DBUILDING_QGPGME \ | |
98 | + @LIBASSUAN_CFLAGS@ @GPGME_QTTEST_CFLAGS@ @FILE_OFFSET_BITS_CPPFLAGS@ -DBUILDING_QGPGME \ | |
99 | -I$(top_srcdir)/lang/qt/src \ | |
100 | -DTOP_SRCDIR="$(top_srcdir)" | |
101 |