summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2021-12-14 09:13:41 +0100
committerMaciej Barć <xgqt@gentoo.org>2021-12-14 09:53:36 +0100
commitf8757ad71d16fb4963f9933000d3b99a846a025c (patch)
treea5ec24594e469c193a4d4df76edfa460ebe15a84 /dev-scheme
parentapp-emulation/runc: revbump for CVE-2021-43784 (diff)
downloadgentoo-f8757ad71d16fb4963f9933000d3b99a846a025c.tar.gz
gentoo-f8757ad71d16fb4963f9933000d3b99a846a025c.tar.bz2
gentoo-f8757ad71d16fb4963f9933000d3b99a846a025c.zip
dev-scheme/racket: fix pkg_preinst; do not die on pkg_config
Closes: https://bugs.gentoo.org/829121 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/racket/racket-8.2-r2.ebuild (renamed from dev-scheme/racket/racket-8.2-r1.ebuild)8
-rw-r--r--dev-scheme/racket/racket-8.3-r2.ebuild (renamed from dev-scheme/racket/racket-8.3-r1.ebuild)8
2 files changed, 8 insertions, 8 deletions
diff --git a/dev-scheme/racket/racket-8.2-r1.ebuild b/dev-scheme/racket/racket-8.2-r2.ebuild
index ebb87fe339c6..d442f6c1047d 100644
--- a/dev-scheme/racket/racket-8.2-r1.ebuild
+++ b/dev-scheme/racket/racket-8.2-r2.ebuild
@@ -143,7 +143,7 @@ pkg_preinst() {
echo "We are installing the same SLOT: ${SLOT}"
local rktd
for rktd in "${PKGDB[@]}"; do
- if [[ -f "${EROOT}/${rktd}" ]]; then
+ if [[ -f "${EROOT}"/${rktd} ]] && [[ -f "${ED}"/${rktd} ]]; then
einfo "Keeping old file: ${rktd}"
mv "${ED}"/${rktd} "${ED}"/${rktd}.bak ||
die "failed to create a backup of ${rktd}"
@@ -169,8 +169,8 @@ pkg_config() {
einfo "Swapping package database backup files"
for rktd in "${PKGDB[@]}"; do
- mv "${EROOT}"/${rktd} "${EROOT}"/${rktd}.pkg_config || die
- mv "${EROOT}"/${rktd}.bak "${EROOT}"/${rktd} || die
- mv "${EROOT}"/${rktd}.pkg_config "${EROOT}"/${rktd}.bak || die
+ mv "${EROOT}"/${rktd} "${EROOT}"/${rktd}.pkg_config
+ mv "${EROOT}"/${rktd}.bak "${EROOT}"/${rktd}
+ mv "${EROOT}"/${rktd}.pkg_config "${EROOT}"/${rktd}.bak
done
}
diff --git a/dev-scheme/racket/racket-8.3-r1.ebuild b/dev-scheme/racket/racket-8.3-r2.ebuild
index 507893805143..d6c989e973c9 100644
--- a/dev-scheme/racket/racket-8.3-r1.ebuild
+++ b/dev-scheme/racket/racket-8.3-r2.ebuild
@@ -119,7 +119,7 @@ pkg_preinst() {
echo "We are installing the same SLOT: ${SLOT}"
local rktd
for rktd in "${PKGDB[@]}"; do
- if [[ -f "${EROOT}/${rktd}" ]]; then
+ if [[ -f "${EROOT}"/${rktd} ]] && [[ -f "${ED}"/${rktd} ]]; then
einfo "Keeping old file: ${rktd}"
mv "${ED}"/${rktd} "${ED}"/${rktd}.bak ||
die "failed to create a backup of ${rktd}"
@@ -139,8 +139,8 @@ pkg_config() {
einfo "Swapping package database backup files"
for rktd in "${PKGDB[@]}"; do
- mv "${EROOT}"/${rktd} "${EROOT}"/${rktd}.pkg_config || die
- mv "${EROOT}"/${rktd}.bak "${EROOT}"/${rktd} || die
- mv "${EROOT}"/${rktd}.pkg_config "${EROOT}"/${rktd}.bak || die
+ mv "${EROOT}"/${rktd} "${EROOT}"/${rktd}.pkg_config
+ mv "${EROOT}"/${rktd}.bak "${EROOT}"/${rktd}
+ mv "${EROOT}"/${rktd}.pkg_config "${EROOT}"/${rktd}.bak
done
}