diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-11-02 21:46:32 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-11-02 21:46:32 +0400 |
commit | bcf42e2effdd4b501bcb0c50df10ce29bcf281c7 (patch) | |
tree | 8438d436a5db2773a883769dd30ba7b0068bcb16 | |
parent | 4906b90a2d0a1ff40584a98f4c31a67585355d58 (diff) | |
download | util-linux-master.tar.gz |
-rw-r--r-- | debian/patches/libcommon-linux-specific.patch | 97 | ||||
-rw-r--r-- | debian/patches/series | 2 | ||||
-rw-r--r-- | debian/patches/ttydefaults.patch | 44 |
3 files changed, 143 insertions, 0 deletions
diff --git a/debian/patches/libcommon-linux-specific.patch b/debian/patches/libcommon-linux-specific.patch new file mode 100644 index 0000000..35f7cbf --- /dev/null +++ b/debian/patches/libcommon-linux-specific.patch @@ -0,0 +1,97 @@ +From: Igor Pashev <pashev.igor@gmail.com> +Date: Fri, 2 Nov 2012 21:10:05 +0400 +Subject: cpu_set_t is linux specific + +--- + lib/Makemodule.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: util-linux/lib/Makemodule.am +=================================================================== +--- util-linux.orig/lib/Makemodule.am 2012-11-02 21:20:44.083929864 +0400 ++++ util-linux/lib/Makemodule.am 2012-11-02 21:29:18.407698999 +0400 +@@ -5,7 +5,6 @@ + lib/at.c \ + lib/blkdev.c \ + lib/canonicalize.c \ +- lib/cpuset.c \ + lib/crc32.c \ + lib/env.c \ + lib/fileutils.c \ +@@ -20,13 +19,13 @@ + lib/randutils.c \ + lib/setproctitle.c \ + lib/strutils.c \ +- lib/sysfs.c \ + lib/tt.c \ + lib/wholedisk.c \ + lib/xgetpass.c + + if LINUX + libcommon_la_SOURCES += \ ++ lib/sysfs.c \ + lib/linux_version.c \ + lib/loopdev.c + endif +@@ -50,6 +49,7 @@ + + if LINUX + if HAVE_CPU_SET_T ++libcommon_la_SOURCES += lib/cpuset.c + check_PROGRAMS += test_cpuset + endif + check_PROGRAMS += \ +Index: util-linux/lib/path.c +=================================================================== +--- util-linux.orig/lib/path.c 2012-11-02 21:19:45.295248488 +0400 ++++ util-linux/lib/path.c 2012-11-02 21:26:20.318824314 +0400 +@@ -21,6 +21,8 @@ + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + ++#include <config.h> ++ + #include <stdarg.h> + #include <string.h> + #include <unistd.h> +@@ -28,7 +30,9 @@ + #include <errno.h> + + #include "all-io.h" ++#if HAVE_CPU_SET_T + #include "cpuset.h" ++#endif + #include "path.h" + #include "nls.h" + #include "c.h" +@@ -151,6 +155,7 @@ + return access(p, F_OK) == 0; + } + ++#if HAVE_CPU_SET_T + static cpu_set_t * + path_cpuparse(int maxcpus, int islist, const char *path, va_list ap) + { +@@ -208,6 +213,7 @@ + + return set; + } ++#endif /* HAVE_CPU_SET_T */ + + void + path_setprefix(const char *prefix) +Index: util-linux/include/path.h +=================================================================== +--- util-linux.orig/include/path.h 2012-11-02 20:15:39.867352056 +0400 ++++ util-linux/include/path.h 2012-11-02 21:25:22.660543877 +0400 +@@ -10,8 +10,10 @@ + __attribute__ ((__format__ (__printf__, 1, 2))); + extern int path_exist(const char *path, ...) + __attribute__ ((__format__ (__printf__, 1, 2))); ++#if HAVE_CPU_SET_T + extern cpu_set_t *path_cpuset(int, const char *path, ...) + __attribute__ ((__format__ (__printf__, 2, 3))); + extern cpu_set_t *path_cpulist(int, const char *path, ...) + __attribute__ ((__format__ (__printf__, 2, 3))); ++#endif + extern void path_setprefix(const char *); diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..0652da1 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +libcommon-linux-specific.patch +ttydefaults.patch diff --git a/debian/patches/ttydefaults.patch b/debian/patches/ttydefaults.patch new file mode 100644 index 0000000..7e92943 --- /dev/null +++ b/debian/patches/ttydefaults.patch @@ -0,0 +1,44 @@ +Index: util-linux/include/ttyutils.h +=================================================================== +--- util-linux.orig/include/ttyutils.h 2012-11-02 20:15:39.871976130 +0400 ++++ util-linux/include/ttyutils.h 2012-11-02 21:44:01.195709745 +0400 +@@ -11,6 +11,39 @@ + #define UL_TTY_KEEPCFLAGS (1 << 1) + #define UL_TTY_UTF8 (1 << 2) + ++#ifndef OXTABS ++#ifdef XTABS /* SMI uses XTABS. */ ++#define OXTABS XTABS ++#else ++#define OXTABS 0 ++#endif ++#endif ++ ++ ++#ifndef TTYDEF_IFLAG ++#define TTYDEF_IFLAG (BRKINT | ISTRIP | ICRNL | IMAXBEL | IXON | IXANY) ++#endif ++ ++#ifndef TTYDEF_OFLAG ++#define TTYDEF_OFLAG (OPOST | ONLCR | OXTABS) ++#endif ++ ++#ifndef TTYDEF_LFLAG ++#define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN | ECHOE | ECHOKE | ECHOCTL) ++#endif ++ ++#ifndef TTYDEF_CFLAG ++#define TTYDEF_CFLAG (CREAD | CS7 | PARENB | HUPCL) ++#endif ++ ++#ifndef CDISCARD ++#define CDISCARD CTRL('o') ++#endif ++ ++#ifndef CREPRINT ++#define CREPRINT CTRL('r') ++#endif ++ + static inline void reset_virtual_console(struct termios *tp, int flags) + { + /* Use defaults of <sys/ttydefaults.h> for base settings */ |