archivers/liblz4: fix build failure on DragonFly#1541
Closed
dragonflybot wants to merge 1 commit into
Closed
Conversation
> Generated by the DragonFly agentic build-fix loop and verified in a clean dev-env. Reviewed and accepted by operator `operator` before submission.
## Problem
The build failed on `@2026Q2` — classified `patch-error`, confidence `high`.
A DragonFly‑specific post‑patch step (likely from a Makefile in the DeltaPorts overlay) invokes `sed` on file paths that incorrectly include a `../../` prefix, causing it to resolve outside the source tree. The missing file error (`No such file or directory`) occurs because the constructed path `/construction/archivers/liblz4/lz4-1.10.0/../../Makefile` points to `/construction/archivers/liblz4/Makefile` instead of the intended `${WRKSRC}/Makefile`. This is not a static patch‑hunk failure; the sed command itself is flawed.
**Evidence:**
- **Exact error line:**
`sed: /construction/archivers/liblz4/lz4-1.10.0/../../Makefile: No such file or directory`
- **The failing command shown in the log:**
`/usr/bin/sed -i.bak 's|GNU FreeBSD|GNU FreeBSD DragonFly|' /construction/archivers/liblz4/lz4-1.10.0/../../Makefile /construction/archivers/liblz4/lz4-1.10.0/../../lib/Makefile /construction/archivers/liblz4/lz4-1.10.0/../../programs/Makefile`
Both clearly show that the sed operation is acting on paths that escape `WRKSRC` by an extra two levels.
## Fix
Automated fix for the build failure in `archivers/liblz4`.
## What changed
2 files changed, +11/-6
- `ports/archivers/liblz4/Makefile.DragonFly`
- `ports/archivers/liblz4/overlay.dops`
## Verification
Built successfully in a DragonFly dev-env (dsynth) for target `@2026Q2`.
Verified 2026-05-28T11:42:12.098923+00:00.
## Provenance
- Operator: operator
- Agent: model=deepseek/deepseek-v4-pro attempts=1 tokens=157183
Signed-off-by: Fred [bot] <github@dragonflybsd.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The build failed on
@2026Q2— classifiedpatch-error, confidencehigh.A DragonFly‑specific post‑patch step (likely from a Makefile in the DeltaPorts overlay) invokes
sedon file paths that incorrectly include a../../prefix, causing it to resolve outside the source tree. The missing file error (No such file or directory) occurs because the constructed path/construction/archivers/liblz4/lz4-1.10.0/../../Makefilepoints to/construction/archivers/liblz4/Makefileinstead of the intended${WRKSRC}/Makefile. This is not a static patch‑hunk failure; the sed command itself is flawed.Evidence:
sed: /construction/archivers/liblz4/lz4-1.10.0/../../Makefile: No such file or directory/usr/bin/sed -i.bak 's|GNU FreeBSD|GNU FreeBSD DragonFly|' /construction/archivers/liblz4/lz4-1.10.0/../../Makefile /construction/archivers/liblz4/lz4-1.10.0/../../lib/Makefile /construction/archivers/liblz4/lz4-1.10.0/../../programs/MakefileBoth clearly show that the sed operation is acting on paths that escape
WRKSRCby an extra two levels.Fix
Automated fix for the build failure in
archivers/liblz4.What changed
2 files changed, +11/-6
ports/archivers/liblz4/Makefile.DragonFlyports/archivers/liblz4/overlay.dopsVerification
Built successfully in a DragonFly dev-env (dsynth) for target
@2026Q2.Verified 2026-05-28T11:42:12.098923+00:00.
Provenance