From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 986F242874 for ; Sat, 8 Jan 2022 16:49:14 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7EC2F68A8B4; Sat, 8 Jan 2022 18:49:12 +0200 (EET) Received: from cascadia.aikidev.net (cascadia.aikidev.net [173.255.214.101]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AEFCE6899AB for ; Sat, 8 Jan 2022 18:49:04 +0200 (EET) Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100e]) (Authenticated sender: vagrant@aikidev.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id E50B01AC43 for ; Sat, 8 Jan 2022 08:49:01 -0800 (PST) From: Vagrant Cascadian To: ffmpeg-devel@ffmpeg.org In-Reply-To: <8735nzbz3r.fsf@ponder> References: <875ytxpy5k.fsf@yucca> <87sfwyotmg.fsf@yucca> <8735nzbz3r.fsf@ponder> Date: Sat, 08 Jan 2022 08:49:00 -0800 Message-ID: <87ee5iuq9v.fsf@ponder> MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH 1/1] tools/cl2c: Strip full path from input file in embedded X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 2021-11-13, Vagrant Cascadian wrote: > On 2021-10-18, Vagrant Cascadian wrote: >> Without this patch, the full build path gets embedded into various >> binaries shipped in the package, for example, libavfilter.a contains >> a reference to: >> >> #line 1 "/build/1st/ffmpeg-4.3.2/libavfilter/opencl/avgblur.cl" >> >> By not embedding the build path, it makes it easier to recreate the >> build environment and reproduce the build: >> >> https://reproducible-builds.org/docs/build-path/ >> >> Originally submitted to Debian as: >> >> https://bugs.debian.org/985187 >> >> Signed-off-by: Vagrant Cascadian > > Ping? Happy new year! Anything I can do to help move this patch forward? live well, vagrant >> --- >> tools/cl2c | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/tools/cl2c b/tools/cl2c >> index e3f92bab1c..48444e61a7 100755 >> --- a/tools/cl2c >> +++ b/tools/cl2c >> @@ -23,11 +23,13 @@ input="$1" >> output="$2" >> >> name=$(basename "$input" | sed 's/.cl$//') >> +# Avoid embedded the build path, using only the basename of the input file. >> +base_input=$(basename "$input") >> >> cat >$output <> // Generated from $input >> const char *ff_opencl_source_$name = >> -"#line 1 \"$input\"\n" >> +"#line 1 \"$base_input\"\n" >> EOF >> >> # Convert \ to \\ and " to \", then add " to the start and end of the line. >> -- >> 2.33.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".