* post install/remove messages and pacman.conf fixes for cross-pacman

This commit is contained in:
Alexander Baldeck 2023-09-12 22:48:44 +02:00
parent af586826c0
commit b530ed845d
17 changed files with 117 additions and 47 deletions

View File

@ -4,10 +4,11 @@ _arch=powerpc
_target=${_arch}-unknown-linux-gnu
pkgname=${_target}-pacman
pkgver=2023.09
pkgrel=2
pkgrel=3
pkgdesc="Pacman configurations for ${_target} to install dependencies for cross-compilation"
arch=(any)
url="https://archlinuxpower.org"
install=pacman.install
depends=(
${_target}-gcc
${_target}-glibc
@ -17,7 +18,7 @@ source=(pacman-arch.sh
fakebase.desc)
backup=(etc/pacman-${_arch}.conf)
sha256sums=('5fd18c74198312560579d900af2b0e52b757b47fb70e4f78e995b29cf0b5ee7a'
'be2dbe92dc712e6a184c718b02131cfd2f63e728e0b6fec3143c87fd156837d2'
'2fb7c0ecd3005b7657d5c0eeb72d98026acc83d91f52711406c22f0984bd6f66'
'a36c46d05728a3e7a5806e4bf215b0d3cfa76a66bb9357bc852476b654dcdaf8')
prepare() {
@ -29,6 +30,7 @@ prepare() {
build() {
sed "s/@@CARCH@@/${_arch}/g" -i pacman-arch.sh
sed "s/@@CARCH@@/${_arch}/g" -i pacman.conf
sed "s/@@CHOST_PREFIX@@/\/usr\/${_target}\//g" -i pacman.conf
sed "s/@@TIMESTAMP@@/$(date "+%s")/g" -i fakebase.desc
sed "s/@@FAKEBASE_VERSION@@/${pkgver}-${pkgrel}/g" -i fakebase.desc

View File

@ -19,10 +19,10 @@ HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = powerpc
Architecture = @@CARCH@@
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
IgnorePkg = binutils glibc gcc gcc-libs libxcrypt linux-api-headers
#IgnoreGroup =
#NoUpgrade =
@ -69,14 +69,14 @@ LocalFileSigLevel = Optional
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
[testing-any]
Server = https://repo.archlinuxpower.org/testing/any
#[testing-any]
#Server = https://repo.archlinuxpower.org/testing/any
[testing]
Server = https://repo.archlinuxpower.org/testing/$arch
[base-any]
Server = https://repo.archlinuxpower.org/base/any
#[base-any]
#Server = https://repo.archlinuxpower.org/base/any
[base]
Server = https://repo.archlinuxpower.org/base/$arch

View File

@ -0,0 +1,11 @@
post_install() {
echo "Do not forget to edit /etc/pacman.d/mirrorlist.x86_64!"
}
post_upgrade() {
echo "Do not forget to edit /etc/pacman.d/mirrorlist.x86_64!"
}
post_remove() {
echo "Check whether or not to clean up leftover files in /usr/tri-pl-et/"
}

View File

@ -4,10 +4,11 @@ _arch=powerpc64
_target=${_arch}-unknown-linux-gnu
pkgname=${_target}-pacman
pkgver=2023.09
pkgrel=2
pkgrel=3
pkgdesc="Pacman configurations for ${_target} to install dependencies for cross-compilation"
arch=(any)
url="https://archlinuxpower.org"
install=pacman.install
depends=(
${_target}-gcc
${_target}-glibc
@ -17,7 +18,7 @@ source=(pacman-arch.sh
fakebase.desc)
backup=(etc/pacman-${_arch}.conf)
sha256sums=('5fd18c74198312560579d900af2b0e52b757b47fb70e4f78e995b29cf0b5ee7a'
'be2dbe92dc712e6a184c718b02131cfd2f63e728e0b6fec3143c87fd156837d2'
'2fb7c0ecd3005b7657d5c0eeb72d98026acc83d91f52711406c22f0984bd6f66'
'a36c46d05728a3e7a5806e4bf215b0d3cfa76a66bb9357bc852476b654dcdaf8')
prepare() {
@ -29,6 +30,7 @@ prepare() {
build() {
sed "s/@@CARCH@@/${_arch}/g" -i pacman-arch.sh
sed "s/@@CARCH@@/${_arch}/g" -i pacman.conf
sed "s/@@CHOST_PREFIX@@/\/usr\/${_target}\//g" -i pacman.conf
sed "s/@@TIMESTAMP@@/$(date "+%s")/g" -i fakebase.desc
sed "s/@@FAKEBASE_VERSION@@/${pkgver}-${pkgrel}/g" -i fakebase.desc

View File

@ -19,10 +19,10 @@ HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = powerpc
Architecture = @@CARCH@@
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
IgnorePkg = binutils glibc gcc gcc-libs libxcrypt linux-api-headers
#IgnoreGroup =
#NoUpgrade =
@ -69,14 +69,14 @@ LocalFileSigLevel = Optional
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
[testing-any]
Server = https://repo.archlinuxpower.org/testing/any
#[testing-any]
#Server = https://repo.archlinuxpower.org/testing/any
[testing]
Server = https://repo.archlinuxpower.org/testing/$arch
[base-any]
Server = https://repo.archlinuxpower.org/base/any
#[base-any]
#Server = https://repo.archlinuxpower.org/base/any
[base]
Server = https://repo.archlinuxpower.org/base/$arch

View File

@ -0,0 +1,11 @@
post_install() {
echo "Do not forget to edit /etc/pacman.d/mirrorlist.x86_64!"
}
post_upgrade() {
echo "Do not forget to edit /etc/pacman.d/mirrorlist.x86_64!"
}
post_remove() {
echo "Check whether or not to clean up leftover files in /usr/tri-pl-et/"
}

View File

@ -4,10 +4,11 @@ _arch=powerpc64le
_target=${_arch}-unknown-linux-gnu
pkgname=${_target}-pacman
pkgver=2023.09
pkgrel=2
pkgrel=3
pkgdesc="Pacman configurations for ${_target} to install dependencies for cross-compilation"
arch=(any)
url="https://archlinuxpower.org"
install=pacman.install
depends=(
${_target}-gcc
${_target}-glibc
@ -17,7 +18,7 @@ source=(pacman-arch.sh
fakebase.desc)
backup=(etc/pacman-${_arch}.conf)
sha256sums=('5fd18c74198312560579d900af2b0e52b757b47fb70e4f78e995b29cf0b5ee7a'
'be2dbe92dc712e6a184c718b02131cfd2f63e728e0b6fec3143c87fd156837d2'
'2fb7c0ecd3005b7657d5c0eeb72d98026acc83d91f52711406c22f0984bd6f66'
'a36c46d05728a3e7a5806e4bf215b0d3cfa76a66bb9357bc852476b654dcdaf8')
prepare() {
@ -29,6 +30,7 @@ prepare() {
build() {
sed "s/@@CARCH@@/${_arch}/g" -i pacman-arch.sh
sed "s/@@CARCH@@/${_arch}/g" -i pacman.conf
sed "s/@@CHOST_PREFIX@@/\/usr\/${_target}\//g" -i pacman.conf
sed "s/@@TIMESTAMP@@/$(date "+%s")/g" -i fakebase.desc
sed "s/@@FAKEBASE_VERSION@@/${pkgver}-${pkgrel}/g" -i fakebase.desc

View File

@ -19,10 +19,10 @@ HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = powerpc
Architecture = @@CARCH@@
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
IgnorePkg = binutils glibc gcc gcc-libs libxcrypt linux-api-headers
#IgnoreGroup =
#NoUpgrade =
@ -69,14 +69,14 @@ LocalFileSigLevel = Optional
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
[testing-any]
Server = https://repo.archlinuxpower.org/testing/any
#[testing-any]
#Server = https://repo.archlinuxpower.org/testing/any
[testing]
Server = https://repo.archlinuxpower.org/testing/$arch
[base-any]
Server = https://repo.archlinuxpower.org/base/any
#[base-any]
#Server = https://repo.archlinuxpower.org/base/any
[base]
Server = https://repo.archlinuxpower.org/base/$arch

View File

@ -0,0 +1,11 @@
post_install() {
echo "Do not forget to edit /etc/pacman.d/mirrorlist.x86_64!"
}
post_upgrade() {
echo "Do not forget to edit /etc/pacman.d/mirrorlist.x86_64!"
}
post_remove() {
echo "Check whether or not to clean up leftover files in /usr/tri-pl-et/"
}

View File

@ -4,10 +4,11 @@ _arch=riscv64
_target=${_arch}-unknown-linux-gnu
pkgname=${_target}-pacman
pkgver=2023.09
pkgrel=2
pkgrel=3
pkgdesc="Pacman configurations for ${_target} to install dependencies for cross-compilation"
arch=(any)
url="https://archlinuxpower.org"
install=pacman.install
depends=(
${_target}-gcc
${_target}-glibc
@ -17,7 +18,7 @@ source=(pacman-arch.sh
fakebase.desc)
backup=(etc/pacman-${_arch}.conf)
sha256sums=('5fd18c74198312560579d900af2b0e52b757b47fb70e4f78e995b29cf0b5ee7a'
'be2dbe92dc712e6a184c718b02131cfd2f63e728e0b6fec3143c87fd156837d2'
'2fb7c0ecd3005b7657d5c0eeb72d98026acc83d91f52711406c22f0984bd6f66'
'a36c46d05728a3e7a5806e4bf215b0d3cfa76a66bb9357bc852476b654dcdaf8')
prepare() {
@ -29,6 +30,7 @@ prepare() {
build() {
sed "s/@@CARCH@@/${_arch}/g" -i pacman-arch.sh
sed "s/@@CARCH@@/${_arch}/g" -i pacman.conf
sed "s/@@CHOST_PREFIX@@/\/usr\/${_target}\//g" -i pacman.conf
sed "s/@@TIMESTAMP@@/$(date "+%s")/g" -i fakebase.desc
sed "s/@@FAKEBASE_VERSION@@/${pkgver}-${pkgrel}/g" -i fakebase.desc

View File

@ -19,10 +19,10 @@ HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = powerpc
Architecture = @@CARCH@@
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
IgnorePkg = binutils glibc gcc gcc-libs libxcrypt linux-api-headers
#IgnoreGroup =
#NoUpgrade =
@ -69,14 +69,14 @@ LocalFileSigLevel = Optional
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
[testing-any]
Server = https://repo.archlinuxpower.org/testing/any
#[testing-any]
#Server = https://repo.archlinuxpower.org/testing/any
[testing]
Server = https://repo.archlinuxpower.org/testing/$arch
[base-any]
Server = https://repo.archlinuxpower.org/base/any
#[base-any]
#Server = https://repo.archlinuxpower.org/base/any
[base]
Server = https://repo.archlinuxpower.org/base/$arch

View File

@ -0,0 +1,11 @@
post_install() {
echo "Do not forget to edit /etc/pacman.d/mirrorlist.x86_64!"
}
post_upgrade() {
echo "Do not forget to edit /etc/pacman.d/mirrorlist.x86_64!"
}
post_remove() {
echo "Check whether or not to clean up leftover files in /usr/tri-pl-et/"
}

View File

@ -4,21 +4,25 @@ _arch=x86_64
_target=${_arch}-pc-linux-gnu
pkgname=${_target}-pacman
pkgver=2023.09
pkgrel=2
pkgrel=3
pkgdesc="Pacman configurations for ${_target} to install dependencies for cross-compilation"
arch=(any)
url="https://archlinuxpower.org"
install=pacman.install
depends=(
${_target}-gcc
${_target}-glibc
)
_mirrorlist_commit=6e4f5b21223bd655f539d8256deed86d425d383f
source=(pacman-arch.sh
pacman.conf
fakebase.desc)
fakebase.desc
"pacman-mirrorlist-20230820.conf::https://gitlab.archlinux.org/archlinux/packaging/packages/pacman-mirrorlist/-/raw/${_mirrorlist_commit}/mirrorlist")
backup=(etc/pacman-${_arch}.conf)
sha256sums=('5fd18c74198312560579d900af2b0e52b757b47fb70e4f78e995b29cf0b5ee7a'
'be2dbe92dc712e6a184c718b02131cfd2f63e728e0b6fec3143c87fd156837d2'
'a36c46d05728a3e7a5806e4bf215b0d3cfa76a66bb9357bc852476b654dcdaf8')
'71d817548ca64f07af356b7bbb20dcd566dd3a63bf1e68dc57e71a1e827599e1'
'a36c46d05728a3e7a5806e4bf215b0d3cfa76a66bb9357bc852476b654dcdaf8'
'dc63e1f1d117f15df233e4d67d808ec50b21831be1f51d3adc0015ea527a4b6c')
prepare() {
if [ -d /usr/${_target}/var/lib/pacman ]; then
@ -29,6 +33,7 @@ prepare() {
build() {
sed "s/@@CARCH@@/${_arch}/g" -i pacman-arch.sh
sed "s/@@CARCH@@/${_arch}/g" -i pacman.conf
sed "s/@@CHOST_PREFIX@@/\/usr\/${_target}\//g" -i pacman.conf
sed "s/@@TIMESTAMP@@/$(date "+%s")/g" -i fakebase.desc
sed "s/@@FAKEBASE_VERSION@@/${pkgver}-${pkgrel}/g" -i fakebase.desc
@ -38,8 +43,9 @@ package() {
install -d -m755 ${pkgdir}/usr/bin
install -m755 ${srcdir}/pacman-arch.sh ${pkgdir}/usr/bin/pacman-${_arch}
install -d -m 755 ${pkgdir}/etc
install -d -m 755 ${pkgdir}/etc/pacman.d
install -m644 ${srcdir}/pacman.conf ${pkgdir}/etc/pacman-${_arch}.conf
install -m644 ${srcdir}/pacman-mirrorlist-20230820.conf ${pkgdir}/etc/pacman.d/mirrorlist.x86_64
# fake that we install a few basic packages via pacman
install -d -m 755 ${pkgdir}/usr/${_target}/var/lib/pacman/local/fakebase-${pkgver}-${pkgrel}

View File

@ -19,10 +19,10 @@ HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = powerpc
Architecture = @@CARCH@@
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
IgnorePkg = binutils glibc gcc gcc-libs libxcrypt linux-api-headers
#IgnoreGroup =
#NoUpgrade =
@ -69,17 +69,18 @@ LocalFileSigLevel = Optional
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
[testing-any]
Server = https://repo.archlinuxpower.org/testing/any
[testing]
Server = https://repo.archlinuxpower.org/testing/$arch
#[core-testing]
#Include = /etc/pacman.d/mirrorlist.x86_64
[base-any]
Server = https://repo.archlinuxpower.org/base/any
[core]
Include = /etc/pacman.d/mirrorlist.x86_64
[base]
Server = https://repo.archlinuxpower.org/base/$arch
#[extra-testing]
#Include = /etc/pacman.d/mirrorlist.x86_64
[extra]
Include = /etc/pacman.d/mirrorlist.x86_64
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.

View File

@ -0,0 +1,11 @@
post_install() {
echo "Do not forget to edit /etc/pacman.d/mirrorlist.x86_64!"
}
post_upgrade() {
echo "Do not forget to edit /etc/pacman.d/mirrorlist.x86_64!"
}
post_remove() {
echo "Check whether or not to clean up leftover files in /usr/tri-pl-et/"
}