Skip to content

Commit 58c7d42

Browse files
authored
Merge pull request #40 from vmchale/libarchive-clib-3.8.4
Bump C sources to 3.8.4
2 parents 2d5a1df + 322242f commit 58c7d42

197 files changed

Lines changed: 9705 additions & 24984 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/haskell.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,27 @@ name: Haskell CI
22

33
on:
44
push:
5-
branches: [ master ]
65
pull_request:
7-
branches: [ master ]
86

97
jobs:
108
hlint:
119
runs-on: ubuntu-latest
1210

1311
steps:
14-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v5
1513

1614
- name: Run hlint
1715
run: curl -sSL https://raw.github.com/ndmitchell/hlint/master/misc/run.sh | sh -s -- -r libarchive/src libarchive/mem libarchive/bench libarchive/test
1816
shell: bash
1917

20-
build-cabal:
18+
build:
2119

2220
runs-on: ${{ matrix.os }}-latest
2321
strategy:
2422
fail-fast: false
2523
matrix:
2624
os: [ubuntu, macOS, windows]
27-
builder: ['cabal 3.6.2.0 ghc 8.10.7', 'cabal 3.10.2.0 ghc 9.2.8', 'stack 2.13.1']
25+
builder: ['cabal 3.12.1.0 ghc 9.6.7', 'cabal 3.16.0.0 ghc 9.10.3', 'stack 3.7.1']
2826

2927
include:
3028
- os: windows
@@ -39,7 +37,14 @@ jobs:
3937
shell: ${{ matrix.shell }}
4038

4139
steps:
42-
- uses: actions/checkout@v2
40+
- uses: actions/checkout@v5
41+
42+
- uses: haskell/ghcup-setup@v1
43+
44+
- if: runner.os == 'Linux'
45+
run: |
46+
sudo apt-get update -y
47+
sudo apt-get install -y libbz2-dev
4348
4449
- if: runner.os == 'Windows'
4550
uses: msys2/setup-msys2@v2
@@ -67,7 +72,7 @@ jobs:
6772
- if: runner.os == 'macOS'
6873
name: Install automake via brew
6974
run: |
70-
bash .github/scripts/brew.sh automake
75+
bash .github/scripts/brew.sh automake libtool
7176
echo "$HOME/.brew/bin" >> $GITHUB_PATH
7277
echo "$HOME/.brew/sbin" >> $GITHUB_PATH
7378
@@ -103,7 +108,7 @@ jobs:
103108
ghcup install ${{ steps.get.outputs.builder }} ${{ steps.get.outputs.builder_version }}
104109
105110
- name: Cache
106-
uses: actions/cache@v1
111+
uses: actions/cache@v4
107112
env:
108113
cache-name: ${{ steps.get.outputs.builder }}
109114
with:
@@ -163,7 +168,7 @@ jobs:
163168
run: cabal-docspec -XCPP -XTypeSynonymInstances -XOverloadedStrings libarchive
164169

165170
- name: Download benchmark files
166-
run: make -C libarchive -j1 setup
171+
run: make -C libarchive -j1 setup
167172

168173
- name: Run benches
169174
run: ${{ steps.get.outputs.builder }} bench libarchive
@@ -172,9 +177,9 @@ jobs:
172177
run: ${{ steps.get.outputs.builder }} haddock libarchive
173178
continue-on-error: true
174179

175-
- if: always()
176-
uses: actions/upload-artifact@v2
180+
- if: steps.get.outputs.builder == 'cabal'
181+
uses: actions/upload-artifact@v5
177182
with:
178-
name: plan.json
183+
name: ${{ matrix.os }}-${{ steps.get.outputs.builder_version }}-${{ steps.get.outputs.ghc_version }}-plan.json
179184
path: ./dist-newstyle/cache/plan.json
180185

cabal.project

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
packages: ./libarchive/libarchive.cabal
22
./libarchive-clib/libarchive-clib.cabal
3-
./zlib-clib/zlib-clib.cabal
43
max-backjumps: 40000
54

65
constraints: zlib -pkg-config +bundled-c-zlib

libarchive-clib/build/autoconf/config.guess

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#! /bin/sh
22
# Attempt to guess a canonical system name.
3-
# Copyright 1992-2024 Free Software Foundation, Inc.
3+
# Copyright 1992-2025 Free Software Foundation, Inc.
44

55
# shellcheck disable=SC2006,SC2268 # see below for rationale
66

7-
timestamp='2024-01-01'
7+
timestamp='2025-07-10'
88

99
# This file is free software; you can redistribute it and/or modify it
1010
# under the terms of the GNU General Public License as published by
@@ -60,7 +60,7 @@ version="\
6060
GNU config.guess ($timestamp)
6161
6262
Originally written by Per Bothner.
63-
Copyright 1992-2024 Free Software Foundation, Inc.
63+
Copyright 1992-2025 Free Software Foundation, Inc.
6464
6565
This is free software; see the source for copying conditions. There is NO
6666
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -123,7 +123,7 @@ set_cc_for_build() {
123123
dummy=$tmp/dummy
124124
case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
125125
,,) echo "int x;" > "$dummy.c"
126-
for driver in cc gcc c89 c99 ; do
126+
for driver in cc gcc c17 c99 c89 ; do
127127
if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
128128
CC_FOR_BUILD=$driver
129129
break
@@ -634,7 +634,8 @@ EOF
634634
sed 's/^ //' << EOF > "$dummy.c"
635635
#include <sys/systemcfg.h>
636636
637-
main()
637+
int
638+
main ()
638639
{
639640
if (!__power_pc())
640641
exit(1);
@@ -718,7 +719,8 @@ EOF
718719
#include <stdlib.h>
719720
#include <unistd.h>
720721
721-
int main ()
722+
int
723+
main ()
722724
{
723725
#if defined(_SC_KERNEL_BITS)
724726
long bits = sysconf(_SC_KERNEL_BITS);
@@ -1595,8 +1597,11 @@ EOF
15951597
*:Unleashed:*:*)
15961598
GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
15971599
;;
1598-
*:Ironclad:*:*)
1599-
GUESS=$UNAME_MACHINE-unknown-ironclad
1600+
x86_64:[Ii]ronclad:*:*|i?86:[Ii]ronclad:*:*)
1601+
GUESS=$UNAME_MACHINE-pc-ironclad-mlibc
1602+
;;
1603+
*:[Ii]ronclad:*:*)
1604+
GUESS=$UNAME_MACHINE-unknown-ironclad-mlibc
16001605
;;
16011606
esac
16021607

@@ -1621,6 +1626,7 @@ cat > "$dummy.c" <<EOF
16211626
#endif
16221627
#endif
16231628
#endif
1629+
int
16241630
main ()
16251631
{
16261632
#if defined (sony)
@@ -1805,8 +1811,8 @@ fi
18051811
exit 1
18061812

18071813
# Local variables:
1808-
# eval: (add-hook 'before-save-hook 'time-stamp)
1814+
# eval: (add-hook 'before-save-hook 'time-stamp nil t)
18091815
# time-stamp-start: "timestamp='"
1810-
# time-stamp-format: "%:y-%02m-%02d"
1816+
# time-stamp-format: "%Y-%02m-%02d"
18111817
# time-stamp-end: "'"
18121818
# End:

0 commit comments

Comments
 (0)