Skip to content

Conversation

@octo-sts
Copy link
Contributor

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

Commit: 48479fc35c985931ec5258d76f34957daf541ac4

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 request-version-update request for a newer version of a package s6 labels Dec 24, 2025
@octo-sts
Copy link
Contributor Author

octo-sts bot commented Dec 24, 2025

📦 Build Failed: Missing Dependency

skalibs/prog.h: No such file or directory

Build Details

Category Details
Build System make
Failure Point Compilation of src/supervision/s6-background-watch.c

Root Cause Analysis 🔍

Missing skalibs dependency - the build system cannot find the required header file skalibs/prog.h which is needed for compilation. This suggests the skalibs package is not installed or not properly linked in the build environment.


🔍 Build failure fix suggestions

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

Suggested Changes

File: melange.yaml

  • modification (Configure step)
    Original:
./configure \
  --enable-shared \
  --enable-static \
  --disable-allstatic \
  --prefix=/usr \
  --bindir=/usr/bin \
  --libdir=/usr/lib \
  --libexecdir=/usr/lib/s6 \
  --with-dynlib=/usr/lib

Replacement:

./configure \
  --enable-shared \
  --enable-static \
  --disable-allstatic \
  --prefix=/usr \
  --bindir=/usr/bin \
  --libdir=/usr/lib \
  --libexecdir=/usr/lib/s6 \
  --with-dynlib=/usr/lib \
  --with-include=/usr/include \
  --with-lib=/usr/lib

Content:

Add explicit include and library paths to configure
Click to expand fix analysis

Analysis

Since no similar build failures were provided for comparison, I analyzed the current error which indicates that the skalibs/prog.h header file cannot be found during compilation. The build environment includes skalibs-dev in the packages list, but the error suggests the headers are not being found in the expected location. This is a common issue when header files are installed in non-standard locations or when the compiler flags don't include the correct include paths.

Click to expand fix explanation

Explanation

The error indicates that skalibs/prog.h cannot be found during compilation. While skalibs-dev is correctly included in the build environment packages, the s6 configure script may not be finding the skalibs headers in the default location. The suggested fix adds explicit --with-include and --with-lib flags to the configure command, which are standard options for skarnet.org software packages (including s6) to specify where to find dependency headers and libraries. This should help the build system locate the skalibs headers that are installed by the skalibs-dev package in /usr/include.

Click to expand alternative approaches

Alternative Approaches

  • Set CPPFLAGS and LDFLAGS environment variables before configure to explicitly point to /usr/include and /usr/lib
  • Use pkg-config to automatically detect skalibs paths if skalibs provides pkg-config files
  • Verify skalibs-dev package installation and manually check header file locations in a separate pipeline step

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 24, 2025
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 automated pr request-version-update request for a newer version of a package s6

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant