From patchwork Wed Oct 13 10:16:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 14114 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id D526FBDC71 for ; Wed, 13 Oct 2021 10:16:57 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 5664768F4F; Wed, 13 Oct 2021 12:16:57 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="ONCmViIz"; dkim-atps=neutral Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6E30960501 for ; Wed, 13 Oct 2021 12:16:56 +0200 (CEST) Received: by mail-wr1-x42c.google.com with SMTP id o20so6577621wro.3 for ; Wed, 13 Oct 2021 03:16:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2gfTdUbikiQvDcVd/2n7/BsIpSX/SJOf+DQP3lobVpc=; b=ONCmViIzva7XXa9MPaJUlUsKoCPfpfVrG9yeps+qDwYAzI/jPJdN/M+xaKOUJV0EXR bXIqe1dOYdVXMCdhCCQ2Jyr/i9l9aLPOt5+6mEVli6Pc646QYUjImLOm0dMSP7ChNgIN 85e7Ek309EVEJR54aypjo+DHnew4V167Gb9ubAiUtL5lWSW53oNvAqTO1kAv5i7JZ1jK mriMJoCbDaiwisZZK4mhL+OMI6a0YrLr+dubTzzfD5S668KoS9YiGy2BJ7CMZxHNdbli sVvLFVkj6dyWpj+CGi7ONqURxr6c3dOgDvQBe3/FJJry7GoZ/iTicmyha3KHB1ZE+IcM 8ZiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2gfTdUbikiQvDcVd/2n7/BsIpSX/SJOf+DQP3lobVpc=; b=uCwg4qcTSWpqE/1ldBFWDNwHefz4ItADvQAPteFYGeGB4xci9+jOV/B++lTq/CDSI2 C3vkd41ITxOMShFVQhU0xQ7qp09IRqCu+BXH8oWe9f1D/7afJUbYd6OqZoAoGKhaCoPU ThRkJOVTeyIVO92lZqNMC29C/aD0yuOMte1IVwRgt8ZOlX9rSoCJuWSA+41rr+tTYdEm 7TE8TKYj4mGDCLY7w/LSMdTr4BadA18NaQ2MDCM9KPjdxB7n4Kc6ZXLc81S+pVB0LGr3 R4dlLEaeZ54BdMRn1b5efCPYTk/bffodjoOUJx2xURiAgQtSlmX9YWTvapdEvKlurvup i85Q== X-Gm-Message-State: AOAM532j2EsOzPgV4IbWPWuGBRiVb06Uw/ouqX9q4eyU3ZFNtgLP11dE /hn/QI8RAXgydvIpPtwjXaeWQjA95+1DnA== X-Google-Smtp-Source: ABdhPJwSlG4ujbivcqUEH4+dR3GnVajwvgcv710j/Lwo/TM7iqT2CKvEay+0l3T7xxUAvFCHghgJ3w== X-Received: by 2002:adf:9787:: with SMTP id s7mr37818342wrb.191.1634120215777; Wed, 13 Oct 2021 03:16:55 -0700 (PDT) Received: from naush-laptop.pitowers.org ([2a00:1098:3142:14:a13d:95a9:c25e:7597]) by smtp.gmail.com with ESMTPSA id y5sm7904902wrq.85.2021.10.13.03.16.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 03:16:55 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Wed, 13 Oct 2021 11:16:49 +0100 Message-Id: <20211013101650.1810576-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [RFC 0/1] Save version string with meson dist X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi, This is the second attempt to fix the loss of versioning information when building from tarball source files. As per the reply in the last email on this subject, The meson dist command now saves the version string in a file in the release tarball. The build system picks up the version string from this file if present. If the file is not present, it uses the utils/gen-version.sh script to generate one as we currently do. Thanks, Naush Naushir Patuck (1): build: Preserve upstream git versioning using meson dist meson.build | 30 ++++++++++++++++++++---------- src/libcamera/meson.build | 11 +++++------ utils/run-dist.sh | 9 +++++++++ 3 files changed, 34 insertions(+), 16 deletions(-) create mode 100644 utils/run-dist.sh