package-helpers-cmxsl/helpers/make-guix
2024-10-23 15:31:17 +00:00

42 lines
1.3 KiB
Bash

#!/bin/sh
#
# Copyright (C) 2024 Luis Guzmán <ark@switnet.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, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
VERSION=1
SECURITY=true
. ./config
export FULLVERSION="$(sed 's|1.3.0-4|1.3.0-4+really1.3.0-5|' <<< $FULLVERSION)"
# Upgrade 1.3.0-4 to 1.3.0-5
patch_p1 $DATA/guix-1.3.0.4-to-1.3.0-5.patch
# Apply missing CVEs upstream:
## 1.CVE-2024-27297
## 2. https://issues.guix.gnu.org/73919
for patch in $(ls -v ${DATA}/cve/*.patch)
do
patch_p1 $patch
done
# TODO: Confirm fix for nix package.
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066812
changelog "Apply latest fix for #73919 || Upgrade to 1.3.0-5 and apply missing CVE-2024-27297 upstream patch."
package