[pacman-dev] [PATCH v3] makepkg: record build information in .BUILDINFO

Allan McRae allan at archlinux.org
Sun Dec 6 00:20:46 UTC 2015


On 06/12/15 10:18, Allan McRae wrote:
> This information can be used to reproduce build conditions, which can then be
> used to determine if a package builds reproducibly.
> 
> Signed-off-by: Allan McRae <allan at archlinux.org>
> ---
> 
> v3: Remove recording of environmental variables - that was a failure.
> 
> This should not be controversial now. It records:
>  - buildpath
>  - PKGBUILD hash
>  - installed package list
> 
> The buildenv and options arrays are moved from .PKGINFO to .BUILDINFO
> 
> 
>  scripts/makepkg.sh.in | 42 ++++++++++++++++++++++++++++--------------
>  1 file changed, 28 insertions(+), 14 deletions(-)
> 


And this bit is now deleted...


> +# record initial build environment
> +cppflags="$CPPFLAGS"
> +cflags="$CFLAGS"
> +cxxflags="$CXXFLAGS"
> +ldflags="$LDFLAGS"
> +debug_cflags="$DEBUG_CFLAGS"
> +debug_cxxflags="$DEBUG_CXXFLAGS"
> +
> +
>  if (( ! INFAKEROOT )); then
>  	if (( EUID == 0 )); then
>  		error "$(gettext "Running %s as root is not allowed as it can cause permanent,\n\
> 


More information about the pacman-dev mailing list