Skip to content

feat: add ldnsutils (drill) slices #554

Open

Description

@polarathene

drill has much less dependencies linked than dig (bind9-dnsutils_bins_) or kdig (no knot-dnsutils slice). In an image approx 50MB in size already (porting attempt to chisel here) with common shared dependencies, adding dig increased image weight by 47MB, while this custom slice for drill only adds 480KB (3 files).

I have not written a custom slice before this, and the below example that I pieced together seems accurate for drill, but from what I understand the slices must be aligned to a package name which would be a bit misleading as I've excluded anything unrelated to drill.

Sharing here in case it helps someone else :)


ldnsutils.yaml:

package: ldnsutils

essential:
  - ldnsutils_copyright

slices:
  bins:
    essential:
      - libc6_libs
      - libldns3t64_libs
    contents:
      /usr/bin/drill:

  copyright:
    contents:
      /usr/share/doc/ldnsutils/copyright:

libldns3t64.yaml:

package: libldns3t64

essential:
  - libldns3t64_copyright

slices:
  libs:
    essential:
      - libc6_libs
      - libidn2-0_libs
      - libssl3t64_libs
    contents:
      /usr/lib/*-linux-*/libldns.so.*:

  copyright:
    contents:
      /usr/share/doc/libldns3t64/copyright:

Activity

  1. cjdcordeiro commented on May 6, 2025

    @cjdcordeiro
    Collaborator

    Well done on your first slice definitions @polarathene ;)

    They actually look quite reasonable, so I'd encourage your to open a PR for them :)

    As for the drill <pkg_slice> naming, since that are many other bins in that package, I'd actually recommend creating a slice just for drill

    slices:
      drill:
        essential:
          - libc6_libs
          - libldns3t64_libs
        contents:
          /usr/bin/drill:

    I'll keep this issue open in case you want to raise a PR for it ;)

  2. lczyk commented on Aug 5, 2025

    @lczyk
    Collaborator

    @polarathene just heads up in case you'd like to raise the PR yourself :) otherwise will add it as a task for team backlog ( nice SDFs btw ^_^ )

  3. polarathene commented on Aug 7, 2025

    @polarathene
    Author

    Could you add it to the backlog please?

    I'm unfortunately quite swamped and not sure when I'd have time to contribute a PR.

  4. lczyk commented on Aug 12, 2025

    @lczyk
    Collaborator

    no problem 👍 will message here when in progress and close when done. internal ticket number ROCKS-2380

  5. changed the title [-]Add `drill` / `ldnsutils`[/-] [+]feat: add `ldnsutils` (`drill`) slices[/+] on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions