Debian Bug report logs - #1000327
meson: please make the generated cmake files reproducible

version graph

Package: src:meson; Maintainer for src:meson is Jussi Pakkanen <jpakkane@gmail.com>;

Reported by: "Chris Lamb" <lamby@debian.org>

Date: Sun, 21 Nov 2021 17:45:02 UTC

Severity: wishlist

Tags: fixed-upstream, patch

Found in version meson/0.60.1-1

Fixed in version 0.61.0~rc1-1

Done: Simon McVittie <smcv@debian.org>

Bug is archived. No further changes may be made.

Forwarded to https://github.com/mesonbuild/meson/pull/9602

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Jussi Pakkanen <jpakkane@gmail.com>:
Bug#1000327; Package src:meson. (Sun, 21 Nov 2021 17:45:04 GMT) (full text, mbox, link).


Acknowledgement sent to "Chris Lamb" <lamby@debian.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Jussi Pakkanen <jpakkane@gmail.com>. (Sun, 21 Nov 2021 17:45:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: "Chris Lamb" <lamby@debian.org>
To: submit@bugs.debian.org
Subject: meson: please make the generated cmake files reproducible
Date: Sun, 21 Nov 2021 09:41:35 -0800
[Message part 1 (text/plain, inline)]
Source: meson
Version: 0.60.1-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps toolchain
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort we noticed that
meson is not generating reproducible .cmake files.

For example:

│ │ │ ├── ./usr/lib/x86_64-linux-gnu/cmake/xbyak/xbyakConfig.cmake
│ │ │ │ @@ -1,11 +1,11 @@
│ │ │ │  
│ │ │ │  ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
│ │ │ │  ####### Any changes to this file will be overwritten by the next CMake run ####
│ │ │ │ -####### The input file was /build/1st/xbyak-6.00/cmake/meson-config.cmake.in ########
│ │ │ │ +####### The input file was /build/2/xbyak-6.00/2nd/cmake/meson-config.cmake.in ########

(This is from src:xbyak version 6.00-2.)

A patch is attached that uses os.path.basename to only include
"meson-config.cmake.in" instead of the full path. This not only makes
the build reproducible, but it also matches CMake's own behaviour.
Specifically, CMakePackageConfigHelpers.cmake does the equivalent
transformation using:

  get_filename_component(inputFileName "${_inputFile}" NAME)


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
[meson.diff.txt (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#1000327; Package src:meson. (Sun, 21 Nov 2021 17:57:04 GMT) (full text, mbox, link).


Acknowledgement sent to Jussi Pakkanen <jpakkane@gmail.com>:
Extra info received and forwarded to list. (Sun, 21 Nov 2021 17:57:04 GMT) (full text, mbox, link).


Message #10 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jussi Pakkanen <jpakkane@gmail.com>
To: Chris Lamb <lamby@debian.org>, 1000327@bugs.debian.org
Cc: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Re: Bug#1000327: meson: please make the generated cmake files reproducible
Date: Sun, 21 Nov 2021 19:52:54 +0200
On Sun, 21 Nov 2021 at 19:45, Chris Lamb <lamby@debian.org> wrote:

> Whilst working on the Reproducible Builds effort we noticed that
> meson is not generating reproducible .cmake files.
>
> A patch is attached that uses os.path.basename to only include
> "meson-config.cmake.in" instead of the full path. This not only makes
> the build reproducible, but it also matches CMake's own behaviour.
> Specifically, CMakePackageConfigHelpers.cmake does the equivalent
> transformation using:

Please file this (and all future patches of this type) directly to the
upstream project. All functional changes must be done via upstream
releases (the few patches we have deal with weird test setups and the
like).



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#1000327; Package src:meson. (Sun, 21 Nov 2021 17:57:08 GMT) (full text, mbox, link).


Acknowledgement sent to Jussi Pakkanen <jpakkane@gmail.com>:
Extra info received and forwarded to list. (Sun, 21 Nov 2021 17:57:08 GMT) (full text, mbox, link).


Set Bug forwarded-to-address to 'https://github.com/mesonbuild/meson/pull/9602'. Request was from "Chris Lamb" <lamby@debian.org> to control@bugs.debian.org. (Sun, 21 Nov 2021 17:57:09 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Jussi Pakkanen <jpakkane@gmail.com>:
Bug#1000327; Package src:meson. (Sun, 21 Nov 2021 18:03:03 GMT) (full text, mbox, link).


Acknowledgement sent to "Chris Lamb" <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to Jussi Pakkanen <jpakkane@gmail.com>. (Sun, 21 Nov 2021 18:03:03 GMT) (full text, mbox, link).


Message #22 received at 1000327@bugs.debian.org (full text, mbox, reply):

From: "Chris Lamb" <lamby@debian.org>
To: "Jussi Pakkanen" <jpakkane@gmail.com>, 1000327@bugs.debian.org
Subject: Re: Bug#1000327: meson: please make the generated cmake files reproducible
Date: Sun, 21 Nov 2021 09:53:59 -0800
forwarded 1000327 https://github.com/mesonbuild/meson/pull/9602
thanks

> Please file this (and all future patches of this type) directly to the
> upstream project. All functional changes must be done via upstream
> releases (the few patches we have deal with weird test setups and the
> like).

Sure thing. I've forwarded this upstream here:

  https://github.com/mesonbuild/meson/pull/9602


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org 🍥 chris-lamb.co.uk
       `-



Added tag(s) fixed-upstream. Request was from debian-bts-link@lists.debian.org to control@bugs.debian.org. (Thu, 25 Nov 2021 17:30:10 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Jussi Pakkanen <jpakkane@gmail.com>:
Bug#1000327; Package src:meson. (Mon, 06 Dec 2021 02:03:03 GMT) (full text, mbox, link).


Acknowledgement sent to gocomsearch@gmail.com:
Extra info received and forwarded to list. Copy sent to Jussi Pakkanen <jpakkane@gmail.com>. (Mon, 06 Dec 2021 02:03:03 GMT) (full text, mbox, link).


Message #29 received at 1000327@bugs.debian.org (full text, mbox, reply):

From: gocomsearch@gmail.com
To: 1000327@bugs.debian.org
Subject: New Internet Search Engine
Date: Sun, 5 Dec 2021 16:32:14 -0800
[Message part 1 (text/html, inline)]

Reply sent to Simon McVittie <smcv@debian.org>:
You have taken responsibility. (Tue, 16 Aug 2022 10:03:06 GMT) (full text, mbox, link).


Notification sent to "Chris Lamb" <lamby@debian.org>:
Bug acknowledged by developer. (Tue, 16 Aug 2022 10:03:06 GMT) (full text, mbox, link).


Message #34 received at 1000327-done@bugs.debian.org (full text, mbox, reply):

From: Simon McVittie <smcv@debian.org>
To: 1000327-done@bugs.debian.org
Subject: Re: Bug#1000327: meson: please make the generated cmake files reproducible
Date: Tue, 16 Aug 2022 10:59:48 +0100
Version: 0.61.0~rc1-1

On Sun, 21 Nov 2021 at 09:53:59 -0800, Chris Lamb wrote:
> > Please file this (and all future patches of this type) directly to the
> > upstream project
> 
> Sure thing. I've forwarded this upstream here:
> 
>   https://github.com/mesonbuild/meson/pull/9602

This change appears to have been included in 0.61.0rc1.

    smcv



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 14 Sep 2022 07:25:50 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 10:01:32 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.