Skip to content

mksquashfs: FATAL ERROR: SOURCE_DATE_EPOCH and command line options can't be used at the same time #739

@0xc1c4da

Description

@0xc1c4da

OS

NixOS 25.05

Programming Language

C++

VPK Version

Velopack CLI 0.0.1369-g1d5c984 (prerelease)

Library Version

vpk = pkgs.buildDotnetGlobalTool { pname = "vpk"; version = "0.0.1369-g1d5c984"; nugetSha256 = "sha256-8XR8AmaDVjmF+/7XtdJiar/xpzrjk+h/7sOavsf0ozQ="; # dotnet-sdk = pkgs.dotnetCorePackages.dotnet_8.sdk; dotnet-runtime = pkgs.dotnetCorePackages.runtime_8_0; };

What happened?

It seems vpk does not account for SOURCE_DATE_EPOCH being set when calling mksquashfs and then fails.
The temporary solution is to unset SOURCE_DATE_EPOCH.

Expected behaviour:
Honour SOURCE_DATE_EPOCH environment variable.

Relevant log output

VPK_LOG=trace vpk pack --packId com.test.app --packVersion 0.0.1 --packDir ~/experiments/test-velopack/dist/linux-x64/test.AppDir --mainExe test --packTitle "Test" 2>&1 | tee vpk.logex
[14:18:21 INF] Velopack CLI 0.0.1369-g1d5c984 (prerelease), for distributing applications.
[14:18:22 INF] Beginning to package Velopack release 0.0.1.
[14:18:22 INF] Releases Directory: /home/j/experiments/test-velopack/Releases
[14:18:22 INF] Starting: Pre-process steps
[14:18:22 INF] Pack directory ends with .AppDir, will skip building new one.
[14:18:22 INF] Complete: Pre-process steps
[14:18:22 INF] Starting: Building portable package
[14:18:22 INF] Compressing AppDir into squashfs filesystem
[14:18:22 FTL] Process failed: 'mksquashfs /tmp/velopack/temp.2/PreprocessPackDir.AppDir /tmp/velopack/temp.2/com.test.app.AppImage.tmpfs -comp gzip -root-owned -noappend -mkfs-time 0'
Output was -

StdErr was -
FATAL ERROR: SOURCE_DATE_EPOCH and command line options can't be used at the same time to set timestamp(s)

$ echo $SOURCE_DATE_EPOCH
315532800

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions