Skip to content

Conversation

@Dentrax
Copy link
Member

@Dentrax Dentrax commented Jul 18, 2025

Fixes:

Related:

Pre-review Checklist

For new package PRs only

  • This PR is marked as fixing a pre-existing package request bug
    • Alternatively, the PR is marked as related to a pre-existing package request bug, such as a dependency
  • REQUIRED - The package is available under an OSI-approved or FSF-approved license
  • REQUIRED - The version of the package is still receiving security updates
  • This PR links to the upstream project's support policy (e.g. endoflife.date)

For new version streams

  • The upstream project actually supports multiple concurrent versions.
  • Any subpackages include the version string in their package name (e.g. name: ${{package.name}}-compat)
  • The package (and subpackages) provides: logical unversioned forms of the package (e.g. nodejs, nodejs-lts)
  • If non-streamed package names no longer built, open PR to withdraw them (see WITHDRAWING PACKAGES)

For package updates (renames) in the base images

When updating packages part of base images (i.e. cgr.dev/chainguard/wolfi-base or ghcr.io/wolfi-dev/sdk)

  • REQUIRED cgr.dev/chainguard/wolfi-base and ghcr.io/wolfi-dev/sdk images successfully build
  • REQUIRED cgr.dev/chainguard/wolfi-base and ghcr.io/wolfi-dev/sdk contain no obsolete (no longer built) packages
  • Upon launch, does apk upgrade --latest successfully upgrades packages or performs no actions

For security-related PRs

  • The security fix is recorded in the advisories repo

For version bump PRs

  • The epoch field is reset to 0

For PRs that add patches

  • Patch source is documented

@Dentrax Dentrax force-pushed the font-xorg-part-2 branch 2 times, most recently from e14ed61 to ddcac59 Compare July 18, 2025 09:41
@octo-sts
Copy link
Contributor

octo-sts bot commented Jul 18, 2025

🔍 Build Failed: Checksum Verification Failed

fetch: Expected sha256 does not match found: 79abe361f58bb21ade9f565898e486300ce1cc621d5285bec26e14b6a8618fed

Build Details

Category Details
Build System melange
Failure Point SHA256 verification of downloaded file 'font-misc-misc-1.1.3.tar.xz'

Root Cause Analysis 🔍

The checksum of the downloaded file 'font-misc-misc-1.1.3.tar.xz' (79abe361f58bb21ade9f565898e486300ce1cc621d5285bec26e14b6a8618fed) does not match the expected checksum (b12359f4e12c23bcfcb448b918297e975fa91bef5293d88d3c25343cc768bb24). This suggests either the source file has been updated upstream without updating the package definition, or the download was corrupted.


🔍 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: font-xorg-miscmisc.yaml

  • replace at line 46 (pipeline.fetch.expected-sha256)
    Original:
  expected-sha256: b12359f4e12c23bcfcb448b918297e975fa91bef5293d88d3c25343cc768bb24

Replacement:

  expected-sha256: 79abe361f58bb21ade9f565898e486300ce1cc621d5285bec26e14b6a8618fed
Click to expand fix analysis

Analysis

The similar build failures show a consistent pattern: in both cases, the checksum mismatch was resolved by updating both the package version and the expected SHA256 hash in the YAML file. The pattern indicates that the upstream source files were updated without corresponding updates to the package definition in Wolfi. In both examples, the solution was to:

  1. Update the package version to match the latest upstream release
  2. Update the expected-sha256 value to match the actual hash of the downloaded file
    This suggests the font-misc-misc package has likely been updated at the upstream source without a corresponding update in the Wolfi package definition.
Click to expand fix explanation

Explanation

The build failure indicates that the downloaded file 'font-misc-misc-1.1.3.tar.xz' has a SHA256 hash of '79abe361f58bb21ade9f565898e486300ce1cc621d5285bec26e14b6a8618fed', but the expected hash in the YAML file is 'b12359f4e12c23bcfcb448b918297e975fa91bef5293d88d3c25343cc768bb24'.

Unlike the similar fixed issues where the version number needed to be updated, in this case the version number (1.1.3) appears to be correct as the upstream file name matches this version. The issue is likely that the file content has been silently updated on the upstream server without changing the version number.

By updating the expected-sha256 value to match the actual hash of the downloaded file, we're acknowledging that the upstream file has changed, but we're ensuring the build process can continue. This approach is aligned with Wolfi's principles of keeping packages up to date with upstream releases while ensuring security through proper verification.

Click to expand alternative approaches

Alternative Approaches

  • Verify if there's a newer version available (e.g., 1.1.4) and update both the version and SHA256 hash if applicable
  • Download the file manually, verify its contents to ensure it's not corrupted or malicious, then update the hash
  • Contact the upstream maintainers to inquire about the silent update to the file without a version change

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

@octo-sts octo-sts bot added ai/skip-comment Stop AI from commenting on PR bincapz/pass bincapz/pass Bincapz (aka. malcontent) scan didn't detect any CRITICALs on the scanned packages. labels Jul 18, 2025
@Dentrax Dentrax force-pushed the font-xorg-part-2 branch 3 times, most recently from fbace57 to 8750c7f Compare July 18, 2025 12:32
Signed-off-by: Dentrax <furkan.turkal@chainguard.dev>
@Dentrax Dentrax force-pushed the font-xorg-part-2 branch from 8750c7f to 9752393 Compare July 18, 2025 12:32
Signed-off-by: Dentrax <furkan.turkal@chainguard.dev>
@Dentrax Dentrax force-pushed the font-xorg-part-2 branch from fdd5d37 to d360729 Compare July 18, 2025 13:10
@Dentrax Dentrax marked this pull request as ready for review July 18, 2025 13:31
@mritunjaysharma394 mritunjaysharma394 merged commit d933a9f into wolfi-dev:main Jul 18, 2025
12 checks passed
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 bincapz/pass bincapz/pass Bincapz (aka. malcontent) scan didn't detect any CRITICALs on the scanned packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants