Skip to content

Conversation

@hongxu-jia
Copy link
Contributor

While option --debug-sources is used, the generated source file contains build path comments which caused the build is not reproducible [1]
...subprojects/simdutf/simdutf.h...
1 /* auto-generated on 2025-03-17 16:13:41 -0400. Do not edit! /
2 /
begin file include/simdutf.h */
3 // /build-dir/vte-0.82.1/subprojects/simdutf/include/simdutf.h:1
4 #ifndef SIMDUTF_H
...subprojects/simdutf/simdutf.h...

After apply this commit, use relative path to instead
...subprojects/simdutf/simdutf.h...
1 /* auto-generated on 2025-03-17 16:13:41 -0400. Do not edit! /
2 /
begin file include/simdutf.h */
3 // include/simdutf.h:1
4 #ifndef SIMDUTF_H
...subprojects/simdutf/simdutf.h...

[1] https://reproducible-builds.org/

While option --debug-sources is used, the generated source file contains
build path comments which caused the build is not reproducible [1]
...subprojects/simdutf/simdutf.h...
 1 /* auto-generated on 2025-03-17 16:13:41 -0400. Do not edit! */
 2 /* begin file include/simdutf.h */
 3 // /build-dir/vte-0.82.1/subprojects/simdutf/include/simdutf.h:1
 4 #ifndef SIMDUTF_H
...subprojects/simdutf/simdutf.h...

After apply this commit, use relative path to instead
...subprojects/simdutf/simdutf.h...
 1 /* auto-generated on 2025-03-17 16:13:41 -0400. Do not edit! */
 2 /* begin file include/simdutf.h */
 3 // include/simdutf.h:1
 4 #ifndef SIMDUTF_H
...subprojects/simdutf/simdutf.h...

[1] https://reproducible-builds.org/

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
@pauldreik
Copy link
Collaborator

I was not able to reproduce the reported problem. Can you please share exactly how you invoke the amalgamation?

@lemire
Copy link
Member

lemire commented Nov 5, 2025

@pauldreik I think he means that the comments will include full path and not relative paths, thus making the file sensitive to where the script was run ???

That's what I assumed.

The PR itself does not seem problematic... it only affects the comments generated.

@pauldreik
Copy link
Collaborator

I figured out how to invoke it to demonstrate the problematic behaviour, one had to enable a feature to see it:

singleheader/amalgamate.py --debug-sources --with-utf16

with that, I can confirm the patch is good. Thanks!

@pauldreik pauldreik merged commit c6f8e88 into simdutf:master Nov 5, 2025
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants