mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 20:48:27 +00:00
Merge pull request #11627 from qlyoung/update-alpine-build
Update Alpine packaging foo + change docker images back over to Alpine-provided libyang
This commit is contained in:
commit
fad64d02e4
@ -18,7 +18,7 @@ makedepends="ncurses-dev net-snmp-dev gawk texinfo perl
|
|||||||
ncurses-libs ncurses-terminfo ncurses-terminfo-base patch pax-utils pcre
|
ncurses-libs ncurses-terminfo ncurses-terminfo-base patch pax-utils pcre
|
||||||
perl pkgconf python3 python3-dev readline readline-dev sqlite-libs
|
perl pkgconf python3 python3-dev readline readline-dev sqlite-libs
|
||||||
squashfs-tools sudo tar texinfo xorriso xz-libs py-pip rtrlib rtrlib-dev
|
squashfs-tools sudo tar texinfo xorriso xz-libs py-pip rtrlib rtrlib-dev
|
||||||
py3-sphinx elfutils elfutils-dev"
|
py3-sphinx elfutils elfutils-dev libyang-dev"
|
||||||
checkdepends="pytest py-setuptools"
|
checkdepends="pytest py-setuptools"
|
||||||
install="$pkgname.pre-install $pkgname.pre-deinstall $pkgname.post-deinstall"
|
install="$pkgname.pre-install $pkgname.pre-deinstall $pkgname.post-deinstall"
|
||||||
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg"
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg"
|
||||||
|
@ -15,11 +15,12 @@ RUN adduser -D -G abuild builder && su builder -c 'abuild-keygen -a -n'
|
|||||||
# This stage builds a libyang APK from source
|
# This stage builds a libyang APK from source
|
||||||
FROM alpine-builder as libyang-builder
|
FROM alpine-builder as libyang-builder
|
||||||
RUN mkdir -p /libyang && chown -R builder /pkgs /libyang
|
RUN mkdir -p /libyang && chown -R builder /pkgs /libyang
|
||||||
COPY docker/alpine/libyang/ /libyang
|
# -- Not currently needed - libyang currently available in Alpine upstream
|
||||||
USER builder
|
# COPY docker/alpine/libyang/ /libyang
|
||||||
RUN cd /libyang \
|
# USER builder
|
||||||
&& abuild checksum \
|
# RUN cd /libyang \
|
||||||
&& abuild -r -P /pkgs/apk
|
# && abuild checksum \
|
||||||
|
# && abuild -r -P /pkgs/apk
|
||||||
|
|
||||||
# This stage builds a dist tarball from the source
|
# This stage builds a dist tarball from the source
|
||||||
FROM alpine:3.15 as source-builder
|
FROM alpine:3.15 as source-builder
|
||||||
@ -37,10 +38,11 @@ RUN source /src/alpine/APKBUILD.in \
|
|||||||
&& pip install pytest
|
&& pip install pytest
|
||||||
|
|
||||||
RUN mkdir -p /pkgs/apk
|
RUN mkdir -p /pkgs/apk
|
||||||
COPY --from=libyang-builder /pkgs/apk/ /pkgs/apk/
|
# -- Not needed while libyang is not built
|
||||||
RUN apk add \
|
# COPY --from=libyang-builder /pkgs/apk/ /pkgs/apk/
|
||||||
--no-cache \
|
# RUN apk add \
|
||||||
--allow-untrusted /pkgs/apk/*/*.apk
|
# --no-cache \
|
||||||
|
# --allow-untrusted /pkgs/apk/*/*.apk \
|
||||||
|
|
||||||
COPY . /src
|
COPY . /src
|
||||||
ARG PKGVER
|
ARG PKGVER
|
||||||
@ -53,12 +55,13 @@ RUN cd /src \
|
|||||||
|
|
||||||
# This stage builds an APK from the dist tarball
|
# This stage builds an APK from the dist tarball
|
||||||
FROM alpine-builder as frr-apk-builder
|
FROM alpine-builder as frr-apk-builder
|
||||||
COPY --from=libyang-builder /pkgs/apk/ /pkgs/apk/
|
# -- Not needed while libyang is not built
|
||||||
|
# COPY --from=libyang-builder /pkgs/apk/ /pkgs/apk/
|
||||||
|
# RUN apk add \
|
||||||
|
# --no-cache \
|
||||||
|
# --allow-untrusted /pkgs/apk/*/*.apk
|
||||||
COPY --from=source-builder /src/frr-*.tar.gz /src/alpine/* /dist/
|
COPY --from=source-builder /src/frr-*.tar.gz /src/alpine/* /dist/
|
||||||
RUN find /pkgs/apk -type f -name APKINDEX.tar.gz -delete
|
RUN find /pkgs/apk -type f -name APKINDEX.tar.gz -delete
|
||||||
RUN apk add \
|
|
||||||
--no-cache \
|
|
||||||
--allow-untrusted /pkgs/apk/*/*.apk
|
|
||||||
RUN chown -R builder /dist /pkgs
|
RUN chown -R builder /dist /pkgs
|
||||||
USER builder
|
USER builder
|
||||||
RUN cd /dist \
|
RUN cd /dist \
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
||||||
# Maintainer: Christian Franke <nobody@nowhere.ws>
|
# Maintainer: Christian Franke <nobody@nowhere.ws>
|
||||||
pkgname=libyang
|
pkgname=libyang
|
||||||
pkgver=2.0.7
|
pkgver=2.0.194
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
pkgdesc="YANG data modelling language parser and toolkit"
|
pkgdesc="YANG data modelling language parser and toolkit"
|
||||||
url="https://github.com/CESNET/libyang"
|
url="https://github.com/CESNET/libyang"
|
||||||
@ -10,9 +10,7 @@ license="BSD-3-Clause-Clear"
|
|||||||
makedepends="bison cmake cmocka-dev flex pcre2-dev"
|
makedepends="bison cmake cmocka-dev flex pcre2-dev"
|
||||||
checkdepends="expect grep shunit2"
|
checkdepends="expect grep shunit2"
|
||||||
subpackages="$pkgname-dev $pkgname-doc"
|
subpackages="$pkgname-dev $pkgname-doc"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/CESNET/libyang/archive/v$pkgver.tar.gz
|
source="$pkgname-$pkgver.tar.gz::https://github.com/CESNET/libyang/archive/v$pkgver.tar.gz"
|
||||||
10-remove-non-standard-headers.patch
|
|
||||||
11-utest-dont-parse-dlerror.patch"
|
|
||||||
|
|
||||||
# secfixes:
|
# secfixes:
|
||||||
# 1.0.215-r1:
|
# 1.0.215-r1:
|
||||||
@ -40,7 +38,3 @@ build() {
|
|||||||
package() {
|
package() {
|
||||||
make -C build DESTDIR="$pkgdir" install
|
make -C build DESTDIR="$pkgdir" install
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="edb1d8d372b25ed820fa312e0dc96d4af7c8cd5ddeb785964de73f64774062ea7a5586bb27e2039ad24189d4a2ba04268921ca86e82423fc48647d1d10a2a0a7 libyang-2.0.7.tar.gz
|
|
||||||
385008c715e6b0dc9e8f33c9cb550b3af7ee16f056f35d09a4ba01b9e00ddb88940915f93fc608fedd30b4f9a6a1503df414ae0be64b1263681b0ee18e6f4db8 10-remove-non-standard-headers.patch
|
|
||||||
b16881d301a6aec68fbe6bfb7ba53a8fcdb4b9eead3b03573e0e2a4a8c3c3d6962db623be14d29c023b5a7ad0f685da1f6033dd9985f7a2914ad2f4da07e60cb 11-utest-dont-parse-dlerror.patch"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user