Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: Add make_cpio, a script for generating reproducible cpio(5) archives #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Dec 7, 2021

  1. cmake,cpio: Move cpio(5) archive generation mechanism into script

    Move the process of constructing an archive out into a new Python script
    `make_cpio.py', and simplify the mechanism by directly using libarchive
    to generate a file with the desired properties.
    
    (I've previously run afoul of GNU cpio(1)'s `--reproducible' flag and
    the detection machinery thereof; and of subtle and tricky-to-debug build
    failures that occur partway through the generated command line.  I opted
    to rework the CMake into Python; the result is that the CMake here
    simplifies to the invocation of a single, fairly simple tool with
    appropriate arguments, instead of the composition of a fairly involved
    shell script.)
    
    r2: `cmake-format'.
    
    r3: rebased, and reworded commit message to more clearly explain the
        rationale for the change, as this was open to misinterpretation.
    
    Signed-off-by: Jashank Jeremy <[email protected]>
    jashank committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    2eb669c View commit details
    Browse the repository at this point in the history