matebook-e-dsi-dkms

LOW
maintainer hockinglee 0 votes scanned 2026-09-06 11:10:51.811965
View on AUR
Why flagged

The package builds a DKMS module from a vendored i915 driver sourced from kernel.org, which is a legitimate and expected use of external kernel sources; the flagged low votes and recent upload are minor trust indicators but do not imply malicious behavior.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Low AI review llm_review

An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package builds a DKMS module from a vendored i915 driver sourced from kernel.org, which is a legitimate and expected use of external kernel sources; the flagged low votes and recent upload are minor trust indicators but do not imply malicious behavior.

PKGBUILD

1# Maintainer: hocking <hockinglee@gmail.com>
2
3pkgname=matebook-e-dsi-dkms
4pkgver=1.0.0
5pkgrel=1
6
7# 内核源码版本。i915 是树内模块, 本包把它整个 vendored 出来做树外编译, 所以
8# 这份源码必须与你运行的内核足够接近 —— 同一个 x.y 系列基本没问题, 跨系列
9# (7.2 -> 7.3) 通常会编不过。Arch 升级内核系列时, 改这一行与 pkgver, 重新
10# 生成 .SRCINFO 即可。
11_kernelver=7.2.3
12
13pkgdesc="i915 with the DSI fixes for the HUAWEI MateBook E 2023 (DRR-W56) dual link command mode panel"
14arch=(x86_64)
15url="https://bbs.archlinux.org/viewtopic.php?id=303555"
16license=('GPL-2.0-only')
17depends=(dkms)
18makedepends=(libarchive)
19optdepends=('linux-headers: build against the stock kernel')
20install=$pkgname.install
21source=("https://cdn.kernel.org/pub/linux/kernel/v${_kernelver%%.*}.x/linux-$_kernelver.tar.xz"
22 matebook-e-dsi.patch
23 dkms.conf
24 Makefile
25 zz-matebook-e-dsi-initramfs.hook)
26noextract=("linux-$_kernelver.tar.xz")
27sha256sums=('8ba259e8e7b13ec6ef0941c8a39ad90b24bd4a4d6c0010ba6bafb794550ecd03'
28 '882842e895d3c8f746d58e895a406519c666a06612d425b3f38cf4ca907e0b04'
29 '9235910fe420c8a47588595ffaeba65cbfcf3c31e977c78177dc7b38c227d79b'
30 '6ac1507b11f32ec557e27d81315dbc883ae58904cd00f789a7d2cdd13468a1b6'
31 '6deef16bacc6bedb394b223d1fcadc35222143c5723fdbc9a251dedb3b50de9a')
32
33_tree="$pkgname-$pkgver-tree"
34
35prepare() {
36 cd "$srcdir"
37 rm -rf "$_tree"; mkdir -p "$_tree"
38
39 # 只取需要的部分: i915 目录本身, 外加 i915_driver.c 通过
40 # ../../../platform/x86/intel_ips.h 引用的那一个头文件。
41 bsdtar -xf "linux-$_kernelver.tar.xz" -C "$_tree" --strip-components=1 \
42 "linux-$_kernelver/drivers/gpu/drm/i915" \
43 "linux-$_kernelver/drivers/platform/x86/intel_ips.h"
44
45 patch -p1 -d "$_tree" < matebook-e-dsi.patch
46
47 # TRACE_INCLUDE_PATH 在内核树里写死为 ../../drivers/gpu/drm/i915, 树外
48 # 解析不到。define_trace.h 用尖括号包含, 而 i915 的 Makefile 本来就有
49 # subdir-ccflags-y += -I$(src), 所以改成「相对 i915 根目录的子目录」即可。
50 local i="$_tree/drivers/gpu/drm/i915" f d p
51 for f in $(grep -rl 'define TRACE_INCLUDE_PATH' "$i"); do
52 d=$(dirname "${f#$i/}")
53 [ "$d" = . ] && p=. || p=$d
54 sed -i "s|^#define TRACE_INCLUDE_PATH .*|#define TRACE_INCLUDE_PATH $p|" "$f"
55 done
56
57 install -m644 Makefile "$_tree/Makefile"
58 sed "s/@PKGVER@/$pkgver/" dkms.conf > "$_tree/dkms.conf"
59}
60
61package() {
62 install -dm755 "$pkgdir/usr/src/matebook-e-dsi-$pkgver"
63 cp -a "$srcdir/$_tree/." "$pkgdir/usr/src/matebook-e-dsi-$pkgver/"
64
65 install -Dm644 "$srcdir/zz-matebook-e-dsi-initramfs.hook" \
66 "$pkgdir/usr/share/libalpm/hooks/zz-matebook-e-dsi-initramfs.hook"
67}
68

Scan history

Scanned at (UTC)SeverityRules
2026-09-06 11:10:51 Low 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion