Skip to content

build: export SOURCE_DATE_EPOCH to .provides target for reproducible APK builds#1373

Open
aparcar wants to merge 1 commit into
mainfrom
claude/test-4y4yt
Open

build: export SOURCE_DATE_EPOCH to .provides target for reproducible APK builds#1373
aparcar wants to merge 1 commit into
mainfrom
claude/test-4y4yt

Conversation

@aparcar
Copy link
Copy Markdown
Owner

@aparcar aparcar commented Jan 16, 2026

The .provides and package targets share the same recipe, but SOURCE_DATE_EPOCH
was only exported for the package target. When Make builds the .provides target
first (as it appears first in the target list), the recipe runs without
SOURCE_DATE_EPOCH in the environment, causing apk mkpkg to use actual file
mtimes instead of the reproducible timestamp.

Add the SOURCE_DATE_EPOCH export to the .provides target as well, ensuring
the environment variable is available regardless of which target Make
chooses to build first.

Signed-off-by: Claude noreply@anthropic.com

…APK builds

The .provides and package targets share the same recipe, but SOURCE_DATE_EPOCH
was only exported for the package target. When Make builds the .provides target
first (as it appears first in the target list), the recipe runs without
SOURCE_DATE_EPOCH in the environment, causing apk mkpkg to use actual file
mtimes instead of the reproducible timestamp.

Add the SOURCE_DATE_EPOCH export to the .provides target as well, ensuring
the environment variable is available regardless of which target Make
chooses to build first.

Signed-off-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants