X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by lists.alpinelinux.org (Postfix) with ESMTP id 772635C4E06 for ; Tue, 23 Jan 2018 14:26:35 +0000 (GMT) Received: by mail-wm0-f67.google.com with SMTP id f71so2228639wmf.0 for ; Tue, 23 Jan 2018 06:26:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=cgmdq20DtMV5nquaESYAvo9eIyVszXktlSvr99/jPhQ=; b=XVwRnsluJHTURf7HEuLs+rtKSc5xcdHiPNDYM+jhAXd6SVZ6X6mkIvW7DHMXjJ1cn/ AcTaV1BxYXZJzLDacYLBpV9Q2ikFVNv6uGB/A0ZRLWarB2pJM/zt688OkhoW1JVuw4+k 0twfLNpN/SEPgw6HOo0hQTp7GbNxBNlF2s3z14jF6dIc2g7OL7MgUj0PGs3X9IEu4coT 12L7S7ixzOe1y9MkXL14a6TDcnOQlKwuX8UVer13C9AVRbXooiLo1IxYvb0bzM0WQ18k O9IYX7cjTcLodAccH7lyeTr3OwZi0WJQntdVAOzea7GvjnRM7qF4VxknGhP3Yf9+3Cwd lFPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cgmdq20DtMV5nquaESYAvo9eIyVszXktlSvr99/jPhQ=; b=aChiq7mlPakjhe8aGGUwsPnARlVCPCJYobeo3019A/Vxkdsc0dunbjgBEYisk98ZSE /a933D54fanqgqSnpp5ktN24VHsYUxbuT2CMBzfg+e/CklrGEQSMvk4IAqlZyl7FCsYR 0DXWDHvWzYUaoEX6tbWZUuOZiLPfiAhk1z7/tXyNVNYl+V8SdaQc/b2RTbJI3oGxyUPZ gcW9yieJnJTRKsDKp4FgvFjYB+cjRuWKK7B72KOjIPIj4h6UxrfaPaxfbTZ7vGO0ogUT 39jh0qJcfq2IkW4q1J5C1UXovrnBOcA8tTcqt/IKoZXfe9eu1+bnsBH5KcDY6sZxwhvL 8v8A== X-Gm-Message-State: AKwxyte5MWrz+f6WR1Y+kKp+c158YpuKJ+fNx9kJPWsjNnq+lsSNEGiK xAE6OcaXdnG830Jw57iYObulpIxbVSFGGj1e2jqloA== X-Google-Smtp-Source: AH8x224BjB7IuOIge24n1Ph2WwRxe4dWAzuAOo7d1I24t1doxXh0NFCv3Mb1VjGNLP6eevSnJKL/Oo9z1Gn0NeWTZQo= X-Received: by 10.28.194.137 with SMTP id s131mr2357926wmf.3.1516717594545; Tue, 23 Jan 2018 06:26:34 -0800 (PST) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.223.179.17 with HTTP; Tue, 23 Jan 2018 06:26:14 -0800 (PST) From: Martin Galvan Date: Tue, 23 Jan 2018 11:26:14 -0300 Message-ID: Subject: [alpine-devel] APKBUILD for kernel modules To: alpine-devel@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" Hi everyone, I'm trying to write an APKBUILD script for a package that contains a kernel module. Since there seems to be no documentation about this, I've been looking at some examples (the *-hardened packages), and I've seen that, if I understood correctly, all of them set a kernel version (_kver) and refuse to build unless linux-$_flavor/APKBUILD's pkgver matches _kver. Every time a new kernel version comes out, the APKBUILD has to be updated to match the new kernel version. Is this done just to make sure the maintainer is aware of kernel changes, and has to at least indicate so in the APKBUILD? What if we wanted to distribute a module that worked on multiple kernel versions? As a side note, I saw that the APKBUILDs look for linux-$_flavor/APKBUILD in a relative path. I assume this means they'll always run from wherever they're located in the aports tree, but I saw that e.g. https://git.alpinelinux.org/cgit/aports/tree/testing/ipt-netflow-hardened/APKBUILD looks in testing for linux-$_flavor, which I didn't find. Does that mean it'll always fail? Finally, I saw that for failure cases there seems to be a 'die' function that looks like perl's. Where can I find its definition? Is it documented anywhere? --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---