diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 3 | ||||
-rw-r--r-- | errno.patch | 27 |
3 files changed, 32 insertions, 2 deletions
@@ -1,5 +1,3 @@ -# Generated by mksrcinfo v8 -# Sat Jan 19 18:39:03 UTC 2019 pkgbase = mgetty pkgdesc = Mgetty is a versatile program to handle all aspects of a modem under Unix. pkgver = 1.2.1 @@ -20,6 +18,7 @@ pkgbase = mgetty source = config.patch source = policy.patch source = aarch64.patch + source = errno.patch source = 90-mgetty.rules source = mgetty@.service md5sums = 41a18c46845ff058d2848bc1aab6ab3b @@ -27,6 +26,7 @@ pkgbase = mgetty md5sums = c0f9ed08a1e9877f972cbd8a00cfd932 md5sums = ed732db6dde0859af7acb48e9c7aa136 md5sums = 8756ace492fb86ba70ed3a5c4b980b0b + md5sums = 86c3502f8bb05c240edb5cad0e11de9c md5sums = 4b73a5654db86a34a8dccdf5f55c699c md5sums = cbc70329924235e8f2e6302c859d59a6 @@ -15,6 +15,7 @@ source=(ftp://mgetty.greenie.net/pub/mgetty/source/1.2/${pkgname}-${pkgver}.tar. config.patch policy.patch aarch64.patch + errno.patch 90-mgetty.rules mgetty@.service) @@ -24,6 +25,7 @@ prepare() { patch -Np0 -i ../../config.patch patch -Np0 -i ../../policy.patch patch -p1 < ../../aarch64.patch + patch -p1 < ../../errno.patch } build() { @@ -48,5 +50,6 @@ md5sums=('41a18c46845ff058d2848bc1aab6ab3b' 'c0f9ed08a1e9877f972cbd8a00cfd932' 'ed732db6dde0859af7acb48e9c7aa136' '8756ace492fb86ba70ed3a5c4b980b0b' + '86c3502f8bb05c240edb5cad0e11de9c' '4b73a5654db86a34a8dccdf5f55c699c' 'cbc70329924235e8f2e6302c859d59a6') diff --git a/errno.patch b/errno.patch new file mode 100644 index 000000000000..0ca57cecbaac --- /dev/null +++ b/errno.patch @@ -0,0 +1,27 @@ +--- a/logfile.c 2021-03-25 17:13:53.772671030 -0400 ++++ b/logfile.c 2021-03-25 17:14:36.600122777 -0400 +@@ -55,14 +55,6 @@ + + extern int atexit _PROTO(( void (*)(void) )); + +-/* Most systems have these variables but do not declare them. On many +- of those systems that _do_ declare them, it won't hurt */ +- +-#if !defined(__NetBSD__) && !defined( __FreeBSD__ ) && !defined(__OpenBSD__) && !defined(__GLIBC__) && !defined(__MACH__) +-extern int sys_nerr; +-extern char *sys_errlist[]; +-#endif +- + /* Interactive Unix is a little bit braindead - does not have atexit(), + */ + #if defined(ISC) || defined(SVR4) || defined(_3B1_) || \ +@@ -332,8 +324,7 @@ + tm->tm_mon+1, tm->tm_mday, + tm->tm_hour, tm->tm_min, tm->tm_sec, + log_infix, ws, +- ( errnr <= sys_nerr ) ? sys_errlist[errnr]: +- "<error not in list>" ); ++ strerror(errno)); + #ifdef SYSLOG + syslog( level == L_FATAL? LOG_ALERT: LOG_ERR, "%s: %m", ws ); + #endif |