Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #14 from ajayk/libxcrypt
Browse files Browse the repository at this point in the history
add libxcrypt: glibc-2.39 depends on this now
  • Loading branch information
imjasonh authored Feb 21, 2024
2 parents 010863a + 0e0e837 commit b7f8f60
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ OPENSSL_VERSION ?= 3.0.7-r0
READLINE_VERSION ?= 8.1.2-r0
SQLITE_VERSION ?= 3.39.2-r0
PYTHON3_VERSION ?= 3.10.6-r0
LIBXCRYPT_VERSION ?= 4.4.36-r0
GLIBC_VERSION ?= 2.36-r0
BUSYBOX_VERSION ?= 1.35.0-r2
CA_CERTIFICATES_VERSION ?= 20220614-r1
Expand Down Expand Up @@ -90,6 +91,7 @@ PACKAGES = \
packages/${ARCH}/readline-${READLINE_VERSION}.apk \
packages/${ARCH}/sqlite-${SQLITE_VERSION}.apk \
packages/${ARCH}/python3-${PYTHON3_VERSION}.apk \
packages/${ARCH}/libxcrypt-${LIBXCRYPT_VERSION}.apk \
packages/${ARCH}/glibc-${GLIBC_VERSION}.apk \
packages/${ARCH}/busybox-${BUSYBOX_VERSION}.apk \
packages/${ARCH}/ca-certificates-${CA_CERTIFICATES_VERSION}.apk \
Expand Down Expand Up @@ -196,6 +198,9 @@ packages/${ARCH}/sqlite-${SQLITE_VERSION}.apk:
packages/${ARCH}/python3-${PYTHON3_VERSION}.apk:
${MELANGE} build python3.yaml ${MELANGE_OPTS} ${MELANGE_DEFOPTS}

packages/${ARCH}/libxcrypt-${LIBXCRYPT_VERSION}.apk:
${MELANGE} build libxcrypt.yaml ${MELANGE_OPTS} ${MELANGE_DEFOPTS}

packages/${ARCH}/glibc-${GLIBC_VERSION}.apk:
${MELANGE} build glibc.yaml ${MELANGE_OPTS} --source-dir ./glibc/

Expand Down
68 changes: 68 additions & 0 deletions libxcrypt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
package:
name: libxcrypt
version: 4.4.36
epoch: 0
description: "Modern library for one-way hashing of passwords"
copyright:
- license: GPL-2.0-or-later AND LGPL-2.1-or-later

environment:
contents:
repositories:
- https://packages.wolfi.dev/bootstrap/stage2
keyring:
- https://packages.wolfi.dev/bootstrap/stage2/wolfi-signing.rsa.pub
packages:
- autoconf
- automake
- build-base
- busybox
- ca-certificates-bundle
- gettext
- libtool
- pkgconf
- wolfi-baselayout

pipeline:
# Using Fetch instead of git checkout
# @kaniini : When we retire libcrypt from glibc, it will need to get built earlier than git, as git (indirectly) depends on libcrypt.
- uses: fetch
with:
uri: https://github.com/besser82/libxcrypt/archive/refs/tags/v${{package.version}}.tar.gz
expected-sha256: b979838d5f1f238869d467484793b72b8bca64c4eae696fdbba0a9e0b6c28453

- runs: |
./autogen.sh
- uses: autoconf/configure
with:
opts: |
--prefix=/usr \
--disable-static \
--enable-hashes=strong,glibc \
--enable-obsolete-api=no \
--disable-failure-tokens
- uses: autoconf/configure

- uses: autoconf/make

- uses: autoconf/make-install

- uses: strip

subpackages:
- name: libxcrypt-doc
pipeline:
- uses: split/manpages
description: libxcrypt manpages

- name: libxcrypt-dev
pipeline:
- uses: split/dev
description: libxcrypt dev

update:
enabled: true
release-monitor:
identifier: 16436

0 comments on commit b7f8f60

Please sign in to comment.