Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Robust definition list generation
· e10c6e21
Antonio Valentino
authored
Dec 31, 2018
e10c6e21
Set distribution to unstable
· 003c4ff0
Antonio Valentino
authored
Dec 31, 2018
003c4ff0
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
003c4ff0
pylibtiff (0.4.2-3) unstable; urgency=medium
* debain/patchesi:
- new 0006-Robust-definition-list-generation.patch.
The patch avoids permission errors when the definition list is
generated at runtime. The definition list is no longer written to
file (tiff_h_X_Y_Z.py) in the system path.
-- Antonio Valentino <antonio.valentino@tiscali.it> Mon, 31 Dec 2018 09:31:37 +0000
pylibtiff (0.4.2-2) unstable; urgency=medium
* debian/patches
...
...
debian/control
View file @
003c4ff0
...
...
@@ -22,7 +22,7 @@ Homepage: https://github.com/pearu/pylibtiff
Package: python-libtiff
Architecture: any
Depends: libtiff5,
Depends: libtiff5
(>= 4.0.10) | libtiff-dev
,
python-bitarray,
${python:Depends},
${shlibs:Depends},
...
...
@@ -54,7 +54,7 @@ Description: wrapper to the libtiff library to Python using ctypes
Package: python3-libtiff
Architecture: any
Depends: libtiff5,
Depends: libtiff5
(>= 4.0.10) | libtiff-dev
,
python3-bitarray,
${python3:Depends},
${shlibs:Depends},
...
...
debian/patches/0006-Robust-definition-list-generation.patch
0 → 100644
View file @
003c4ff0
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Mon, 31 Dec 2018 09:07:28 +0000
Subject: Robust definition list generation
---
libtiff/libtiff_ctypes.py | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/libtiff/libtiff_ctypes.py b/libtiff/libtiff_ctypes.py
index 9a18dc9..7fc5d98 100644
--- a/libtiff/libtiff_ctypes.py
+++ b/libtiff/libtiff_ctypes.py
@@ -131,12 +131,13 @@
if tiff_h is None:
l.append('%s = %s' % (name, value))
f.close()
- fn = os.path.join(os.path.dirname(os.path.abspath(__file__)),
- tiff_h_name + '.py')
- print('Generating %r from %r' % (fn,include_tiff_h))
- f = open(fn, 'w')
- f.write('\n'.join(l) + '\n')
- f.close()
+ if os.environ.get('PYLIBRIFF_WRITE_DEFINITION_FILE', 'NO') == 'YES':
+ fn = os.path.join(os.path.dirname(os.path.abspath(__file__)),
+ tiff_h_name + '.py')
+ print('Generating %r from %r' % (fn,include_tiff_h))
+ f = open(fn, 'w')
+ f.write('\n'.join(l) + '\n')
+ f.close()
else:
d = tiff_h.__dict__
debian/patches/series
View file @
003c4ff0
...
...
@@ -3,3 +3,4 @@
0003-fix-future-division.patch
0004-Improve-tiff.h-detection.patch
0005-Disable-bittools-extension.patch
0006-Robust-definition-list-generation.patch