Giter Site home page Giter Site logo

Comments (5)

cat-in-136 avatar cat-in-136 commented on June 5, 2024

I am against "it should be handled by a simple flag" but reproducability of rpm file is acceptable.

As you know it is depending on timestamp and other time-related conditions. I believe that these parameter should be manually set by the user who wanna get reproducable builds.

Of cause currently compression issue and some missing fields needed to be added to the purpose. Simply speaking, it is just depending on rpm-rs/rpm#117.

from cargo-generate-rpm.

newpavlov avatar newpavlov commented on June 5, 2024

I think a SOURCE_DATE_EPOCH-like flag should be sufficient for time-related conditions. As a convenience it would be nice to have additional flags which set it to the beginning of the UNIX epoch and to date of last commit in current repository.

from cargo-generate-rpm.

cat-in-136 avatar cat-in-136 commented on June 5, 2024

Again, simply speaking, this issue is just depending on rpm-rs/rpm#117 and need to clarify on requirements on rpm-rs/rpm. It is impossible to clarify single flag is suitable or not.

BTW, the original rpmbuild have such a "simple flag"?

from cargo-generate-rpm.

newpavlov avatar newpavlov commented on June 5, 2024

this issue is just depending on rpm-rs/rpm#117 and need to clarify on requirements on rpm-rs/rpm.

Yes, I understand. This is why I linked the issue. I created this issue to make it easier to find for users of generate-rpm who are interested in reproducibility and to discuss potential shape of CLI API.

BTW, the original rpmbuild have such a "simple flag"?

IIUC it's done by setting %source_date_epoch_from_changelog, but I haven't used it myself.

from cargo-generate-rpm.

cat-in-136 avatar cat-in-136 commented on June 5, 2024

So, the feasibility of a fully working simple flag is not clear. Such a simple flag need to be careful about because users expect complete behavior.

I will leave this ticket open. Please create other tickets or PRs to introduce each respective settings (mtime, build time, etc.).

from cargo-generate-rpm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.