mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-25 15:02:13 +00:00
debian: Switch to elementpath 2.5.0-1 and xmlschema 1.10.0-1
After changes from https://github.com/projectacrn/acrn-hypervisor/pull/7390 we can move to latest versions available. Tracked-On: #6688 Signed-off-by: Helmut Buchsbaum <helmut.buchsbaum@opensource.tttech-industrial.com>
This commit is contained in:
parent
5f1ee365d9
commit
8ecf0fe7e8
4
debian/control
vendored
4
debian/control
vendored
@ -33,8 +33,8 @@ Build-Depends:
|
||||
acpica-tools (>= 20200326),
|
||||
python3-lxml,
|
||||
python3-defusedxml,
|
||||
python3-xmlschema (= 1.9.2-1),
|
||||
python3-elementpath (= 2.4.0-1)
|
||||
python3-xmlschema (>= 1.10.0),
|
||||
python3-elementpath (>= 2.5.0)
|
||||
Standards-Version: 4.3.0
|
||||
Homepage: https://projectacrn.org/
|
||||
Vcs-Browser: https://github.com/projectacrn/acrn-hypervisor
|
||||
|
41
debian/docker/Dockerfile
vendored
41
debian/docker/Dockerfile
vendored
@ -68,14 +68,14 @@ RUN mkdir -p /opt/apt && cd /opt/apt && \
|
||||
RUN git config --global user.name "ACRN Debian Package Build" && \
|
||||
git config --global user.email "acrn-dev@lists.projectacrn.org"
|
||||
|
||||
# elementpath 2.4.0
|
||||
# Attention: 2.4.0 not available at Debian package repos, so
|
||||
# import the upstream version and repackage
|
||||
RUN NEEDEDVERSION="2.4.0" && \
|
||||
# elementpath >=2.5.0
|
||||
RUN NEEDEDVERSION="2.5.0"; \
|
||||
PKGVERSION=$(apt-cache policy python3-elementpath | grep "Candidate:" | awk '{ print $2}'); \
|
||||
if [ -z "${PKGVERSION}" -o "${NEEDEDVERSION}" != "$(echo ${NEEDEDVERSION}\\n${PKGVERSION} | sort -V | head -n1)" ]; then \
|
||||
srcpkg="elementpath" && \
|
||||
url="https://salsa.debian.org/debian/${srcpkg}.git" && \
|
||||
upstream_tag="upstream/2.3.1" && \
|
||||
debian_tag="debian/2.3.1-1" && \
|
||||
upstream_tag="upstream/${NEEDEDVERSION}" && \
|
||||
debian_tag="debian/${NEEDEDVERSION}-1" && \
|
||||
debian_branch="master" && \
|
||||
upstream_branch="upstream" && \
|
||||
mkdir -p /usr/src/${srcpkg} && cd /usr/src/${srcpkg} && \
|
||||
@ -98,9 +98,6 @@ RUN NEEDEDVERSION="2.4.0" && \
|
||||
fi && \
|
||||
git checkout -b ${upstream_branch} ${upstream_tag} && \
|
||||
git checkout -b ${debian_branch} ${debian_tag} && \
|
||||
sed -i 's#/latest##g' debian/watch && git add -u && git commit -m "d/watch: Fix watch url to get arbitrary versions" && \
|
||||
gbp import-orig --uscan --upstream-version ${NEEDEDVERSION} && \
|
||||
EDITOR=true DEBEMAIL=$(git config user.email) DEBFULLNAME=$(git config user.name) gbp dch -R -N ${NEEDEDVERSION}-1 --commit && \
|
||||
mk-build-deps --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' --install debian/control --remove && \
|
||||
rm -f $(dpkg-parsechangelog -Ssource)-build-deps_$(dpkg-parsechangelog -Sversion)_*.* && \
|
||||
DEB_BUILD_OPTIONS="nocheck" gbp buildpackage -b -us -uc && \
|
||||
@ -112,24 +109,23 @@ RUN NEEDEDVERSION="2.4.0" && \
|
||||
done && \
|
||||
cd /usr/src && mv *.deb /opt/apt && \
|
||||
cd /opt/apt && apt-ftparchive packages . > Packages && cp .Release.header Release && apt-ftparchive release . >> Release && \
|
||||
ls -al /opt/apt && \
|
||||
cat /etc/apt/preferences.d/pin-acrn && \
|
||||
apt-get update -y
|
||||
apt-get update -y; \
|
||||
fi
|
||||
|
||||
# xmlschema 1.9.2
|
||||
# Again we need to repackage. This the upstream version is already available, but no debian version.
|
||||
# Use 1.4.2-1 as base
|
||||
RUN NEEDEDVERSION="1.9.2"; \
|
||||
# xmlschema >=1.10.0
|
||||
RUN NEEDEDVERSION="1.10.0"; \
|
||||
PKGVERSION=$(apt-cache policy python3-xmlschema | grep "Candidate:" | awk '{ print $2}'); \
|
||||
if [ -z "${PKGVERSION}" -o "${NEEDEDVERSION}" != "$(echo ${NEEDEDVERSION}\\n${PKGVERSION} | sort -V | head -n1)" ]; then \
|
||||
srcpkg="xmlschema" && \
|
||||
url="https://salsa.debian.org/python-team/packages/python-xmlschema.git" && \
|
||||
url="https://salsa.debian.org/python-team/packages/python-${srcpkg}.git" && \
|
||||
upstream_tag="upstream/${NEEDEDVERSION}" && \
|
||||
debian_tag="debian/1.4.2-1" && \
|
||||
debian_tag="debian/${NEEDEDVERSION}-1" && \
|
||||
debian_branch="master" && \
|
||||
upstream_branch="upstream" && \
|
||||
mkdir -p /usr/src/${srcpkg} && cd /usr/src/${srcpkg} && \
|
||||
git init && git remote add origin ${url} && \
|
||||
git fetch origin refs/tags/${upstream_tag}:refs/tags/${upstream_tag} && \
|
||||
git fetch origin refs/tags/${debian_tag}:refs/tags/${debian_tag} && \
|
||||
git fetch origin --depth 1 refs/tags/${upstream_tag}:refs/tags/${upstream_tag} && \
|
||||
git fetch origin --depth 1 refs/tags/${debian_tag}:refs/tags/${debian_tag} && \
|
||||
if git show ${debian_tag}:debian | grep -qw gbp.conf; then \
|
||||
pristine_tar=$(git show ${debian_tag}:debian/gbp.conf | awk -F "=" '/pristine-tar/ {print $2}' | tr '[:upper:]' '[:lower:]' | xargs); \
|
||||
if [ "${pristine_tar}" = "true" ]; then \
|
||||
@ -146,8 +142,6 @@ RUN NEEDEDVERSION="1.9.2"; \
|
||||
fi && \
|
||||
git checkout -b ${upstream_branch} ${upstream_tag} && \
|
||||
git checkout -b ${debian_branch} ${debian_tag} && \
|
||||
git merge --no-edit ${upstream_tag} && \
|
||||
EDITOR=true DEBEMAIL=$(git config user.email) DEBFULLNAME=$(git config user.name) gbp dch -R -N ${NEEDEDVERSION}-1 --commit && \
|
||||
mk-build-deps --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' --install debian/control --remove && \
|
||||
rm -f $(dpkg-parsechangelog -Ssource)-build-deps_$(dpkg-parsechangelog -Sversion)_*.* && \
|
||||
DEB_BUILD_OPTIONS="nocheck" gbp buildpackage -b -us -uc && \
|
||||
@ -159,7 +153,8 @@ RUN NEEDEDVERSION="1.9.2"; \
|
||||
done && \
|
||||
cd /usr/src && mv *.deb /opt/apt && \
|
||||
cd /opt/apt && apt-ftparchive packages . > Packages && cp .Release.header Release && apt-ftparchive release . >> Release && \
|
||||
apt-get update
|
||||
apt-get update -y; \
|
||||
fi
|
||||
|
||||
# acpica-unix >= 20200925
|
||||
RUN NEEDEDVERSION="20200925"; \
|
||||
|
2
debian/docker/create-apt-repo.sh
vendored
2
debian/docker/create-apt-repo.sh
vendored
@ -24,7 +24,7 @@ fi
|
||||
# copy all Debian packages in local APT repo and create local APT repository
|
||||
export HOME=$(echo ~docker-build)
|
||||
sudo -E -u docker-build /bin/bash -c "\
|
||||
cd $1 && cp /opt/apt/*.deb . && \
|
||||
cd $1 && if ls -A /opt/apt/*.deb >/dev/null 2>&1; then cp /opt/apt/*.deb .; fi && \
|
||||
apt-ftparchive packages . > Packages && \
|
||||
cp /opt/apt/.Release.header Release && \
|
||||
apt-ftparchive release . >> Release"
|
||||
|
Loading…
Reference in New Issue
Block a user