Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

FL-534: kmod patch for ARM

  • Loading branch information...
commit 66dee8e1a25bcaf838022b3a8c394af10a36e687 1 parent 954d735
Jean-Francis Roy jeanfrancisroy authored
1  sys-apps/kmod/Manifest
... ... @@ -1,2 +1 @@
1   -DIST kmod-12.tar.xz 1275028 SHA256 c6189dd8c5a1e8d9224e8506bd188c0cd5dfa119fd6b7e5869b3640cbe8bf92f SHA512 f24bb25812b1902736f875bd3d7f995fa42a50cb7208b0d79a82fb5915223cf78e41018d5bc2cd1088acad5dc8e3dd737876262f4acde6479936c4e04223b629 WHIRLPOOL cde992a543945670992813ce142aa96bd94cc719f539b4734a7c2251b2918622e60a027531d5b430c872e58f28a153d3d2b4b90babe3e4b0f3c262afb09b7116
2 1 DIST kmod-13.tar.xz 1435864 SHA256 6c36d3abba2f98c84973ae275951c866f8bf304e7356c2fe60633800239d7956 SHA512 6182a043c32944c2dc336101e4d8a9be9ccd0106677f9f7a2e76b83a09ec2fc1333aed9b82773abe09f8adb1771e796690f1610c64b337e21bdabffe76fed434 WHIRLPOOL 95196f4c65fec778727a9b8d0209dcb08e64280b4b5d6e88b5343acb3a360b62c13a0dcf510d3c2080fad4ef1562c5e9fa11f84979d0acee03dab3fac8b3eaac
40 sys-apps/kmod/files/kmod-13-dont-call-syscall.patch
... ... @@ -0,0 +1,40 @@
  1 +From 38829712e5c411bc250aeae142fc6bf06e794d58 Mon Sep 17 00:00:00 2001
  2 +From: Lucas De Marchi <lucas.de.marchi@gmail.com>
  3 +Date: Thu, 02 May 2013 16:22:57 +0000
  4 +Subject: missing: Don't call syscall() with syscallno == -1
  5 +
  6 +Reported-by: Jean-Francis Roy <jeanfrancis@funtoo.org>
  7 +Reported-by: Jan Luebbe <jlu@pengutronix.de>
  8 +---
  9 +diff --git a/libkmod/missing.h b/libkmod/missing.h
  10 +index edb88b9..b31af84 100644
  11 +--- a/libkmod/missing.h
  12 ++++ b/libkmod/missing.h
  13 +@@ -1,5 +1,6 @@
  14 + #pragma once
  15 +
  16 ++#include <errno.h>
  17 + #include <unistd.h>
  18 + #include <sys/syscall.h>
  19 +
  20 +@@ -15,13 +16,14 @@
  21 + # define MODULE_INIT_IGNORE_VERMAGIC 2
  22 + #endif
  23 +
  24 +-#ifndef __NR_finit_module
  25 +-# define __NR_finit_module -1
  26 +-#endif
  27 +-
  28 + #ifndef HAVE_FINIT_MODULE
  29 + static inline int finit_module(int fd, const char *uargs, int flags)
  30 + {
  31 ++#ifndef __NR_finit_module
  32 ++ errno = ENOSYS;
  33 ++ return -1;
  34 ++#else
  35 + return syscall(__NR_finit_module, fd, uargs, flags);
  36 ++#endif
  37 + }
  38 + #endif
  39 +--
  40 +cgit v0.9.1
2  sys-apps/kmod/kmod-13.ebuild
@@ -45,6 +45,8 @@ pkg_setup() {
45 45
46 46 src_prepare()
47 47 {
  48 + epatch ${FILESDIR}/${P}-dont-call-syscall.patch
  49 +
48 50 if [ ! -e configure ]; then
49 51 if use doc; then
50 52 gtkdocize --copy --docdir libkmod/docs || die

0 comments on commit 66dee8e

Please sign in to comment.
Something went wrong with that request. Please try again.