Skip to content

Commit

Permalink
Merge pull request #1533 from hadfl/aarch64
Browse files Browse the repository at this point in the history
build more aarch64 packages
  • Loading branch information
citrus-it authored Oct 14, 2024
2 parents 8a34e22 + f64aa4f commit 9000c7d
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 13 deletions.
9 changes: 5 additions & 4 deletions build/cunit/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# http://www.illumos.org/license/CDDL.
# }}}

# Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
# Copyright 2024 OmniOS Community Edition (OmniOSce) Association.

. ../../lib/build.sh

Expand All @@ -21,7 +21,9 @@ VER=2.1-3
VERHUMAN=$VER
PKG=ooce/developer/cunit
SUMMARY="C Unit Testing Framework"
DESC="$SUMMARY"
DESC="$PROG - $SUMMARY"

test_relver '>=' 151053 && set_clangver

BUILDDIR=CUnit-$VER

Expand All @@ -40,8 +42,7 @@ prep_build
patch_source
run_autoreconf -fi
build
VER=${VER//-/.}
make_package
VER=${VER//-/.} make_package
clean_up

# Vim hints
Expand Down
1 change: 1 addition & 0 deletions build/cunit/files/ctf.ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MyMem.c
3 changes: 2 additions & 1 deletion build/cunit/local.mog
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.

# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
# Copyright 2024 OmniOS Community Edition (OmniOSce) Association.

license COPYING license=LGPLv2

<transform file path=$(PREFIX)/\. -> drop>
<transform file path=$(OPREFIX)/doc -> drop>
<transform file path=.*\.sh$ -> drop>

4 changes: 2 additions & 2 deletions build/libdwarf/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# http://www.illumos.org/license/CDDL.
# }}}

# Copyright 2021 OmniOS Community Edition (OmniOSce) Association.
# Copyright 2024 OmniOS Community Edition (OmniOSce) Association.

. ../../lib/build.sh

Expand Down Expand Up @@ -40,7 +40,7 @@ init
download_source $PROG $PROG $VER
prep_build
patch_source
build -ctf
build
make_package
clean_up

Expand Down
4 changes: 2 additions & 2 deletions build/libdwarf/local.mog
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
# Copyright 2020 OmniOS Community Edition (OmniOSce) Association.
# Copyright 2024 OmniOS Community Edition (OmniOSce) Association.

<transform path=$(PREFIX)/share/libdwarf -> drop>

license dwarfdump/GPL.txt license=GPLv2
license libdwarf/LGPL.txt license=LGPLv2.1
license dwarfdump/DWARFDUMPCOPYRIGHT license=dwarfdump
license libdwarf/LIBDWARFCOPYRIGHT license=libdwarf
license libdwarf/LIBDWARFCOPYRIGHT license=libdwarfcopy
license COPYING license=libdwarf

12 changes: 12 additions & 0 deletions build/libmcrypt/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ XFORM_ARGS="
CONFIGURE_OPTS+="
--mandir=$PREFIX/share/man
"

pre_configure() {
typeset arch=$1

! cross_arch $arch && return

CONFIGURE_OPTS[$arch]+="
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes
"
}

LDFLAGS[i386]+=" -lssp_ns"

init
Expand Down
3 changes: 2 additions & 1 deletion build/mosh/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# http://www.illumos.org/license/CDDL.
# }}}

# Copyright 2022 OmniOS Community Edition (OmniOSce) Association.
# Copyright 2024 OmniOS Community Edition (OmniOSce) Association.

. ../../lib/build.sh

Expand All @@ -25,6 +25,7 @@ DESC="Remote terminal application that allows roaming"
set_arch 64

CXXFLAGS[amd64]+=" -std=c++17"
CXXFLAGS[aarch64]+=" -std=c++17"

init
download_source $PROG $PROG $VER
Expand Down
14 changes: 12 additions & 2 deletions build/protobuf/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,18 @@ CONFIGURE_OPTS="
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-Dprotobuf_BUILD_TESTS=OFF
"
CONFIGURE_OPTS[i386]="-DCMAKE_INSTALL_LIBDIR=$PREFIX/${LIBDIRS[i386]}"
CONFIGURE_OPTS[amd64]="-DCMAKE_INSTALL_LIBDIR=$PREFIX/${LIBDIRS[amd64]}"

pre_configure() {
typeset arch=$1

CONFIGURE_OPTS[$arch]="
-DCMAKE_INSTALL_LIBDIR=$PREFIX/${LIBDIRS[$arch]}
-DZLIB_INCLUDE_DIR=${SYSROOT[$arch]}/usr/include
-DZLIB_LIBRARY_RELEASE=${SYSROOT[$arch]}/usr/${LIBDIRS[$arch]}/libz.so
"
}

CXXFLAGS[aarch64]+=" -mtls-dialect=trad"

init
clone_github_source $PROG "$GITHUB/protocolbuffers/$PROG" v$VER
Expand Down
8 changes: 7 additions & 1 deletion build/rlwrap/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# }}}

# Copyright 2022 r7st [email protected]
# Copyright 2023 OmniOS Community Edition (OmniOSce) Association.
# Copyright 2024 OmniOS Community Edition (OmniOSce) Association.

. ../../lib/build.sh

Expand All @@ -26,6 +26,12 @@ DESC+="Readline library to allow the editing of keyboard input for any command."

set_arch 64

pre_configure() {
typeset arch=$1

CPPFLAGS[$arch]+=" -I${SYSROOT[$arch]}/usr/include"
}

init
download_source $PROG $PROG $VER
patch_source
Expand Down
8 changes: 8 additions & 0 deletions doc/baseline.aarch64
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
extra.omnios ooce/application/links
extra.omnios ooce/application/mc
extra.omnios ooce/application/mutt
extra.omnios ooce/application/tig
extra.omnios ooce/audio/flac
extra.omnios ooce/compress/pbzip2
extra.omnios ooce/compress/pigz
Expand All @@ -11,8 +12,10 @@ extra.omnios ooce/database/mariadb-common
extra.omnios ooce/database/postgresql-14
extra.omnios ooce/database/postgresql-common
extra.omnios ooce/developer/cmake
extra.omnios ooce/developer/cunit
extra.omnios ooce/developer/git-absorb
extra.omnios ooce/developer/ninja
extra.omnios ooce/developer/protobuf
extra.omnios ooce/editor/joe
extra.omnios ooce/file/tree
extra.omnios ooce/fonts/liberation
Expand All @@ -27,13 +30,15 @@ extra.omnios ooce/library/json-c
extra.omnios ooce/library/ldns
extra.omnios ooce/library/libarchive
extra.omnios ooce/library/libde265
extra.omnios ooce/library/libdwarf
extra.omnios ooce/library/libev
extra.omnios ooce/library/libexif
extra.omnios ooce/library/libgd
extra.omnios ooce/library/libgif
extra.omnios ooce/library/libheif
extra.omnios ooce/library/libid3tag
extra.omnios ooce/library/libjpeg-turbo
extra.omnios ooce/library/libmcrypt
extra.omnios ooce/library/libogg
extra.omnios ooce/library/libpng
extra.omnios ooce/library/libsodium
Expand Down Expand Up @@ -65,8 +70,10 @@ extra.omnios ooce/multimedia/x264
extra.omnios ooce/multimedia/x265
extra.omnios ooce/network/fping
extra.omnios ooce/network/irssi
extra.omnios ooce/network/mosh
extra.omnios ooce/network/nsd
extra.omnios ooce/network/openldap
extra.omnios ooce/network/sic
extra.omnios ooce/network/smtp/postfix
extra.omnios ooce/network/tcpdump
extra.omnios ooce/network/unbound
Expand All @@ -91,6 +98,7 @@ extra.omnios ooce/util/hyperfine
extra.omnios ooce/util/jq
extra.omnios ooce/util/pass
extra.omnios ooce/util/rargs
extra.omnios ooce/util/rlwrap
extra.omnios ooce/util/stress-ng
extra.omnios ooce/util/u-boot
extra.omnios ooce/util/xjobs
8 changes: 8 additions & 0 deletions doc/pkglist.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ ooce/library/jansson
ooce/network/tcpdump
ooce/system/top
ooce/library/apr
ooce/util/rlwrap
ooce/developer/protobuf
ooce/library/libdwarf
ooce/library/libmcrypt
ooce/network/sic
ooce/application/tig
ooce/developer/cunit
###############################################################################
.SYSROOT
ooce/audio/flac
Expand All @@ -90,6 +97,7 @@ ooce/security/minisign
ooce/application/links
ooce/database/mariadb-106
ooce/developer/cmake
ooce/network/mosh
###############################################################################
.SYSROOT
ooce/network/unbound
Expand Down

0 comments on commit 9000c7d

Please sign in to comment.