Skip to content

New packages: gdnsd-3.8.3#58943

Merged
Duncaen merged 1 commit intovoid-linux:masterfrom
jailbird777:gdnsd
Mar 21, 2026
Merged

New packages: gdnsd-3.8.3#58943
Duncaen merged 1 commit intovoid-linux:masterfrom
jailbird777:gdnsd

Conversation

@jailbird777
Copy link
Copy Markdown
Contributor

Testing the changes

  • I tested the changes in this PR: YES

New package

Local build testing

  • I built this PR locally for my native architecture, aarch64-glibc
  • I built this PR locally for these architectures (if supported. mark crossbuilds):
    • aarch64-musl

@tranzystorekk tranzystorekk added the new-package This PR adds a new package label Feb 11, 2026
--disable-silent-rules
--with-rundir=/run/gdnsd"
hostmakedepends="automake pkg-config"
makedepends="libunwind-devel libmaxminddb-devel perl xz
Copy link
Copy Markdown
Member

@Duncaen Duncaen Mar 21, 2026

Choose a reason for hiding this comment

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

perl and xz in makedepends seems wrong, since its not failing to build it seems like they are not required. And if they would be required they wouldn't be executable during cross builds.

packages that need to be executed during the build process should be in hostmakedepends and since perl and xz aren't -devel packages that would be used during the build process for linking I'm not sure why they are there.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

perl is listed as required in the configure.ac: https://github.com/gdnsd/gdnsd/blob/eefb032e171ed2f6f20b93cdcc09b04d0e45e78d/configure.ac#L254-L262

xz is also, but it says that it's used for tests, which we're disabling anyways, so it makes sense to remove that.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok, it worked before because automake in hostmakedepends depends on perl so it was implictly pulled into hostmakedepends, but now its more correct and avoids installing perl needlessly for the target architecture.

@jailbird777 jailbird777 force-pushed the gdnsd branch 2 times, most recently from f7ac3b1 to 6c7d55e Compare March 21, 2026 20:50
_gdnsd_homedir="/var/lib/gdnsd"

make_dirs="/var/lib/gdnsd 0750 _gdnsd _gdnsd
/etc/gdnsd 0750 _gdnsd _gdnsd"
Copy link
Copy Markdown
Member

@Duncaen Duncaen Mar 21, 2026

Choose a reason for hiding this comment

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

Does the user _gdnsd really need write permissions here (/etc/gdnsd)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point. I fixed that, and while I was at it, changed the home dir to /var/empty

checksum=16a81836273dcbc17e5527df2214e8664d0545bb18b55f08325710de10c8f64d

system_accounts="_gdnsd"
_gdnsd_homedir="/var/empty"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thats the default so it can be removed.

Suggested change
_gdnsd_homedir="/var/empty"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done! Thanks for all of the help!


system_accounts="_gdnsd"

make_dirs="/etc/gdnsd 0550 _gdnsd _gdnsd"
Copy link
Copy Markdown
Member

@Duncaen Duncaen Mar 21, 2026

Choose a reason for hiding this comment

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

No wait this is not what i was thinking, Generally we keep the root user the owner and the less privileged users group the group so that its able to read the file, but not edit, while root doesn't get bothered.

Assuming it contains secrets, otherwise just changing the owner or making this unreadable by others doesn't make sense.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Makes sense!

make_dirs="/etc/gdnsd 0750 root _gdnsd"

Sound better?

@Duncaen Duncaen merged commit dcafdd0 into void-linux:master Mar 21, 2026
8 checks passed
@jailbird777 jailbird777 deleted the gdnsd branch March 21, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-package This PR adds a new package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants