pkg: debian: Fix meta package dependencies after adjusting LOCALVERSION
This commit is contained in:
parent
0703808b8d
commit
23e15cea65
2
.github/scripts/package/debian.sh
vendored
2
.github/scripts/package/debian.sh
vendored
|
@ -117,7 +117,7 @@ build-packages)
|
||||||
|
|
||||||
pushd pkg/debian/meta || exit 1
|
pushd pkg/debian/meta || exit 1
|
||||||
|
|
||||||
./mkdebian.sh "$(make -C ../kernel/linux -s kernelrelease)" "${KERNEL_REVISION}"
|
./mkdebian.sh "$(make -C ../kernel/linux -s kernelrelease)"
|
||||||
dpkg-buildpackage -b -Zxz
|
dpkg-buildpackage -b -Zxz
|
||||||
|
|
||||||
popd || exit 1
|
popd || exit 1
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
|
||||||
kernelrelease="${1}"
|
kernelrelease="${1}"
|
||||||
pkgrevision="${2}"
|
suffix="${2:+-${2}}"
|
||||||
suffix="${3:+-${3}}"
|
|
||||||
|
|
||||||
distribution="unstable"
|
distribution="unstable"
|
||||||
debarch="amd64"
|
debarch="amd64"
|
||||||
debcompat="10"
|
debcompat="10"
|
||||||
sourcename="linux-surface${suffix}"
|
sourcename="linux-surface${suffix}"
|
||||||
maintainer="surfacebot <surfacebot@users.noreply.github.com>"
|
maintainer="surfacebot <surfacebot@users.noreply.github.com>"
|
||||||
pkgversion="${kernelrelease}-${pkgrevision}"
|
|
||||||
|
|
||||||
image_pkgname="linux-image-surface${suffix}"
|
image_pkgname="linux-image-surface${suffix}"
|
||||||
image_pkgname_actual="linux-image-${kernelrelease}"
|
image_pkgname_actual="linux-image-${kernelrelease}"
|
||||||
|
@ -28,7 +26,7 @@ echo "${debarch}" > "debian/arch"
|
||||||
echo "${debcompat}" > "debian/compat"
|
echo "${debcompat}" > "debian/compat"
|
||||||
|
|
||||||
cat <<EOF > "debian/changelog"
|
cat <<EOF > "debian/changelog"
|
||||||
${sourcename} (${pkgversion}) ${distribution}; urgency=medium
|
${sourcename} (${kernelrelease}) ${distribution}; urgency=medium
|
||||||
|
|
||||||
* Linux kernel for Microsoft Surface devices.
|
* Linux kernel for Microsoft Surface devices.
|
||||||
|
|
||||||
|
@ -44,14 +42,14 @@ Homepage: https://github.com/linux-surface/linux-surface
|
||||||
|
|
||||||
Package: ${image_pkgname}
|
Package: ${image_pkgname}
|
||||||
Architecture: ${debarch}
|
Architecture: ${debarch}
|
||||||
Depends: ${image_pkgname_actual} (= ${pkgversion})
|
Depends: ${image_pkgname_actual} (= ${kernelrelease})
|
||||||
Recommends: ${recommends}
|
Recommends: ${recommends}
|
||||||
Description:
|
Description:
|
||||||
Meta-package for linux-surface kernel images.
|
Meta-package for linux-surface kernel images.
|
||||||
|
|
||||||
Package: ${headers_pkgname}
|
Package: ${headers_pkgname}
|
||||||
Architecture: ${debarch}
|
Architecture: ${debarch}
|
||||||
Depends: ${headers_pkgname_actual} (= ${pkgversion})
|
Depends: ${headers_pkgname_actual} (= ${kernelrelease})
|
||||||
Description:
|
Description:
|
||||||
Meta-package for linux-surface headers.
|
Meta-package for linux-surface headers.
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in a new issue