From 0ba96395dbc7d7ec6ac97860981d9a56dc34bb79 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 8 Jan 2020 16:03:02 -0500 Subject: [PATCH] debian/patches: update for 1.45.5-2 release Signed-off-by: Theodore Ts'o --- ...deal-with-the-fact-that-the-Hurd-error-messages | 50 ++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 51 insertions(+) create mode 100644 debian/patches/0001-libcom_err-deal-with-the-fact-that-the-Hurd-error-messages create mode 100644 debian/patches/series diff --git a/debian/patches/0001-libcom_err-deal-with-the-fact-that-the-Hurd-error-messages b/debian/patches/0001-libcom_err-deal-with-the-fact-that-the-Hurd-error-messages new file mode 100644 index 0000000..d50c39f --- /dev/null +++ b/debian/patches/0001-libcom_err-deal-with-the-fact-that-the-Hurd-error-messages @@ -0,0 +1,50 @@ +From 00179a29867b72c47e074d8e0babe6622d074dba Mon Sep 17 00:00:00 2001 +From: Theodore Ts'o +Date: Wed, 8 Jan 2020 10:59:37 -0500 +Subject: [PATCH] libcom_err: deal with the fact that the Hurd error messages + are not zero-based + +Signed-off-by: Theodore Ts'o +--- + debian/changelog | 9 +++++++++ + lib/et/error_message.c | 13 +++++++++---- + 2 files changed, 18 insertions(+), 4 deletions(-) + +diff --git a/lib/et/error_message.c b/lib/et/error_message.c +index bd18be78..cd9f57f5 100644 +--- a/lib/et/error_message.c ++++ b/lib/et/error_message.c +@@ -113,6 +113,11 @@ gettextf set_com_err_gettext(gettextf new_proc) + return x; + } + ++#ifdef __GNU__ ++#define SYS_ERR_BASE 0x40000000 ++#else ++#define SYS_ERR_BASE 0 ++#endif + + const char * error_message (errcode_t code) + { +@@ -124,14 +129,14 @@ const char * error_message (errcode_t code) + + offset = (int) (code & ((1<