AUR AI Reviewer

Review Results

Version #3254 of zramswap · commit 61a89eaaad63 · status Reviewed

Risk 0/5 · Safe .SRCINFO
Result #7034

Comment

The .SRCINFO change is low risk. It only updates pkgrel, changes the project URL to the Arch Wiki, and removes an explicit bash dependency from metadata. There are no new sources, no build-time execution changes, no install-script or systemd-unit modifications in the reviewed hunk, and no signs of integrity weakening beyond the metadata update. Based on this diff alone, I do not see a security issue.

@@ -1,17 +1,16 @@
 pkgbase = zramswap
 	pkgdesc = Sets up zram-based swap devices on boot
 	pkgver = 7
-	pkgrel = 2
-	url = https://en.wikipedia.org/wiki/Zram
+	pkgrel = 3
+	url = https://wiki.archlinux.org/title/Zram
 	arch = any
 	license = GPL
-	depends = bash
 	backup = etc/zramswap.conf
 	source = zramctrl
 	source = zramswap.conf
 	source = zramswap.service
 	sha256sums = fa8306b6110e07c89ac9790252db63f62300eae8bce1953da85d897383f78270
-	sha256sums = 02bc0f3e239e56e4bc4bf1e12dc8f17270c35e1f112ec0d1d0dd735f3ed91d72
+	sha256sums = 32b88ecc8b9b0d17d2aeb2326316487b210c2e9c5929063ee371c2e862a9c5d8
 	sha256sums = da2026d7b130b53e9acf41eeb2724e85e0a8f9d0868baae4a462b4a8e6925844
 
 pkgname = zramswap
Risk 0/5 · Safe PKGBUILD
Result #7035

Comment

The change is low risk. It only updates pkgrel, fixes the project URL to the Arch Wiki, removes an unnecessary bash dependency from the PKGBUILD metadata, refreshes the checksum for an existing source file, and switches install() calls to the equivalent -t form. No new sources, network access, privilege escalation, or suspicious packaging behavior is introduced.

@@ -9,12 +9,11 @@
 
 pkgname=zramswap
 pkgver=7
-pkgrel=2
+pkgrel=3
 pkgdesc="Sets up zram-based swap devices on boot"
 arch=("any")
-url="https://en.wikipedia.org/wiki/Zram"
+url="https://wiki.archlinux.org/title/Zram"
 license=("GPL")
-depends=("bash")
 backup=("etc/zramswap.conf")
 source=(
 	"zramctrl"
Risk 0/5 · Safe PKGBUILD
Result #7036

Comment

The change is limited to PKGBUILD metadata and packaging command syntax. It updates the checksum for an existing source file, bumps pkgrel, changes the project URL, and rewrites install commands to use `install -t` while still installing the same files to the same destinations under `$pkgdir`. There are no new sources, no network fetches, no privilege escalation, and no changes to the shipped service/script contents in this diff. Based on the reviewed hunk, this appears low risk.

@@ -23,12 +22,12 @@ source=(
 )
 sha256sums=(
 	"fa8306b6110e07c89ac9790252db63f62300eae8bce1953da85d897383f78270"
-	"02bc0f3e239e56e4bc4bf1e12dc8f17270c35e1f112ec0d1d0dd735f3ed91d72"
+	"32b88ecc8b9b0d17d2aeb2326316487b210c2e9c5929063ee371c2e862a9c5d8"
 	"da2026d7b130b53e9acf41eeb2724e85e0a8f9d0868baae4a462b4a8e6925844"
 )
 
 package() {
-	install -Dm755 zramctrl $pkgdir/usr/lib/systemd/scripts/zramctrl
-	install -Dm644 zramswap.conf $pkgdir/etc/zramswap.conf
-	install -Dm644 zramswap.service $pkgdir/usr/lib/systemd/system/zramswap.service
+	install -Dm755 -t "$pkgdir/usr/lib/systemd/scripts/" zramctrl
+	install -Dm644 -t "$pkgdir/etc/" zramswap.conf
+	install -Dm644 -t "$pkgdir/usr/lib/systemd/system/" zramswap.service
 }
Risk 0/5 · Safe zramswap.conf
Result #7037

Comment

The change only adjusts zramswap defaults in a config file: it lowers the default zram size percentage from 25 to 20 and switches the default compression algorithm from lz4 to zstd. This does not introduce code execution, network access, privilege escalation, persistence, or packaging integrity issues. The impact is limited to performance/memory tradeoffs and is within expected configuration behavior.

@@ -1,5 +1,5 @@
 SIZE=8
-RAM_PERCENT=25
+RAM_PERCENT=20
 # See: cat /sys/block/zram0/comp_algorithm
 # One of: lzo [lzo-rle] lz4 lz4hc 842 zstd
-ZRAM_COMPRESSION_ALGO=lz4
+ZRAM_COMPRESSION_ALGO=zstd