RE: Can OProfile support reproducible build?

Zhongwenlin <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <DB42581E39498840B915674037B522B65EBF7526@dggeml505-mbx.china.huawei.com>
Hi,
I use the latest version 1.2.0. And I found that the code below would generate timestamps----just they cause the difference.
How

    libutil/op_version.c: 
                    21: printf("%s: " PACKAGE " " VERSION " compiled on "
	                22:__DATE__ " " __TIME__ "\n", app_name);
           
	pe_counting/ocount.cpp:
                        659: case 'v':
			            660: cout << argv[0] << ": " << PACKAGE << " " << VERSION << " compiled on " << __DATE__
			            661:<< " " << __TIME__ << endl;

	pe_profiling/operf.cpp: 
                      1344:case 'v':
			          1345:cout << argv[0] << ": " << PACKAGE << " " << VERSION << " compiled on " << __DATE__
			          1346:<< " " << __TIME__ << endl;

How can I eliminate the timestamps?


-----邮件原件-----
发件人: William Cohen [mailto:[email protected]] 
发送时间: 2017年8月29日 2:14
收件人: [email protected]; Zhongwenlin
抄送: Gaokun (King)
主题: Can OProfile support reproducible build?

From [email protected]:


Hi,

When I build Oprofile, I find the build results are different every time. It seems to be caused by some time stamps. How can I get rid of the time stamps?

As we know, reproducible build is a good way to counter malicious attacks that generate malicious executables, by making it easy to recreate the executable to determine if the result is correct.  How can I eliminate the differences caused by the time stamps? Just remove some code? Or is there any configuration?

Can Oprofile support reproducible build in later versions?

Thank you.



---------------


Hi,

It would be helpful to describe in more detail which version of OProfile is being built, how OProfile is being built, and specific differences between the repeated builds.

Debian does have some information on techniques on indentify reproducible build issues and ways to address them:

https://wiki.debian.org/ReproducibleBuilds/Howto

-Will
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
oprofile-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oprofile-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.