GithubHelp home page GithubHelp logo

gfk-sysenv / fk-alpine-pkg-glibc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from satoshiportal/alpine-pkg-glibc

0.0 0.0 0.0 104 KB

A glibc compatibility layer package for Alpine Linux(x64, arm64, armv7)

Shell 100.00%

fk-alpine-pkg-glibc's Introduction

Satoshi Portal, what we did

Getting everything

git clone https://github.com/SatoshiPortal/docker-alpine-abuild.git
git clone https://github.com/satoshiportal/docker-glibc-builder.git
git clone https://github.com/satoshiportal/alpine-pkg-glibc

cd docker-glibc-builder/
docker build -t cyphernode/glibc-builder .
cd ../docker-alpine-abuild/
docker build -t cyphernode/alpine-abuild .

Our keys

You can find our public key at https://raw.githubusercontent.com/SatoshiPortal/alpine-pkg-glibc/master/.abuild/[email protected]

We generated them with:

docker run --name keys --entrypoint abuild-keygen -e PACKAGER="Cyphernode Team <[email protected]>" cyphernode/alpine-abuild -n
docker cp keys:/home/builder/.abuild/[email protected] ./
docker cp keys:/home/builder/.abuild/[email protected] ./
docker rm -f keys

Building glibc

cd ../alpine-pkg-glibc/
cp ../docker-alpine-abuild/[email protected]* .abuild/
chmod 600 .abuild/[email protected]
docker run --name glibc-binary cyphernode/glibc-builder 2.31 /usr/glibc-compat
docker cp glibc-binary:/glibc-bin-2.31.tar.gz ./
docker rm glibc-binary

Building the APK

x86_64

mv glibc-bin-2.31.tar.gz glibc-bin-2.31-0-x86_64.tar.gz
cp APKBUILD-x86_64 APKBUILD

aarch64 (arm64)

mv glibc-bin-2.31.tar.gz glibc-bin-2.31-0-aarch64.tar.gz
cp APKBUILD-aarch64 APKBUILD

armhf (arm32)

mv glibc-bin-2.31.tar.gz glibc-bin-2.31-0-armhf.tar.gz
cp APKBUILD-armhf APKBUILD

All arch

chmod +x package.sh
vi package.sh
./package.sh

Prepare release

x86_64

cp glibc-bin-2.31-0-x86_64.tar.gz .abuild/packages/builder/x86_64/
cd .abuild/packages/builder/x86_64
mv APKINDEX.tar.gz APKINDEX-x86_64.tar.gz
mv glibc-2.31-r0.apk glibc-2.31-r0-x86_64.apk
mv glibc-bin-2.31-r0.apk glibc-bin-2.31-r0-x86_64.apk
mv glibc-dev-2.31-r0.apk glibc-dev-2.31-r0-x86_64.apk
mv glibc-i18n-2.31-r0.apk glibc-i18n-2.31-r0-x86_64.apk
shasum -a 256 glibc-2.31-r0-x86_64.apk glibc-bin-2.31-r0-x86_64.apk > SHA256SUMS.asc

aarch64

cp glibc-bin-2.31-0-aarch64.tar.gz .abuild/packages/builder/aarch64/
cd .abuild/packages/builder/aarch64
mv APKINDEX.tar.gz APKINDEX-aarch64.tar.gz
mv glibc-2.31-r0.apk glibc-2.31-r0-aarch64.apk
mv glibc-bin-2.31-r0.apk glibc-bin-2.31-r0-aarch64.apk
mv glibc-dev-2.31-r0.apk glibc-dev-2.31-r0-aarch64.apk
mv glibc-i18n-2.31-r0.apk glibc-i18n-2.31-r0-aarch64.apk
shasum -a 256 glibc-2.31-r0-aarch64.apk glibc-bin-2.31-r0-aarch64.apk >> SHA256SUMS.asc

armhf

cp glibc-bin-2.31-0-armhf.tar.gz .abuild/packages/builder/armhf/
cd .abuild/packages/builder/armhf
mv APKINDEX.tar.gz APKINDEX-armhf.tar.gz
mv glibc-2.31-r0.apk glibc-2.31-r0-armhf.apk
mv glibc-bin-2.31-r0.apk glibc-bin-2.31-r0-armhf.apk
mv glibc-dev-2.31-r0.apk glibc-dev-2.31-r0-armhf.apk
mv glibc-i18n-2.31-r0.apk glibc-i18n-2.31-r0-armhf.apk
shasum -a 256 glibc-2.31-r0-armhf.apk glibc-bin-2.31-r0-armhf.apk >> SHA256SUMS.asc

alpine-pkg-glibc

CircleCI x86_64

This is the GNU C Library as a Alpine Linux package to run binaries linked against glibc. This package utilizes a custom built glibc binary based on the vanilla glibc source. Built binary artifacts come from https://github.com/sgerrand/docker-glibc-builder.

Releases

See the releases page for the latest download links. If you are using tools like localedef you will need the glibc-bin and glibc-i18n packages in addition to the glibc package.

Installing

The current installation method for these packages is to pull them in using wget or curl and install the local file with apk:

wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.33-r0/glibc-2.33-r0.apk
apk add glibc-2.33-r0.apk

Please Note

⚠️ The URL of the public signing key has changed! ⚠️

Any previous reference to https://raw.githubusercontent.com/sgerrand/alpine-pkg-glibc/master/sgerrand.rsa.pub should be updated with immediate effect to https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub.

Locales

You will need to generate your locale if you would like to use a specific one for your glibc application. You can do this by installing the glibc-i18n package and generating a locale using the localedef binary. An example for en_US.UTF-8 would be:

wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.33-r0/glibc-bin-2.33-r0.apk
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.33-r0/glibc-i18n-2.33-r0.apk
apk add glibc-bin-2.33-r0.apk glibc-i18n-2.33-r0.apk
/usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8

fk-alpine-pkg-glibc's People

Contributors

sgerrand avatar andyshinn avatar kexkey avatar cumpsd avatar dennybaa avatar nehaljwani avatar perliedman avatar mio-19 avatar

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.