Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/ROCKNIX/packages/devel/glibc/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)

PKG_NAME="glibc"
PKG_VERSION="2.40"
PKG_VERSION="2.41"
PKG_LICENSE="GPL"
PKG_SITE="https://www.gnu.org/software/libc/"
PKG_URL="https://ftp.gnu.org/pub/gnu/glibc/${PKG_NAME}-${PKG_VERSION}.tar.xz"
Expand Down
31 changes: 18 additions & 13 deletions projects/ROCKNIX/packages/devel/ncurses/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)

PKG_NAME="ncurses"
PKG_VERSION="6.4"
PKG_VERSION="6.5-20251115"
PKG_LICENSE="MIT"
PKG_SITE="http://www.gnu.org/software/ncurses/"
PKG_URL="http://invisible-island.net/archives/ncurses/ncurses-${PKG_VERSION}.tar.gz"
PKG_URL="http://invisible-mirror.net/archives/ncurses/current/ncurses-${PKG_VERSION}.tgz"
PKG_DEPENDS_HOST="ccache:host"
PKG_DEPENDS_TARGET="toolchain zlib ncurses:host"
PKG_DEPENDS_TARGET="autotools:host gcc:host zlib ncurses:host"
PKG_LONGDESC="A library is a free software emulation of curses in System V Release 4.0, and more."
PKG_BUILD_FLAGS="+pic +pic:host"
PKG_TOOLCHAIN="auto"
PKG_BUILD_FLAGS="+pic"

PKG_CONFIGURE_OPTS_TARGET="
--without-ada \
PKG_CONFIGURE_OPTS_TARGET="--without-ada \
--without-cxx \
--without-cxx-binding \
--disable-db-install \
Expand Down Expand Up @@ -45,7 +43,6 @@ PKG_CONFIGURE_OPTS_TARGET="
--enable-ext-funcs \
--disable-const \
--enable-no-padding \
--disable-sigwinch \
--enable-pc-files \
--with-pkg-config-libdir=/usr/lib/pkgconfig \
--enable-tcap-names \
Expand All @@ -60,17 +57,25 @@ PKG_CONFIGURE_OPTS_TARGET="
--disable-warnings \
--enable-home-terminfo \
--enable-lib-suffixes \
--disable-assertions"
--disable-assertions \
--enable-leaks \
--enable-sigwinch \
--cache-file=config.cache"

PKG_CONFIGURE_OPTS_HOST="
--without-cxx-binding \
--enable-termcap \
PKG_CONFIGURE_OPTS_HOST="--enable-termcap \
--with-termlib \
--without-shared \
--with-shared \
--enable-pc-files \
--without-tests \
--without-manpages"

pre_configure_target() {
cat >config.cache <<EOF
cf_cv_builtin_bool=yes
cf_cv_header_stdbool_h=yes
EOF
}

