Bug#985187: ffmpeg: reproducible builds: Embeds build path in binaries generated with cl2c

Vagrant Cascadian vagrant at reproducible-builds.org
Sun Mar 14 04:05:47 GMT 2021


Source: ffmpeg
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

The build path is embedded in various files generated with tools/cl2c:

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/ffmpeg.html

  avgblur.o (shipped in libavfilter.a)

  #line·1·"/build/1st/ffmpeg-4.3.2/libavfilter/opencl/avgblur.cl"
  vs.
  #line·1·"/build/2/ffmpeg-4.3.2/2nd/libavfilter/opencl/avgblur.cl"


The attached patch fixes this by patching tools/cl2c to use a basename
in the generated file rather than the full path.


It builds fine with this patch applied, but someone more familiar with
ffmpeg should ensure ffmpeg still functions correctly with the patch
applied.


Thanks for maintaining ffmpeg!

live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-tools-cl2c-Strip-full-path-from-input-file-in-embedd.patch
Type: text/x-diff
Size: 1267 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20210313/428857d2/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20210313/428857d2/attachment.sig>


More information about the Reproducible-bugs mailing list