From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Sun, 4 Feb 2018 10:54:13 +0100 Subject: [Buildroot] [PATCH v1 2/2] dhcp: disable isc assertions (reproducible builds) In-Reply-To: <877ert20yj.fsf@dell.be.48ers.dk> References: <20171027192424.19760-1-ps.report@gmx.net> <20171027192424.19760-2-ps.report@gmx.net> <20180108211857.2166f95e@windsurf> <20180130175402.GA3468@scaer> <877ert20yj.fsf@dell.be.48ers.dk> Message-ID: <20180204095413.GA2411@scaer> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Peter, All, On 2018-02-03 22:54 +0100, Peter Korsgaard spake thusly: > >>>>> "Yann" == Yann E MORIN writes: [--SNIP--] > > Now, about reproducibility... We could at least pass -DFILE=\"\" and so > > on from inside our gcc-wrapper, like we already do for __DATE__ and > > __TIME__. Yes, that would give an empty filename in assertions and the > > likes, but do we care in the end? > > It would be nicer if we could pass basename($file), but that would break > with compilations with multiple source files passed to gcc or header > files, so yeah, perhaps that is the best way forward. > > How does E.G. Debian handle it? I could not find an authoritative source for this, but from what I could hint from [0] (see the part about "Qt tests and __FILE__"), they do have a patched gcc and a special dpkg which use the BUILD_PATH_PREFIX_MAP environment variable as specified iby reproducible-builds.org [1]. Also, upstream gcc has an "in-progress" upstream solution being worked on, based on BUILD_PATH_PREFIX_MAP, but they did not like it [2]... [0] https://reproducible.alioth.debian.org/blog/posts/134/ [1] https://reproducible-builds.org/specs/build-path-prefix-map/ [2] https://gcc.gnu.org/ml/gcc-patches/2017-08/msg00232.html Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'