diff options
author | Jybz <j.biernacki@free.fr> | 2020-08-15 23:10:11 +0200 |
---|---|---|
committer | Jybz <j.biernacki@free.fr> | 2020-08-15 23:10:11 +0200 |
commit | 12efc6b44cce0db98ae07f5310861a19749a81f6 (patch) | |
tree | 57326a19ce8754c6230226b3f3254ed26c9700a8 /create_arm_image.sh | |
parent | eb89e0a51ae1ccbbfbe043e955dcc74d05617574 (diff) | |
download | mageia4arm-12efc6b44cce0db98ae07f5310861a19749a81f6.tar mageia4arm-12efc6b44cce0db98ae07f5310861a19749a81f6.tar.gz mageia4arm-12efc6b44cce0db98ae07f5310861a19749a81f6.tar.bz2 mageia4arm-12efc6b44cce0db98ae07f5310861a19749a81f6.tar.xz mageia4arm-12efc6b44cce0db98ae07f5310861a19749a81f6.zip |
Permits patching for bug with aarch64 on x86_64 build
Diffstat (limited to 'create_arm_image.sh')
-rwxr-xr-x | create_arm_image.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/create_arm_image.sh b/create_arm_image.sh index 0e037f8..01855e6 100755 --- a/create_arm_image.sh +++ b/create_arm_image.sh @@ -205,12 +205,20 @@ function addurpmimedia() /sbin/urpmi.removemedia --urpmi-root "${BUILD_PATH}" -a info "Adding media" + if [ -e "${CONFIG_PATH}/media.pm.patch" ]; then + warning "A patch for media.pm found, patching host system script /usr/share/perl5/vendor_perl/urpm/media.pm ..." + patch -i "${CONFIG_PATH}/media.pm.patch" /usr/share/perl5/vendor_perl/urpm/media.pm + fi if [ ! -z "${MIRROR}" ] ; then /sbin/urpmi.addmedia --urpmi-root "${BUILD_PATH}" --distrib "${MIRROR}" else info "MIRROR variable not set, using mirrorlist." /sbin/urpmi.addmedia --urpmi-root "${BUILD_PATH}" --distrib --mirrorlist "http://mirrors.mageia.org/api/mageia.${MAGEIA_VERSION}.${ARM_VERSION}.list" fi + if [ -e "${CONFIG_PATH}/media.pm.patch" ]; then + warning "Reverting patch on host system script..." + patch -R -i "${CONFIG_PATH}/media.pm.patch" /usr/share/perl5/vendor_perl/urpm/media.pm + fi err=${?} if [ ${err} -ne 0 ]; then |