diff options
author | 2025-01-07 21:22:22 +0100 | |
---|---|---|
committer | 2025-01-07 21:22:22 +0100 | |
commit | 25998cb07d913ea786ede3c6fa4929033a608340 (patch) | |
tree | f4b157788a36162c4712c278b422213dc37cee87 /sys-kernel | |
parent | sys-kernel/vtty: patches for 6.12 kernel (diff) | |
download | ebuilds-25998cb07d913ea786ede3c6fa4929033a608340.tar.xz |
sys-kernel/vtty: add 0_p20250105, drop 0_p20230917-r1
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/vtty/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/vtty/files/0001-vtty_write-with-size_t-counts-for-v6.6.patch | 32 | ||||
-rw-r--r-- | sys-kernel/vtty/files/0002-remove-no_llseek-for-v6.12.patch | 31 | ||||
-rw-r--r-- | sys-kernel/vtty/vtty-0_p20250105.ebuild (renamed from sys-kernel/vtty/vtty-0_p20230917-r1.ebuild) | 7 |
4 files changed, 2 insertions, 70 deletions
diff --git a/sys-kernel/vtty/Manifest b/sys-kernel/vtty/Manifest index dff9885..df35e00 100644 --- a/sys-kernel/vtty/Manifest +++ b/sys-kernel/vtty/Manifest @@ -1 +1 @@ -DIST vtty-0_p20230917.tar.gz 19947 BLAKE2B e9c2623828f46625746fe4a436f6a89ba2fedd4d157f07273160a5658d08c351c515da72651fc942c969369fadf267737d6ea46fc83106d825cb208201575540 SHA512 f71f0175bce4756bc8a589aea0e8a75b92ebbf6bf3c276598aac046933621185867f6b449de12e4c79a8a8695522a83511ea9418a941eb8f99c3e58f52a1a98b +DIST vtty-0_p20250105.tar.gz 19973 BLAKE2B 0856f6b4338ababf34554e335b78810d0d3d887ed1c099a53383f6d8640adee57ed514fc12a51962eb88bb6fc98e303aafd3bdf54d4120c55c17343191d06e63 SHA512 fe3c32ab785b516bd07db5a11f035b8c0f4b93adade2329c353031ac6a09c2aa137279ac5090a8628cf053d23dd0761cb9ba45e70df26431cb0601c171af0af7 diff --git a/sys-kernel/vtty/files/0001-vtty_write-with-size_t-counts-for-v6.6.patch b/sys-kernel/vtty/files/0001-vtty_write-with-size_t-counts-for-v6.6.patch deleted file mode 100644 index 49dc6ba..0000000 --- a/sys-kernel/vtty/files/0001-vtty_write-with-size_t-counts-for-v6.6.patch +++ /dev/null @@ -1,32 +0,0 @@ -From c5d9c7c52b958fa62c1a8680e9bf5c1170bfa03d Mon Sep 17 00:00:00 2001 -From: Terin Stock <terin@terinstock.com> -Date: Sun, 5 Jan 2025 19:50:24 +0100 -Subject: [PATCH 1/2] vtty_write with size_t counts for v6.6 - -As of Linux v6.6 the definition for tty_operations::write uses size_t to -unify with other tty_operations. - -Signed-off-by: Terin Stock <terin@terinstock.com> ---- - vtty.c | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/vtty.c b/vtty.c -index b3c6c65..e086bd1 100644 ---- a/vtty.c -+++ b/vtty.c -@@ -105,7 +105,11 @@ static void vtty_close(struct tty_struct *tty, struct file *filp) - return; - } - -+#if LINUX_VERSION_CODE > KERNEL_VERSION(6,6,0) -+static ssize_t vtty_write(struct tty_struct *tty, const u8 *buf, size_t count) -+#else - static int vtty_write(struct tty_struct *tty, const unsigned char *buf, int count) -+#endif - { - // the TTY layer manages -EAGAIN and (non-)blocking writes - struct vtty_port *port = &ports[tty->index]; --- -2.45.2 - diff --git a/sys-kernel/vtty/files/0002-remove-no_llseek-for-v6.12.patch b/sys-kernel/vtty/files/0002-remove-no_llseek-for-v6.12.patch deleted file mode 100644 index 19f3437..0000000 --- a/sys-kernel/vtty/files/0002-remove-no_llseek-for-v6.12.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 7ab72cec2dbb59f0963d55f27cbc57025fc6f579 Mon Sep 17 00:00:00 2001 -From: Terin Stock <terin@terinstock.com> -Date: Sun, 5 Jan 2025 19:51:05 +0100 -Subject: [PATCH 2/2] remove no_llseek for v6.12 - -As of Linux v6.0 all calls to ->llseek are called through vfs_llseek and -setting no_llseek is equivalent to leaving it as NULL. The definition of -no_llseek was removed in v6.12. - -Signed-off-by: Terin Stock <terin@terinstock.com> ---- - vtty.c | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/vtty.c b/vtty.c -index e086bd1..7931cde 100644 ---- a/vtty.c -+++ b/vtty.c -@@ -684,7 +684,9 @@ static long vtmx_ioctl(struct file * filp, unsigned int cmd, unsigned long arg) - - static struct file_operations vtmx_fops = { - .owner = THIS_MODULE, -+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,0,0) - .llseek = no_llseek, -+#endif - .read = vtmx_read, - .write = vtmx_write, - .poll = vtmx_poll, --- -2.45.2 - diff --git a/sys-kernel/vtty/vtty-0_p20230917-r1.ebuild b/sys-kernel/vtty/vtty-0_p20250105.ebuild index a59aa5c..00180ca 100644 --- a/sys-kernel/vtty/vtty-0_p20230917-r1.ebuild +++ b/sys-kernel/vtty/vtty-0_p20250105.ebuild @@ -6,7 +6,7 @@ inherit linux-mod-r1 udev DESCRIPTION="Virtual serial port kernel module" HOMEPAGE="https://github.com/anszom/vtty" -COMMIT="49f3fb0ba5f062771d06182d24c2b525e4b67dea" +COMMIT="7ab72cec2dbb59f0963d55f27cbc57025fc6f579" SRC_URI="https://github.com/anszom/vtty/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}/${PN}-${COMMIT}" @@ -17,11 +17,6 @@ KEYWORDS="~amd64" RDEPEND="virtual/udev" DEPEND="${RDEPEND}" -PATCHES=( - "${FILESDIR}"/0001-vtty_write-with-size_t-counts-for-v6.6.patch - "${FILESDIR}"/0002-remove-no_llseek-for-v6.12.patch -) - src_compile() { local modlist=( vtty ) local modargs=( KDIR="${KV_OUT_DIR}" ) |