Skip to content

Commit

Permalink
[bsd] Test 0001-libtool-Fix-local-testing-of-shared-libraries-on-Ope.…
Browse files Browse the repository at this point in the history
…patch
  • Loading branch information
ileanadumitrescu95 committed Nov 7, 2024
1 parent 86f57db commit e34f89b
Show file tree
Hide file tree
Showing 10 changed files with 146 additions and 55 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/bsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
ls -l
export CPPFLAGS="-I/usr/local/include -Wall"
export LDFLAGS="-L/usr/local/lib"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
- if: ${{ always() && !contains(github.event.head_commit.message, '[pre-release]') }}
run: tar czf ${{ env.package }}-build.tar.gz ${{ env.package }}-*/
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
ls -l
export CPPFLAGS="-I/usr/pkg/include -Wall"
export LDFLAGS="-L/usr/pkg/lib"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
- if: ${{ always() && !contains(github.event.head_commit.message, '[pre-release]') }}
run: tar czf ${{ env.package }}-build.tar.gz ${{ env.package }}-*/
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
Expand Down Expand Up @@ -222,7 +222,7 @@ jobs:
ls -l
export CPPFLAGS="-I/usr/local/include -Wall"
export LDFLAGS="-L/usr/local/lib"
./build-on.sh '${{ env.package }}' '' 'gmake' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'gmake' 'LIBTOOLFLAGS=--test' '${{ github.event.head_commit.message }}'
- if: ${{ always() && !contains(github.event.head_commit.message, '[pre-release]') }}
run: tar czf ${{ env.package }}-build.tar.gz ${{ env.package }}-*/
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
- run: |
pwd
export CPPFLAGS="-Wall"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
- if: ${{ always() && !contains(github.event.head_commit.message, '[pre-release]') }}
run: tar czf ${{ env.package }}-build.tar.gz ${{ env.package }}-*/
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
cd /work
ls -l
export CPPFLAGS="-Wall"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
- if: ${{ always() && !contains(github.event.head_commit.message, '[pre-release]') }}
run: tar czf ${{ env.package }}-build.tar.gz ${{ env.package }}-*/
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
cd /work
ls -l
export CPPFLAGS="-Wall"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
- if: ${{ always() && !contains(github.event.head_commit.message, '[pre-release]') }}
run: tar czf ${{ env.package }}-build.tar.gz ${{ env.package }}-*/
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
cd /work
ls -l
export CPPFLAGS="-Wall"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
- if: ${{ always() && !contains(github.event.head_commit.message, '[pre-release]') }}
run: tar czf ${{ env.package }}-build.tar.gz ${{ env.package }}-*/
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
export M4=m4
pwd
export CPPFLAGS="-Wall"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
- if: ${{ always() && !contains(github.event.head_commit.message, '[pre-release]') }}
run: tar czf ${{ env.package }}-build.tar.gz ${{ env.package }}-*/
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/many-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ jobs:
- run: |
pwd
export CPPFLAGS="-Wall"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
- if: ${{ always() }}
Expand Down Expand Up @@ -159,7 +159,7 @@ jobs:
cd /work
ls -l
export CPPFLAGS="-Wall"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
- if: ${{ always() }}
Expand Down Expand Up @@ -206,7 +206,7 @@ jobs:
cd /work
ls -l
export CPPFLAGS="-Wall"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
- if: ${{ always() }}
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:
cd /work
ls -l
export CPPFLAGS="-Wall"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
- if: ${{ always() }}
Expand Down Expand Up @@ -299,7 +299,7 @@ jobs:
export M4=m4
pwd
export CPPFLAGS="-Wall"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
- if: ${{ always() }}
Expand Down Expand Up @@ -347,7 +347,7 @@ jobs:
ls -l
export CPPFLAGS="-I/usr/local/include -Wall"
export LDFLAGS="-L/usr/local/lib"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
- if: ${{ always() }}
Expand Down Expand Up @@ -394,7 +394,7 @@ jobs:
ls -l
export CPPFLAGS="-I/usr/pkg/include -Wall"
export LDFLAGS="-L/usr/pkg/lib"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
- if: ${{ always() }}
Expand Down Expand Up @@ -451,7 +451,7 @@ jobs:
ls -l
export CPPFLAGS="-I/usr/local/include -Wall"
export LDFLAGS="-L/usr/local/lib"
./build-on.sh '${{ env.package }}' '' 'gmake' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'gmake' 'LIBTOOLFLAGS=--test' '${{ github.event.head_commit.message }}'
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
- if: ${{ always() }}
Expand Down Expand Up @@ -504,7 +504,7 @@ jobs:
export CPPFLAGS="-Wall"
export CC="gcc -m64"
export CXX="g++ -m64"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
- if: ${{ always() }}
Expand Down Expand Up @@ -552,7 +552,7 @@ jobs:
pwd
ls -l
export CPPFLAGS="-Wall"
./build-on.sh '${{ env.package }}' '' 'gmake' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'gmake' '' '${{ github.event.head_commit.message }}'
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
- if: ${{ always() }}
Expand Down Expand Up @@ -619,7 +619,7 @@ jobs:
- name: Build in Cygwin
run: |
export CPPFLAGS="-Wall"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
- if: ${{ always() }}
Expand Down Expand Up @@ -685,7 +685,7 @@ jobs:
PATH=/usr/${{ matrix.bitness == 32 && 'i686' || 'x86_64' }}-w64-mingw32/sys-root/mingw/bin:$PATH
export CPPFLAGS="-Wall"
export CC=${{ matrix.bitness == 32 && 'i686' || 'x86_64' }}-w64-mingw32-gcc
./build-on.sh '${{ env.package }}' '--host=${{ matrix.bitness == 32 && 'i686' || 'x86_64' }}-w64-mingw32' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '--host=${{ matrix.bitness == 32 && 'i686' || 'x86_64' }}-w64-mingw32' 'make' '' '${{ github.event.head_commit.message }}'
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
- if: ${{ always() }}
Expand Down Expand Up @@ -788,7 +788,7 @@ jobs:
export STRIP=":"
export AR="`pwd`/ar-lib lib"
export RANLIB=":"
./build-on.sh '${{ env.package }}' '--host=${{ matrix.bitness == 32 && 'i686' || 'x86_64' }}-w64-mingw32' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '--host=${{ matrix.bitness == 32 && 'i686' || 'x86_64' }}-w64-mingw32' 'make' '' '${{ github.event.head_commit.message }}'
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
- if: ${{ always() }}
Expand Down Expand Up @@ -831,7 +831,7 @@ jobs:
export LDFLAGS="-fsanitize=address,undefined,signed-integer-overflow,shift,integer-divide-by-zero"
export CFLAGS="-O0 -fno-omit-frame-pointer -ggdb"
export ASAN_OPTIONS="detect_leaks=0 abort_on_error=1 allocator_may_return_null=1"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
- if: ${{ always() }}
Expand Down Expand Up @@ -878,7 +878,7 @@ jobs:
export CPPFLAGS="-Wall"
export CC=clang
export CXX=clang++
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
# https://github.com/actions/upload-artifact?tab=readme-ov-file#usage
- if: ${{ always() }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/solaris.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
export CPPFLAGS="-Wall"
export CC="gcc -m64"
export CXX="g++ -m64"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
- if: ${{ always() && !contains(github.event.head_commit.message, '[pre-release]') }}
run: tar czf ${{ env.package }}-build.tar.gz ${{ env.package }}-*/
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
pwd
ls -l
export CPPFLAGS="-Wall"
./build-on.sh '${{ env.package }}' '' 'gmake' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'gmake' '' '${{ github.event.head_commit.message }}'
- if: ${{ always() && !contains(github.event.head_commit.message, '[pre-release]') }}
run: tar czf ${{ env.package }}-build.tar.gz ${{ env.package }}-*/
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ jobs:
- name: Build in Cygwin
run: |
export CPPFLAGS="-Wall"
./build-on.sh '${{ env.package }}' '' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '' 'make' '' '${{ github.event.head_commit.message }}'
- if: ${{ always() && !contains(github.event.head_commit.message, '[pre-release]') }}
run: tar czf ${{ env.package }}-build.tar.gz ${{ env.package }}-*/
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
Expand Down Expand Up @@ -205,7 +205,7 @@ jobs:
PATH=/usr/${{ matrix.bitness == 32 && 'i686' || 'x86_64' }}-w64-mingw32/sys-root/mingw/bin:$PATH
export CPPFLAGS="-Wall"
export CC=${{ matrix.bitness == 32 && 'i686' || 'x86_64' }}-w64-mingw32-gcc
./build-on.sh '${{ env.package }}' '--host=${{ matrix.bitness == 32 && 'i686' || 'x86_64' }}-w64-mingw32' 'make' '${{ github.event.head_commit.message }}'
./build-on.sh '${{ env.package }}' '--host=${{ matrix.bitness == 32 && 'i686' || 'x86_64' }}-w64-mingw32' 'make' '' '${{ github.event.head_commit.message }}'
- if: ${{ always() && !contains(github.event.head_commit.message, '[pre-release]') }}
run: tar czf ${{ env.package }}-build.tar.gz ${{ env.package }}-*/
# Doc: https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
Expand Down
2 changes: 1 addition & 1 deletion build-dev-tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ git clone --depth 2 -b "$branch" https://git.savannah.gnu.org/git/"$package".git
git clone --depth 1 https://git.savannah.gnu.org/git/gnulib.git

# Apply patches.
(cd "$package" && patch -p1 < ../patches/0001-libtool.m4-Remove-OpenBSD-finish_cmds.patch)
(cd "$package" && patch -p1 < ../patches/0001-libtool-Fix-local-testing-of-shared-libraries-on-Ope.patch)

export GNULIB_SRCDIR=`pwd`/gnulib
cd "$package"
Expand Down
7 changes: 4 additions & 3 deletions build-on.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.

# This script builds a tarball of the package on a single platform.
# Usage: build-on.sh PACKAGE CONFIGURE_OPTIONS MAKE COMMIT_MESSAGE
# Usage: build-on.sh PACKAGE CONFIGURE_OPTIONS MAKE MAKE_OPTIONS COMMIT_MESSAGE

package="$1"
configure_options="$2"
make="$3"
commit_message="$4"
make_options="$4"
commit_message="$5"

set -x

Expand Down Expand Up @@ -64,7 +65,7 @@ case "$commit_message" in
;;
*)
# Run the tests.
$make check TESTSUITEFLAGS="--debug" > log3 2>&1; rc=$?; cat log3; test $rc = 0 || exit 1
$make check $make_options TESTSUITEFLAGS="--debug" > log3 2>&1; rc=$?; cat log3; test $rc = 0 || exit 1
;;
esac

Expand Down
Loading

0 comments on commit e34f89b

Please sign in to comment.