Skip to content

Conversation

@octo-sts
Copy link
Contributor

@octo-sts octo-sts bot commented Dec 31, 2025

Commit: 445a6fcd5c05541c8ce5a2cc8e605f36deee7b62

Note: If you need to make manual changes to this PR, apply the skip:staging-update-bot label so the reconciler won't overwrite them.

@octo-sts octo-sts bot added automated pr datadog-agent-7.73 request-version-update request for a newer version of a package labels Dec 31, 2025
@octo-sts
Copy link
Contributor Author

octo-sts bot commented Dec 31, 2025

📦 Build Failed: Missing Dependency

curl: command not found

Build Details

Category Details
Build System shell/bash
Failure Point curl -L https://www.tcpdump.org/release/libpcap-1.10.5.tar.xz

Root Cause Analysis 🔍

The curl command is not available in the build environment, preventing the download of libpcap-1.10.5.tar.xz. This causes subsequent tar extraction to fail with 'File format not recognized' because tar is reading from an empty stdin instead of the expected compressed data.


🔍 Build failure fix suggestions

Found similar build failures that have been fixed in the past and analyzed them to suggest a fix:

Similar PRs with fixes

Suggested Changes

File: datadog-agent-7.73.yaml

  • addition at line around line 82 (environment.contents.packages section)
    Original:
      - wget # Required for downloading clang-12 and kernel headers from debian

Replacement:

      - wget # Required for downloading clang-12 and kernel headers from debian
      - curl

Content:

Add curl to the packages list
Click to expand fix analysis

Analysis

Looking at the similar fixed build failure, the pattern is clear: when builds fail with "curl: command not found" or "/bin/sh: curl: not found", the solution is to add the curl package to the environment dependencies. In the wasi-libc.yaml fix, they added "wasi-sdk-libclang-rt-builtins" to resolve a different dependency issue, but the root cause pattern is the same - missing build dependencies that need to be explicitly declared in the environment.contents.packages section.

Click to expand fix explanation

Explanation

The build failure occurs because the system is trying to execute curl -L https://www.tcpdump.org/release/libpcap-1.10.5.tar.xz | tar xJ but curl is not available in the build environment. While the melange file already includes wget for downloading clang-12 and kernel headers, it's missing curl which is apparently needed elsewhere in the build process (likely in the libpcap download step). Adding curl to the environment.contents.packages section will ensure it's available during the build, just like how other build tools (binutils, cmake, etc.) are explicitly listed as dependencies.

Click to expand alternative approaches

Alternative Approaches

  • Replace the curl command with wget since wget is already available: modify the build script to use 'wget -O- https://www.tcpdump.org/release/libpcap-1.10.5.tar.xz | tar xJ' instead of the curl command
  • Use a pipeline step to download the file first with wget, then extract it separately to avoid the pipe operation entirely

Was this comment helpful? Please use 👍 or 👎 reactions on this comment.

@octo-sts octo-sts bot added the ai/skip-comment Stop AI from commenting on PR label Dec 31, 2025
@AmberArcadia AmberArcadia self-assigned this Dec 31, 2025
Signed-off-by: Debasish Biswas <debasishbsws.dev@gmail.com>
@octo-sts octo-sts bot added bincapz/pass bincapz/pass Bincapz (aka. malcontent) scan didn't detect any CRITICALs on the scanned packages. manual/review-needed staging-approver-bot/manual-review-needed approver-bot/manual-review-needed labels Jan 6, 2026
@debasishbsws
Copy link
Member

Advisory already added

@debasishbsws debasishbsws requested a review from a team January 8, 2026 16:13
@debasishbsws debasishbsws enabled auto-merge (squash) January 8, 2026 16:14
Copy link
Member

@aborrero aborrero left a comment

Choose a reason for hiding this comment

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

LGTM.

@debasishbsws debasishbsws merged commit b6efb66 into main Jan 8, 2026
17 of 19 checks passed
@debasishbsws debasishbsws deleted the staging-update-bot/datadog-agent-7.73.yaml branch January 8, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai/skip-comment Stop AI from commenting on PR approver-bot/manual-review-needed automated pr bincapz/pass bincapz/pass Bincapz (aka. malcontent) scan didn't detect any CRITICALs on the scanned packages. datadog-agent-7.73 manual/review-needed request-version-update request for a newer version of a package staging-approver-bot/manual-review-needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants