From patchwork Mon Oct 18 22:28:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vagrant Cascadian X-Patchwork-Id: 31157 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2084:0:0:0:0 with SMTP id a4csp3792475ioa; Mon, 18 Oct 2021 15:28:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyOvJ3J7ueHomhrut8U+n7u6IQuVTAMHvpJDdg5jyY+TcEZiot9b17Uc9wnGS4R2hD4Voy X-Received: by 2002:a50:d511:: with SMTP id u17mr47415611edi.105.1634596123758; Mon, 18 Oct 2021 15:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634596123; cv=none; d=google.com; s=arc-20160816; b=QCuOE1EPMAbaOv+s5na6+mxojBe5yHHd43k3uIMXWeA1caID62/sbLkH5WYo+XfH7u uTn7ir2fhNAN30HAL7M8jufk0e75qlPGet9LspEPMZaIpynVsohVYD22HhBNtlczVcbW YPLoN4BqiXRFhz3VKDEy7frIJa4iWVq8W7wDIVrsUmMX4/up5j1fu1zxvlH9hM4SlZA7 q94eki4771ed+cgTg76QZwq4bIxgyIrsUqc5rwj9mxKTg3x9Ci8tmgb9gQ6vAoQMzbpQ Ra0JDgRK8Du5AR/AW2AWvJeTBh2QFFs26g6dqLn1AeIKn0aZki1q6GihFDeYGCLC1obG WyLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:references:in-reply-to:to:from :delivered-to; bh=OBirNDthjl3Rgw0hG2U5I+iJCdqoQ7qTH/p7ly7fBy8=; b=u2C/gQbZtyfgyuJEFvOf/Y8wM1trSDnXYfE7j4gzlM+7mTTPk/WPLVfvLHYA70cMNP KYg8YUmXDA8pnD5fX9cUllUXkji6aqc8g10SJuB1YPfGh9mVuuwJn/SuosPeb/DbvA3M JZMj6MdV8wSPQxXENOQnNJdizu5DrGdyBMmA2XuLmjpvaJjaNVlUfY5VVftGVITONJ0R bU2vfCT8az5hpJog0Kcz5llcJTvygLgkyMM0kz4Arixcyo0bQUWNISeS7dKhX0CauNuN LXpREFoNwHZ8CnrmvwypsGsVYld/08kW2QdZ5PuQ7yGrAW7ZwrXnpdL4n6zDRam2GOg5 kYhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id h10si5107245edb.31.2021.10.18.15.28.43; Mon, 18 Oct 2021 15:28:43 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id BC04B68A7A9; Tue, 19 Oct 2021 01:28:40 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from cascadia.aikidev.net (cascadia.aikidev.net [173.255.214.101]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5ACD168A305 for ; Tue, 19 Oct 2021 01:28:34 +0300 (EEST) Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@aikidev.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 6C36A1AA31 for ; Mon, 18 Oct 2021 15:28:31 -0700 (PDT) From: Vagrant Cascadian To: ffmpeg-devel@ffmpeg.org In-Reply-To: <875ytxpy5k.fsf@yucca> References: <875ytxpy5k.fsf@yucca> Date: Mon, 18 Oct 2021 15:28:23 -0700 Message-ID: <87sfwyotmg.fsf@yucca> MIME-Version: 1.0 Subject: [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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: hrYSHa/Te7YU 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 --- 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 <