post_makeinstall_target() {
local f
cp misc/ncurses-config ${TOOLCHAIN}/bin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ Remove recent xterm terminfo features to be compatible with other emulations

--- a/misc/terminfo.src 2021-03-20 22:45:39.000000000 +0100
+++ b/misc/terminfo.src 2021-06-01 23:53:10.335516419 +0200
@@ -4808,8 +4808,8 @@ xterm-xfree86|xterm terminal emulator (X
@@ -4946,9 +4946,9 @@ xterm-xfree86|xterm terminal emulator (X

xterm+nofkeys|building block for xterm fkey-variants,
npc,
kcbt=\E[Z, kent=\EOM, nel=\EE, use=ecma+index,
- use=ansi+rep, use=ecma+strikeout, use=vt420+lrmm,
- kcbt=\E[Z, nel=\EE, use=ecma+index, use=ansi+rep,
- use=ecma+strikeout, use=vt420+lrmm, use=xterm+focus,
- use=xterm+sm+1006, use=xterm+tmux, use=ecma+italics,
+ kcbt=\E[Z, nel=\EE, use=ecma+index,
+ use=ecma+strikeout, use=vt420+lrmm,
+ use=xterm+sm+1005, use=xterm+tmux, use=ecma+italics,
use=xterm+keypad, use=xterm-basic,

# This version reflects the current xterm features.
xterm-p370|xterm patch #370,
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
diff -rupN ncurses-6.4.orig/configure ncurses-6.4/configure
--- ncurses-6.4.orig/configure 2022-11-05 21:13:26.000000000 +0000
+++ ncurses-6.4/configure 2023-05-09 11:21:38.765534941 +0000
@@ -4236,7 +4236,7 @@ echo $ECHO_N "checking for first directo
Fix configure option --with-pkg-config-libdir is broken for cross compilation

--- a/configure 2021-10-17 17:12:23.000000000 +0200
+++ b/configure 2021-11-26 00:27:00.224815736 +0100
@@ -4255,7 +4255,7 @@ echo $ECHO_N "checking for first directo
cf_pkg_config_path=none
for cf_config in $cf_search_path
do
Expand Down
118 changes: 4 additions & 114 deletions projects/ROCKNIX/packages/lang/gcc/package.mk
Original file line number Diff line number Diff line change
@@ -1,25 +1,10 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue ([email protected])
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
# Copyright (C) 2023 JELOS (https://github.com/JustEnoughLinuxOS)
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2024-present ROCKNIX (https://github.com/ROCKNIX)

PKG_NAME="gcc"
PKG_VERSION="14.2.0"
PKG_LICENSE="GPL-2.0-or-later"
PKG_SITE="https://gcc.gnu.org/"
PKG_URL="https://ftp.gnu.org/gnu/gcc/${PKG_NAME}-${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_BOOTSTRAP="ccache:host autoconf:host binutils:host gmp:host mpfr:host mpc:host zstd:host"
PKG_DEPENDS_TARGET="toolchain"
PKG_DEPENDS_HOST="ccache:host autoconf:host binutils:host gmp:host mpfr:host mpc:host zstd:host glibc libxcrypt"
PKG_DEPENDS_INIT="toolchain"
PKG_LONGDESC="This package contains the GNU Compiler Collection."

if [ "${MOLD_SUPPORT}" = "yes" ]; then
PKG_DEPENDS_HOST+=" mold:host"
fi
. ${ROOT}/packages/lang/gcc/package.mk

case ${TARGET_ARCH} in
arm|aarch64|riscv64)
arm|aarch64)
OPTS_LIBATOMIC="--enable-libatomic"
;;
*)
Expand Down Expand Up @@ -85,88 +70,6 @@ PKG_CONFIGURE_OPTS_HOST="${GCC_COMMON_CONFIGURE_OPTS} \
--enable-clocale=gnu \
${TARGET_ARCH_GCC_OPTS}"

post_makeinstall_bootstrap() {
GCC_VERSION=$(${TOOLCHAIN}/bin/${TARGET_NAME}-gcc -dumpversion)
DATE="0401$(echo ${GCC_VERSION} | sed 's/\./0/g')"
CROSS_CC=${TARGET_PREFIX}gcc-${GCC_VERSION}

rm -f ${TARGET_PREFIX}gcc

cat > ${TARGET_PREFIX}gcc <<EOF
#!/bin/sh
${TOOLCHAIN}/bin/ccache ${CROSS_CC} "\$@"
EOF

chmod +x ${TARGET_PREFIX}gcc

# To avoid cache trashing
touch -c -t ${DATE} ${CROSS_CC}

# install lto plugin for binutils
mkdir -p ${TOOLCHAIN}/lib/bfd-plugins
ln -sf ../gcc/${TARGET_NAME}/${GCC_VERSION}/liblto_plugin.so ${TOOLCHAIN}/lib/bfd-plugins
}

pre_configure_host() {
unset CPP
}

post_make_host() {
# fix wrong link
rm -rf ${TARGET_NAME}/libgcc/libgcc_s.so
ln -sf libgcc_s.so.1 ${TARGET_NAME}/libgcc/libgcc_s.so

if [ ! "${BUILD_WITH_DEBUG}" = "yes" ]; then
${TARGET_PREFIX}strip ${TARGET_NAME}/libgcc/libgcc_s.so*
${TARGET_PREFIX}strip ${TARGET_NAME}/libstdc++-v3/src/.libs/libstdc++.so*
fi
}

post_makeinstall_host() {
cp -PR ${TARGET_NAME}/libstdc++-v3/src/.libs/libstdc++.so* ${SYSROOT_PREFIX}/usr/lib

GCC_VERSION=$(${TOOLCHAIN}/bin/${TARGET_NAME}-gcc -dumpversion)
DATE="0501$(echo ${GCC_VERSION} | sed 's/\./0/g')"
CROSS_CC=${TARGET_PREFIX}gcc-${GCC_VERSION}
CROSS_CXX=${TARGET_PREFIX}g++-${GCC_VERSION}

rm -f ${TARGET_PREFIX}gcc

cat > ${TARGET_PREFIX}gcc <<EOF
#!/bin/sh
${TOOLCHAIN}/bin/ccache ${CROSS_CC} "\$@"
EOF

chmod +x ${TARGET_PREFIX}gcc

# To avoid cache trashing
touch -c -t ${DATE} ${CROSS_CC}

[ ! -f "${CROSS_CXX}" ] && mv ${TARGET_PREFIX}g++ ${CROSS_CXX}

cat > ${TARGET_PREFIX}g++ <<EOF
#!/bin/sh
${TOOLCHAIN}/bin/ccache ${CROSS_CXX} "\$@"
EOF

chmod +x ${TARGET_PREFIX}g++

# To avoid cache trashing
touch -c -t ${DATE} ${CROSS_CXX}

# install lto plugin for binutils
mkdir -p ${TOOLCHAIN}/lib/bfd-plugins
ln -sf ../gcc/${TARGET_NAME}/${GCC_VERSION}/liblto_plugin.so ${TOOLCHAIN}/lib/bfd-plugins
}

configure_target() {
: # reuse configure_host()
}

make_target() {
: # reuse make_host()
}

makeinstall_target() {
mkdir -p ${INSTALL}/usr/lib
cp -P ${PKG_BUILD}/.${HOST_NAME}/${TARGET_NAME}/libgcc/libgcc_s.so* ${INSTALL}/usr/lib
Expand All @@ -178,16 +81,3 @@ makeinstall_target() {
cp -P ${PKG_BUILD}/.${HOST_NAME}/${TARGET_NAME}/libatomic/.libs/libatomic.so* ${INSTALL}/usr/lib
fi
}

configure_init() {
: # reuse configure_host()
}

make_init() {
: # reuse make_host()
}

makeinstall_init() {
mkdir -p ${INSTALL}/usr/lib
cp -P ${PKG_BUILD}/.${HOST_NAME}/${TARGET_NAME}/libgcc/libgcc_s.so* ${INSTALL}/usr/lib
}
1 change: 1 addition & 0 deletions projects/ROCKNIX/packages/lang/gcc/patches
Loading