Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b9cc0fc

Browse files
magalilemesnukelet
authored andcommitted
UBUNTU: [Packaging] oracle-6.14: Add helper scripts
Signed-off-by: Magali Lemes <[email protected]>
1 parent 7a78f38 commit b9cc0fc

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#!/bin/bash -eu
2+
3+
if [ -f debian/debian.env ]; then
4+
# shellcheck disable=SC1091
5+
. debian/debian.env
6+
fi
7+
8+
if [ ! -d "${DEBIAN}" ]; then
9+
echo You must run this script from the top directory of this repository.
10+
exit 1
11+
fi
12+
13+
CONF="${DEBIAN}"/etc/update.conf
14+
if [ -f "${CONF}" ]; then
15+
# shellcheck disable=SC1090
16+
. "${CONF}"
17+
fi
18+
19+
FOREIGN_ARCHES=""
20+
LOCAL_CONF="${DEBIAN}/etc/local.conf"
21+
if [ -f "${LOCAL_CONF}" ]; then
22+
# shellcheck disable=SC1090
23+
. "${LOCAL_CONF}"
24+
fi
25+
26+
SKIP_RULES_D=${SKIP_RULES_D:-}
27+
28+
#
29+
# Update package and DTB settings from master.
30+
#
31+
if [ -z "${SKIP_RULES_D}" ] ; then
32+
rsync -avc "${DEBIAN_MASTER}/rules.d/"*.mk "${DEBIAN}/rules.d/"
33+
fi
34+
35+
# Remove the .mk files from the arch's that are not supported
36+
for i in ${FOREIGN_ARCHES}
37+
do
38+
rm -f "${DEBIAN}/rules.d/${i}.mk"
39+
git rm -f --ignore-unmatch "${DEBIAN}/rules.d/${i}.mk" || true
40+
done
41+
42+
#
43+
# Update modprobe.d from master
44+
#
45+
# Some releases (trusty) don't have this directory, and rsync would fail
46+
# without this check.
47+
if [ -d "${DEBIAN}/modprobe.d/" ]; then
48+
rsync -avc --delete "${DEBIAN_MASTER}/modprobe.d/" "${DEBIAN}/modprobe.d"
49+
fi
50+
51+
cp -p "${DEBIAN_MASTER}/control.d/"*.inclusion-list "${DEBIAN}/control.d"
52+
53+
cp -p "${DEBIAN_MASTER}/reconstruct" "${DEBIAN}/reconstruct"
54+
55+
if [ -x "${DEBIAN}/scripts/helpers/local-mangle" ]; then
56+
"./${DEBIAN}/scripts/helpers/local-mangle"
57+
fi
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash -eu
2+
3+
. debian/debian.env
4+
5+
# Ovveride default GCC version to the default in Noble
6+
GCC="gcc-13"
7+
8+
# Override options in rules.d/hooks.mk (normally master does not have this
9+
# file but it got added for generic annotations enforcement.
10+
cat <<EOD >"${DEBIAN}/rules.d/hooks.mk"
11+
do_tools_common = false
12+
do_tools_host = false
13+
do_lib_rust = false
14+
gcc = $GCC
15+
rustc = rustc-1.80
16+
rustfmt = /usr/lib/rust-1.80/bin/rustfmt
17+
bindgen = bindgen-0.65
18+
EOD

0 commit comments

Comments
 (0)