[tlbuild] running TL24 pretest on OpenBSD

Robert Alessi alessi at robertalessi.net
Mon Feb 19 07:57:43 CET 2024


Hi Norbert,

Unless it must be part of the building process for some reason, gcc
was not needed.  I just used clang which is included in base-openbsd.
If so, I would say as follows.  (main.yml seems fine, fingers
crossed.)  That said, I will prepare a build script later on today and
will post it here.  Thanks, r

--- a/build-tl.sh	Mon Feb 19 07:32:42 2024
+++ b/build-tl.sh	Mon Feb 19 07:44:48 2024
@@ -44,7 +44,10 @@
        ;;
      freebsd)
        env ASSUME_ALWAYS_YES=YES pkg install -y gmake gcc pkgconf libX11 libXt libXaw fontconfig perl5
-       ;;
+      ;;
+     openbsd)
+       pkg_add gmake libiconv libsigsegv
+      ;;
      netbsd)
        pkg_add gmake gcc pkgconf libX11 libXt libXaw fontconfig perl5
        ;;
@@ -106,6 +109,9 @@
       export CC="gcc -m64"
       export CXX="g++ -m64"
     fi
+    ;;
+  *-openbsd)
+    export TL_MAKE=gmake
     ;;
   *-freebsd)
     export TL_MAKE=gmake



On Mon, Feb 19, 2024 at 02:06:42PM +0900, Norbert Preining wrote:
> Hi Robert,
> 
> > Could you send patches against
> > 	https://github.com/TeX-Live/texlive-source/blob/trunk/.github/scripts/build-tl.sh
> > that would be great! I am trying to collect there all ways to build
> 
> What about that?
> 
> 
> diff --git a/Build/source/.github/scripts/build-tl.sh b/Build/source/.github/scripts/build-tl.sh
> index e9bcd5ee3ce..8b39d2c9bf5 100755
> --- a/Build/source/.github/scripts/build-tl.sh
> +++ b/Build/source/.github/scripts/build-tl.sh
> @@ -45,6 +45,9 @@ then
>       freebsd)
>         env ASSUME_ALWAYS_YES=YES pkg install -y gmake gcc pkgconf libX11 libXt libXaw fontconfig perl5
>         ;;
> +     openbsd)
> +       pkg_add gmake gcc pkgconf libX11 libXt libXaw fontconfig perl5
> +       ;;
>       netbsd)
>         pkg_add gmake gcc pkgconf libX11 libXt libXaw fontconfig perl5
>         ;;
> diff --git a/Build/source/.github/workflows/main.yml b/Build/source/.github/workflows/main.yml
> index 3472666bcc0..4563d2b7215 100644
> --- a/Build/source/.github/workflows/main.yml
> +++ b/Build/source/.github/workflows/main.yml
> @@ -130,10 +130,12 @@ jobs:
>        fail-fast: false
>        matrix: 
>          arch: [ i386, amd64 ]
> -        os: [ freebsd, solaris ]
> +        os: [ openbsd, freebsd, solaris ]
>          release_build: 
>            - ${{ startsWith(github.ref, 'refs/tags/') }}
>          include:
> +          - os: openbsd
> +            ci_build: true
>            - os: freebsd
>              ci_build: true
>            - os: solaris
> @@ -144,6 +146,15 @@ jobs:
>          uses: actions/checkout at v4
>          with:
>            path: 'repo'
> +      - name: build openbsd
> +        uses: vmactions/openbsd-vm at v1
> +        if: ${{ matrix.os == 'openbsd' && (matrix.ci_build || matrix.release_build) }}
> +        with: 
> +          release: '7.4'
> +          usesh: true
> +          run: |
> +            cd repo
> +            sh .github/scripts/build-tl.sh ${{ matrix.arch }}-${{ matrix.os }} ${{ matrix.os }}
>        - name: build freebsd
>          uses: vmactions/freebsd-vm at v1
>          if: ${{ matrix.os == 'freebsd' && (matrix.ci_build || matrix.release_build) }}
> 
> 
> Any suggestions or should I just try it?
> 
> Best regards
> 
> Norbert
> 
> --
> PREINING Norbert                              https://www.preining.info
> arXiv / Cornell University   +   IFMGA Guide   +   TU Wien  +  TeX Live
> GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13


More information about the tlbuild mailing list.