[Git][reproducible-builds/reproducible-website][master] build_path: add Debian example for -ffile-prefix-map, add clang 10

Peter Wu gitlab at salsa.debian.org
Tue Jan 21 05:01:43 UTC 2020



Peter Wu pushed to branch master at Reproducible Builds / reproducible-website


Commits:
a9ce0b03 by Peter Wu at 2020-01-21T04:55:03+00:00
build_path: add Debian example for -ffile-prefix-map, add clang 10

The dpkg feature was added in
https://salsa.debian.org/dpkg-team/dpkg/commit/a034e7d53b0c96c419d71c86921d2a509b0d79bc

- - - - -


1 changed file:

- _docs/build_path.md


Changes:

=====================================
_docs/build_path.md
=====================================
@@ -29,11 +29,20 @@ Certain compiler flags can work around the issue:
    (available in all GCC versions, Clang 3.8)
  * [`-fmacro-prefix-map=OLD=NEW`](https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html#index-fmacro-prefix-map)
    is similar to `-fdebug-prefix-map`, but addresses irreproducibility due to
-   the use of `__FILE__` macros and alike.
-   (available since GCC 8, Clang support is [pending](https://bugs.llvm.org/show_bug.cgi?id=38135))
+   the use of `__FILE__` macros in `assert` calls for example.
+   (available since GCC 8 and [Clang 10](https://bugs.llvm.org/show_bug.cgi?id=38135))
  * `-ffile-prefix-map=OLD=NEW` is an alias for both `-fdebug-prefix-map` and
    `-fmacro-prefix-map`.
-   (available since GCC 8, Clang support is [pending](https://bugs.llvm.org/show_bug.cgi?id=38135))
+   (available since GCC 8 and [Clang 10](https://bugs.llvm.org/show_bug.cgi?id=38135))
+
+With dpkg >= 1.19.1, first shipped with Debian Buster, packages can enable the
+`-ffile-prefix-map=OLD=NEW` flag by adding the `fixfilepath` [build
+flag](https://manpages.debian.org/dpkg-buildflags.1) to their `debian/rules`
+file. For example:
+```
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+fixfilepath
+```
+
 
 Note that some packages save the compile options in the build output.
 



View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/commit/a9ce0b03b541069bbfc4da096ee66f27fde79ec7

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/reproducible-website/commit/a9ce0b03b541069bbfc4da096ee66f27fde79ec7
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200121/e7b3f75d/attachment.htm>


More information about the rb-commits mailing list