GithubHelp home page GithubHelp logo

arm support? about alpine-pkg-glibc HOT 7 CLOSED

sgerrand avatar sgerrand commented on June 1, 2024 3
arm support?

from alpine-pkg-glibc.

Comments (7)

yangxuan8282 avatar yangxuan8282 commented on June 1, 2024 2

I have updated my glibc apk build for armhf to latest 2.27-r0: https://github.com/yangxuan8282/alpine-pkg-glibc/releases .
It should works. If not, you can try this old one: https://github.com/armhf-docker-library/alpine-pkg-glibc/releases .

from alpine-pkg-glibc.

marianopeck avatar marianopeck commented on June 1, 2024

Hi,

I am trying to get it work on Raspberry Pi, using latest 2.29 I am also finding an issue: #113

Do you know if it is the same issue? Were your changes integrated in this upstream project or only in your fork? As far as I can see your latest release is for 2.27. Any idea how to try your fork for me issue?

Thanks in advance,

from alpine-pkg-glibc.

Josua-SR avatar Josua-SR commented on June 1, 2024

Hi everyone,

I think this issue may be worth reopening.
I found that compiling glibc was no big deal, executing the docker-glibc-builder natively on an arm board was enough to produce working binaries, and the changes to the apkbuild aren't difficult either.

@sgerrand it would be really cool imo if you could be publishing binary releases for aarch32 and aarch64.
The place that I found your binaries used, and that could benefit from arm binaries, is the https://github.com/AdoptOpenJDK/openjdk-docker/ alpine containers. I was able to build and run their openjdk12/jdk-alpine with the glibc apk I built using this earlier built glibc package!

If there is something we can do to make that happen, please let us know.

from alpine-pkg-glibc.

marianopeck avatar marianopeck commented on June 1, 2024

+1 I would love aarch32 and aarch64 releases. In fact, I am ONLY using Alpine on Raspberry...

from alpine-pkg-glibc.

marianopeck avatar marianopeck commented on June 1, 2024

Hi @yangxuan8282
I am giving a try to version 2.27 but I cannot add the correct pub key. I tried many different URLs:

RUN apk --no-cache add ca-certificates wget \
	&& wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.27-r0/sgerrand.rsa.pub \
	&& wget https://github.com/yangxuan8282/alpine-pkg-glibc/releases/download/2.27-r0/glibc-2.27-r0.apk \
	&& wget https://github.com/yangxuan8282/alpine-pkg-glibc/releases/download/2.27-r0/glibc-bin-2.27-r0.apk \
	&& wget https://github.com/yangxuan8282/alpine-pkg-glibc/releases/download/2.27-r0/glibc-i18n-2.27-r0.apk \
	&& apk add glibc-bin-2.27-r0.apk glibc-i18n-2.27-r0.apk glibc-2.27-r0.apk

I also tried
https://github.com/yangxuan8282/alpine-pkg-glibc/blob/master/sgerrand.rsa.pub
https://raw.githubusercontent.com/sgerrand/alpine-pkg-glibc/master/sgerrand.rsa.pub
https://github.com/yangxuan8282/alpine-pkg-glibc/blob/2.27-r0/sgerrand.rsa.pub
https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub

But I always get:

"ERROR: glibc-bin-2.27-r0.apk: UNTRUSTED signature"

Do you know what is the correct link to pub file?

from alpine-pkg-glibc.

gokalper avatar gokalper commented on June 1, 2024

I compiled an arm32v7 glibc 2.30 by changing the dockerfile for https://github.com/sgerrand/docker-glibc-builder and running the build on a raspberry pi:

FROM arm32v7/ubuntu:19.04
MAINTAINER Sasha Gerrand <[email protected]>
ENV PREFIX_DIR /usr/glibc-compat
ENV GLIBC_VERSION 2.30
RUN apt-get -q update \
	&& apt-get -qy install \
		bison \
		build-essential \
		gawk \
		gettext \
		openssl \
		python3 \
		texinfo \
		wget
COPY configparams /glibc-build/configparams
COPY builder /builder
ENTRYPOINT ["/builder"]

Then running this docker run --rm --env STDOUT=1 imagename/forabovedockerfile:tag 2.30 /usr/glibc-compat > glibc-bin.tar.gz to generate the required files and copying them into a new image to build the APK with:

FROM arm32v7/alpine:3.10

RUN apk add alpine-sdk && \
    git config --global user.name "Gokalp Ercilasun" && \
    git config --global user.email "[email protected]" && \
    git clone git://git.alpinelinux.org/aports && \
    sed -i "s/#PACKAGER=\"Your Name <[email protected]>\"/PACKAGER=\"Gokalp LASTNAME <[email protected]>\"/g" /etc/abuild.conf && \
    adduser --disabled-password --shell /bin/sh --gecos "User" appuser && \
    echo appuser:appuser | chpasswd && \
    sudo echo "appuser ALL=(ALL) ALL" >> /etc/sudoers && \
    sudo addgroup appuser abuild && \
    sudo mkdir -p /var/cache/distfiles && \
    sudo chmod a+w /var/cache/distfiles && \
    sudo chgrp abuild /var/cache/distfiles && \
    sudo chmod g+w /var/cache/distfiles
#    abuild-keygen -a -i -n

USER appuser

COPY glibc-bin.tar.gz /home/appuser/glibc-bin.tar.gz
COPY ld.so.conf /home/appuser/ld.so.conf 
COPY nsswitch.conf /home/appuser/nsswitch.conf
COPY APKBUILD /home/appuser/APKBUILD
COPY glibc-bin.trigger /home/appuser/glibc-bin.trigger

RUN abuild-keygen -a -i -n && \
    abuild checksum && \
    abuild -r

# COPY FILES OUT MANUALLY ALSO COPY PUBLIC KEY

ENTRYPOINT ["/bin/sh"] 

I hosted my compiled APK for alpine here: https://github.com/gokalper/glibc-alpine-arm32v7/tree/master/armv7

from alpine-pkg-glibc.

halower avatar halower commented on June 1, 2024

aarch64:

 apk add glibc-bin-2.27-r0.apk glibc-i18n-2.27-r0.apk glibc-2.27-r0.apk 
returned a non-zero code: 99

from alpine-pkg-glibc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.