summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2023-05-05 19:58:15 +0000
committerPascal Terjan <pterjan@gmail.com>2023-05-28 18:52:30 +0000
commitfdcd46c9af12f58ccc1a94cd68e0f977e825ed7d (patch)
treeb1dff85da61e5a953b9749d2b322fcf378c911fa
parent69f18685326a2a977422d7b7ba8251658d33344e (diff)
downloaddrakx-fdcd46c9af12f58ccc1a94cd68e0f977e825ed7d.tar
drakx-fdcd46c9af12f58ccc1a94cd68e0f977e825ed7d.tar.gz
drakx-fdcd46c9af12f58ccc1a94cd68e0f977e825ed7d.tar.bz2
drakx-fdcd46c9af12f58ccc1a94cd68e0f977e825ed7d.tar.xz
drakx-fdcd46c9af12f58ccc1a94cd68e0f977e825ed7d.zip
Add support for aarch64 in stage2
-rw-r--r--perl-install/any.pm2
-rwxr-xr-xperl-install/c/Makefile.PL2
-rw-r--r--perl-install/common.pm2
-rw-r--r--perl-install/install/share/list.xml12
-rwxr-xr-xtools/install-xml-file-list2
5 files changed, 16 insertions, 4 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 9ffe0a86d..5c67cb7a3 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -991,7 +991,7 @@ sub writeandclean_ldsoconf {
my @default = ('/lib', '/usr/lib'); #- no need to have /lib and /usr/lib in ld.so.conf
my @suggest = ('/usr/lib/qt3/lib'); #- needed for upgrade where package renaming can cause this to disappear
- if (arch() =~ /x86_64/) {
+ if (arch() =~ /x86_64|aarch64/) {
@default = map { $_, $_ . '64' } @default;
@suggest = map { $_, $_ . '64' } @suggest;
}
diff --git a/perl-install/c/Makefile.PL b/perl-install/c/Makefile.PL
index f776d27f2..6b4358ffc 100755
--- a/perl-install/c/Makefile.PL
+++ b/perl-install/c/Makefile.PL
@@ -4,7 +4,7 @@ use Config;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
-my $lib = arch() =~ /x86_64/ ? 'lib64' : 'lib';
+my $lib = arch() =~ /x86_64|aarch64/ ? 'lib64' : 'lib';
my $libs = '-lldetect -lparted';
diff --git a/perl-install/common.pm b/perl-install/common.pm
index 508e6b31f..de8e705d1 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -715,7 +715,7 @@ sub update_gnomekderc_no_create {
}
sub get_libdir() {
- arch() =~ /x86_64/ ? "lib64" : "lib";
+ arch() =~ /x86_64|aarch64/ ? "lib64" : "lib";
}
=item is_uefi()
diff --git a/perl-install/install/share/list.xml b/perl-install/install/share/list.xml
index 83766f27f..3a0e63e5f 100644
--- a/perl-install/install/share/list.xml
+++ b/perl-install/install/share/list.xml
@@ -245,7 +245,9 @@
libnss_files.so.2
libnss_dns.so.2
libresolv.so.2
+ <if ARCH="i.86|x86_64">
ld-linux*.so.*
+ </if>
<!-- needed for mount.ntfs-3g -->
libfuse.so.2
@@ -258,6 +260,11 @@
</from>
webkit2gtk-4.1/injected-bundle/libwebkit2gtkinjectedbundle.so
</from>
+<from dir="/lib">
+ <if ARCH="aarch64">
+ ld-linux*.so.*
+ </if>
+</from>
</filter>
<from>
@@ -495,6 +502,11 @@
asm/unistd_32.ph
asm/unistd_64.ph
</if>
+ <if ARCH="aarch64">
+ asm-generic/unistd.ph
+ asm-generic/bitsperlong.ph
+ asm/bitsperlong.ph
+ </if>
asm/unistd.ph
auto/B/B.so
auto/Cwd/Cwd.so
diff --git a/tools/install-xml-file-list b/tools/install-xml-file-list
index 64c70b9c6..4e7aad347 100755
--- a/tools/install-xml-file-list
+++ b/tools/install-xml-file-list
@@ -25,7 +25,7 @@ my $verbose;
my $initial_dir = cwd();
my $ARCH = arch() =~ /i.86/ ? 'i386' : arch();
$ARCH =~ s/^(arm).*/$1/;
-my $LIB = arch() =~ /x86_64/ ? "lib64" : "lib";
+my $LIB = arch() =~ /x86_64|aarch64/ ? "lib64" : "lib";
my $base_cpio_options = '-pumd --quiet';