Skip to content

gdu: add new package#29337

Open
graysky2 wants to merge 1 commit into
openwrt:masterfrom
graysky2:gdu
Open

gdu: add new package#29337
graysky2 wants to merge 1 commit into
openwrt:masterfrom
graysky2:gdu

Conversation

@graysky2

@graysky2 graysky2 commented May 7, 2026

Copy link
Copy Markdown
Contributor

📦 Package Details

Maintainer: me
(You can find this by checking the history of the package Makefile.)

Description:

Gdu is the modern equivalent of ncdu, and is much faster returning results particularly on solid-state disks thanks to its utilization of parallel processing, period. It is perfectly fine for HDDs as well, but the performance gains are not on the same order of magnitude[1].

Beyond the speed benefits, it's worth noting that. The OpenWRT package for ncdu builds the version that is written in C[2] rather than the version written in zig which is faster. Merging gdu would allow the best option of supplying a fast alternative without the need for a host package for zig.

Includes a patch to read from /etc/gdu.yaml which has been merged upstream[3].

  1. https://github.com/dundee/gdu#cold-cache
  2. https://github.com/openwrt/packages/blob/master/utils/ncdu/Makefile#L11
  3. feat: load /etc/gdu.yaml as system-wide config dundee/gdu#567

🧪 Run Testing Details

  • OpenWrt Version: SNAPSHOT
  • OpenWrt Target/Subtarget: x86/64-glibc
  • OpenWrt Device: Intel N150

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

If your PR contains a patch:

  • It can be applied using git am
  • It has been refreshed to avoid offsets, fuzzes, etc., using
    make package/<your-package>/refresh V=s
  • It is structured in a way that it is potentially upstreamable
    (e.g., subject line, commit description, etc.)
    We must try to upstream patches to reduce maintenance burden.

@BKPepe BKPepe requested a review from Copilot May 8, 2026 05:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a new OpenWrt package for gdu (Go-based disk usage analyzer) and ships a default configuration to improve terminal compatibility.

Changes:

  • Introduces utils/gdu/Makefile to build/install gdu via the Go packaging helpers
  • Adds a default gdu YAML config that disables Unicode symbols

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
utils/gdu/Makefile New OpenWrt package definition, Go build configuration, install + conffiles handling
utils/gdu/files/gdu.yaml Adds a default .gdu.yaml config (disables Unicode)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread utils/gdu/Makefile Outdated
Comment thread utils/gdu/Makefile Outdated
Comment thread utils/gdu/files/gdu.yaml Outdated
@GeorgeSapkin

Copy link
Copy Markdown
Member

Just in case, the CI won't pass without:

Comment thread utils/gdu/Makefile Outdated
Comment thread utils/gdu/Makefile Outdated
@graysky2 graysky2 force-pushed the gdu branch 2 times, most recently from 3e97272 to c6b9f6c Compare May 9, 2026 13:53
@graysky2

graysky2 commented May 9, 2026

Copy link
Copy Markdown
Contributor Author

Fixed the permissions on /etc/gdu.yaml ... should be good now

Gdu is the modern equivalent of ncdu, and is much faster returning results
particularly on solid-state disks thanks to its utilization of parallel
processing, period. It is perfectly fine for HDDs as well, but the
performance gains are not on the same order of magnitude[1].

Beyond the speed benefits, it's worth noting that. The OpenWRT package
for ncdu builds the version that is written in C[2] rather than the version
written in zig which is faster. Merging gdu would allow the best option
of supplying a fast alternative without the need for a host package for
zig.

Includes a patch to read from /etc/gdu.yaml which has been merged upstream[3].

1. https://github.com/dundee/gdu#cold-cache
2. https://github.com/openwrt/packages/blob/master/utils/ncdu/Makefile#L11
3. dundee/gdu#567

Signed-off-by: John Audia <therealgraysky@proton.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants