Skip to content

Commit 46eea84

Browse files
committed
Make the documentation build reproducibly
Whilst working on the Reproducible Builds effort [0] I noticed that json-c could not be built reproducibly. This is because it used the full, absolute path name as an (sanitised) input to a filename, resulting in some binary package containing, for example: /usr/share/doc/libjson-c-dev/html/md__build_1st_json-c-0_815_issues_closed_for_0_813.html ^^^^^^^^^^^^^^^^^^^^^^ or /usr/share/doc/libjson-c-dev/html/md__build_2_json-c-0_815_2nd_issues_closed_for_0_813.html ^^^^^^^^^^^^^^^^^^^^^^^^ These differing values are based on the path in which json-c is built. This was originally filed in Debian as #966657 [1]. [0] https://reproducible-builds.org/ [1] https://bugs.debian.org/966657
1 parent 88cce7b commit 46eea84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Doxyfile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ FULL_PATH_NAMES = YES
152152
# will be relative from the directory where doxygen is started.
153153
# This tag requires that the tag FULL_PATH_NAMES is set to YES.
154154

155-
STRIP_FROM_PATH =
155+
STRIP_FROM_PATH = @CMAKE_SOURCE_DIR@
156156

157157
# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
158158
# path mentioned in the documentation of a class, which tells the reader which

0 commit comments

Comments
 (0)