Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (3)
Enable gl_get_line() to detect EOF
· 0afdb49f
Andreas Tille
authored
Aug 22, 2017
0afdb49f
Drop Build-Depends that are not needed for debhelper 10
· 72ddc236
Andreas Tille
authored
Aug 22, 2017
72ddc236
hardening; no parallel build (otherwise build fails)
· ec1d4bbf
Andreas Tille
authored
Aug 22, 2017
ec1d4bbf
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
ec1d4bbf
libtecla (1.6.3-2)
UNRELEASED
; urgency=medium
libtecla (1.6.3-2)
unstable
; urgency=medium
* Moved packaging from SVN to Git
* Standards-Version: 4.0.1 (no changes needed)
* debhelper 10
* Enable gl_get_line() to detect EOF (Thanks for the patch to Guido
Berhoerster <guido+debian.org@berhoerster.name>)
Closes: #872865
* hardening
-- Andreas Tille <tille@debian.org> Tue, 22 Aug 2017 21:
17:45
+0200
-- Andreas Tille <tille@debian.org> Tue, 22 Aug 2017 21:
42:28
+0200
libtecla (1.6.3-1) unstable; urgency=medium
...
...
debian/control
View file @
ec1d4bbf
...
...
@@ -5,8 +5,6 @@ Uploaders: Scott Christley <schristley@mac.com>,
Section: science
Priority: optional
Build-Depends: debhelper (>= 10),
dh-autoreconf,
autotools-dev,
d-shlibs
Standards-Version: 4.0.1
Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/libtecla.git
...
...
debian/patches/libtecla-fix-eof-handling.patch
0 → 100644
View file @
ec1d4bbf
Author: Guido Berhoerster <guido+debian.org@berhoerster.name>
Last-Update: Mon, 21 Aug 2017 21:43:09 +0000
Bug-Debian: https://bugs.debian.org/872865
Description: Enable gl_get_line() to detect EOF
--- a/getline.c
+++ b/getline.c
@@ -3296,6 +3296,7 @@
static GlReadStatus gl_read_input(GetLin
static GlReadStatus gl_read_unmasked(GetLine *gl, int fd, char *c)
{
int nread; /* The return value of read() */
+ int saved_errno;
/*
* Unblock the signals that we are trapping, while waiting for I/O.
*/
@@ -3307,6 +3308,7 @@
static GlReadStatus gl_read_unmasked(Get
do {
errno = 0;
nread = read(fd, c, 1);
+ saved_errno = errno;
} while(nread < 0 && errno==EINTR);
/*
* Block all of the signals that we are trapping.
@@ -3319,7 +3321,7 @@
static GlReadStatus gl_read_unmasked(Get
case 1:
return GL_READ_OK;
case 0:
- return (isatty(fd) || errno != 0) ? GL_READ_BLOCKED : GL_READ_EOF;
+ return (isatty(fd) || saved_errno != 0) ? GL_READ_BLOCKED : GL_READ_EOF;
default:
return GL_READ_ERROR;
};
debian/patches/series
View file @
ec1d4bbf
...
...
@@ -3,3 +3,4 @@ manpage-fix.patch
kfreebsd+hurd.patch
remove_makefile_to_enable_smooth_regeneration.patch
spelling.patch
libtecla-fix-eof-handling.patch
debian/rules
View file @
ec1d4bbf
...
...
@@ -2,8 +2,10 @@
# debian/rules file for tecla
export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
%:
dh $@ --
with autotools_dev,autoreconf
dh $@ --
no-parallel
override_dh_install:
dh_install
...
...