Skip to content

Commit b65ad06

Browse files
authored
distro/adaptation: reorganize dirs
close #489 Signed-off-by: Ooi Han Yi [email protected] Signed-off-by: Chong Tze Suin [email protected]
1 parent 5be149f commit b65ad06

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+61
-61
lines changed

distro/adaptation/aliyun

-1
This file was deleted.

distro/adaptation/aliyun/default

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../redhat/default
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
1-
autopoint: gettext
2-
bsdtar: bsdtar
3-
btrfs-tools:
4-
gfortran: gcc-gfortran
5-
libarchive-tools: libarchive-devel
6-
libbabeltrace-ctf-dev: libbabeltrace-devel
7-
libbabeltrace-ctf1: libbabeltrace
8-
libbabeltrace-dev: libbabeltrace-devel
9-
libbsd-dev: libbsd-devel
10-
libbsd0: libbsd
11-
libcapstone-dev: capstone-devel
12-
libdw-dev: elfutils-devel
13-
libelf-dev: elfutils-devel
14-
libgles2-mesa:
15-
libmariadb3: mariadb-connector-c
16-
libopencryptoki0:
17-
libpfm-dev: libpfm-devel
18-
libpfm: libpfm-devel
19-
libpng12-dev:
20-
libreadline5: readline
21-
libstdc++-dev: libstdc++-devel libstdc++-static
22-
libtracefs-dev:
23-
libtsan0: libtsan
24-
libvirt-clients:
25-
libvirt-daemon-system:
26-
libvirt-dev:
27-
libyaml-cpp-dev: yaml-cpp-devel
28-
libzstd-dev: libzstd-devel
29-
linux-cpupower:
30-
mysql-server:
31-
network-manager:
32-
openbsd-inetd:
33-
perl-modules-5: perl
34-
pkg-config:
35-
python3-dev: python3-devel
36-
python3-minimal: python3
37-
python3-openssl: python3-pyOpenSSL
38-
python3-pkg-resources: python3-setuptools
39-
rstatd:
40-
rt-tests:
41-
ruby-dev: ruby-devel
42-
rusersd:
43-
sg3-utils:
44-
tshark:
45-
update-inetd:
46-
wpasupplicant:
47-
xutils-dev:
1+
autopoint: gettext
2+
bsdtar: bsdtar
3+
btrfs-tools:
4+
gfortran: gcc-gfortran
5+
libarchive-tools: libarchive-devel
6+
libbabeltrace-ctf-dev: libbabeltrace-devel
7+
libbabeltrace-ctf1: libbabeltrace
8+
libbabeltrace-dev: libbabeltrace-devel
9+
libbsd-dev: libbsd-devel
10+
libbsd0: libbsd
11+
libcapstone-dev: capstone-devel
12+
libdw-dev: elfutils-devel
13+
libelf-dev: elfutils-devel
14+
libgles2-mesa:
15+
libmariadb3: mariadb-connector-c
16+
libopencryptoki0:
17+
libpfm-dev: libpfm-devel
18+
libpfm: libpfm-devel
19+
libpng12-dev:
20+
libreadline5: readline
21+
libstdc++-dev: libstdc++-devel libstdc++-static
22+
libtracefs-dev:
23+
libtsan0: libtsan
24+
libvirt-clients:
25+
libvirt-daemon-system:
26+
libvirt-dev:
27+
libyaml-cpp-dev: yaml-cpp-devel
28+
libzstd-dev: libzstd-devel
29+
linux-cpupower:
30+
mysql-server:
31+
network-manager:
32+
openbsd-inetd:
33+
perl-modules-5: perl
34+
pkg-config:
35+
python3-dev: python3-devel
36+
python3-minimal: python3
37+
python3-openssl: python3-pyOpenSSL
38+
python3-pkg-resources: python3-setuptools
39+
rstatd:
40+
rt-tests:
41+
ruby-dev: ruby-devel
42+
rusersd:
43+
sg3-utils:
44+
tshark:
45+
update-inetd:
46+
wpasupplicant:
47+
xutils-dev:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

distro/adaptation/debian-bookworm_sid

-1
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

distro/adaptation/debian/bookworm_sid

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12
File renamed without changes.
File renamed without changes.

distro/adaptation/fedora-39

-1
This file was deleted.
File renamed without changes.

distro/adaptation/fedora/39

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
38
File renamed without changes.
File renamed without changes.
File renamed without changes.

distro/adaptation/oracle

-1
This file was deleted.

distro/adaptation/oracle-9

-1
This file was deleted.

distro/adaptation/oracle/9

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../centos/9

distro/adaptation/oracle/default

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../centos/default

distro/adaptation/redhat

-1
This file was deleted.

distro/adaptation/redhat-9

-1
This file was deleted.
File renamed without changes.

distro/adaptation/redhat/9

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../centos/9

distro/adaptation/redhat/default

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../centos/default

distro/adaptation/rocky

-1
This file was deleted.

distro/adaptation/rocky-9

-1
This file was deleted.

distro/adaptation/rocky/9

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../centos/9

distro/adaptation/rocky/default

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../centos/default
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

lib/install.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
require "#{LKP_SRC}/lib/programs"
77

88
def adapt_packages(distro, generic_packages)
9-
distro_file = "#{LKP_SRC}/distro/adaptation/#{distro}"
9+
distro_file = "#{LKP_SRC}/distro/adaptation/#{distro}/default"
1010
return generic_packages unless File.exist? distro_file
1111

1212
distro_packages = YAML.load_file(distro_file)

lib/install.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ adapt_package()
3838
# There are two kinds of packages, packages provided by distribution and packages installed by makepkg
3939
# The priority for package adaptation is as follow:
4040
# - adaptation by makepkg, via $LKP_SRC/distro/adaptation-pkg/$distro
41-
# - adaptation by distro version explicitly, via $LKP_SRC/distro/adaptation/$distro-$_system_version
42-
# - adaptation by distro explicitly, via $LKP_SRC/distro/adaptation/$distro
41+
# - adaptation by distro version explicitly, via $LKP_SRC/distro/adaptation/$distro/$_system_version
42+
# - adaptation by distro explicitly, via $LKP_SRC/distro/adaptation/$distro/default
4343
# - default to input package name, not found in above
4444
adapt_packages()
4545
{
4646
local distro_file distro_ver_file
4747
if [ -z "$PKG_TYPE" ]; then
48-
distro_ver_file="$LKP_SRC/distro/adaptation/$distro-$_system_version"
49-
distro_file="$LKP_SRC/distro/adaptation/$distro"
48+
distro_ver_file="$LKP_SRC/distro/adaptation/$distro/$_system_version"
49+
distro_file="$LKP_SRC/distro/adaptation/$distro/default"
5050
else
5151
distro_file="$LKP_SRC/distro/adaptation-$PKG_TYPE/$distro"
5252
fi

0 commit comments

Comments
 (0)