libmakepkg: remove python hashseed handling

The decision to set the PYTHONHASHSEED variable and its value is outside
the domain of makepkg and should be handled by a distribution.  Move this
file to the libalpm-dropins project.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2024-12-10 18:23:15 +10:00
parent 870eae26dc
commit fa7a9f748d
2 changed files with 0 additions and 30 deletions

View file

@ -1,7 +1,6 @@
libmakepkg_module = 'reproducible' libmakepkg_module = 'reproducible'
sources = [ sources = [
'python.sh.in',
'source_date_epoch.sh.in', 'source_date_epoch.sh.in',
] ]

View file

@ -1,29 +0,0 @@
#!/bin/bash
#
# python.sh - creating reproducible python packages
#
# Copyright (c) 2021-2024 Pacman Development Team <pacman-dev@lists.archlinux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
[[ -n "$LIBMAKEPKG_REPRODUCIBLE_PYTHON_SH" ]] && return
LIBMAKEPKG_REPRODUCIBLE_PYTHON_SH=1
MAKEPKG_LIBRARY=${MAKEPKG_LIBRARY:-'@libmakepkgdir@'}
# disable hash randomization when creating .pyc files
export PYTHONHASHSEED=0