pkgsrc
Notes about pkgsrc on retro machines
OpenBSD MIPS Loongson
ncurses
- Error: missing type definition
locale_t - Fix: remove
-D_XOPEN_SOURCE=60from theCFLAGSin./c++/Makefile
mpg123-1.29.3
- Error:
src/libout123/modules/sun.c:35:3: error: unknown type name 'audio_info_t' Patch for
Makefile--- work/mpg123-1.29.3/Makefile.orig Thu Jun 9 13:23:54 2022 +++ work/mpg123-1.29.3/Makefile Thu Jun 9 13:24:04 2022 @@ -347,7 +347,7 @@ #am__append_79 = src/libout123/modules/output_pulse.la #am__append_80 = src/libout123/modules/output_sdl.la #am__append_81 = src/libout123/modules/output_sndio.la -am__append_82 = src/libout123/modules/output_sun.la +#am__append_82 = src/libout123/modules/output_sun.la #am__append_83 = src/libout123/modules/output_win32.la #am__append_84 = src/libout123/modules/output_win32_wasapi.la #am__append_85 = src/libout123/modules/output_aix.la
Patch for
PLIST--- PLIST.orig Thu Jun 9 13:28:55 2022 +++ PLIST Thu Jun 9 13:29:07 2022 @@ -14,7 +14,6 @@ ${PLIST.coreaudio}lib/mpg123/output_coreaudio.so lib/mpg123/output_dummy.so ${PLIST.oss}lib/mpg123/output_oss.so -${PLIST.sun}lib/mpg123/output_sun.so lib/pkgconfig/libmpg123.pc lib/pkgconfig/libout123.pc lib/pkgconfig/libsyn123.pc
tk-8.6.12
Error:
=> Checking file-check results for tk-8.6.12 ERROR: ************************************************************ ERROR: The following files are in the PLIST but not in /usr/pkgsrc/x11/tk/work/.destdir/usr/pkg: ERROR: /usr/pkgsrc/x11/tk/work/.destdir/usr/pkg/lib/libtk86.a ERROR: /usr/pkgsrc/x11/tk/work/.destdir/usr/pkg/lib/libtk86.so ERROR: ************************************************************ ERROR: The following files are in /usr/pkgsrc/x11/tk/work/.destdir/usr/pkg but not in the PLIST: ERROR: /usr/pkgsrc/x11/tk/work/.destdir/usr/pkg/lib/libtk86.so.1.0.1.0
Fix:
cp PLIST PLIST.orig bmake print-PLIST >PLIST bmake deinstall clean bmake install
TCL 8.6.12nb1
Error
The following files are in /usr/pkgsrc/lang/tcl/work/.destdir/usr/pkg but not in the PLIST:cp PLIST PLIST.orig bmake print-PLIST >PLIST bmake deinstall clean bmake install
Ruby 2.7-base
- In file
work/ruby-2.7.6/coroutine/copy/Context.hremove the statement#include <alloca.h>, as this file cannot be found andallocais part ofstdlibon xBSD
MacOS X 10.4
Gettext
/usr/pkgsrc/devel/gettext-tools/work/.buildlink/lib/libiconv.la' is not a valid libtool archive cp /usr/lib/libiconv.la /usr/pkgsrc/devel/gettext-tools/work/.buildlink/lib/libiconv.la
LZ4
/usr/pkgsrc/archivers/lz4/work/lz4-1.9.3/lib/Makefile
- SONAME_FLAGS = -install_name $(libdir)/liblz4.$(SHARED_EXT_MAJOR) -compatibility_version $(LIBVER_MAJOR) -current_version $(LIBVER) + SONAME_FLAGS = -install_name $(libdir)/liblz4.$(SHARED_EXT_MAJOR) -compatibility_version $(LIBVER_MAJOR) -current_version $(LIBVER) -dynamiclib
zstd
/usr/pkgsrc/archivers/zstd/work/zstd-1.5.0/lib
--- Makefile.orig 2022-01-18 13:38:13.000000000 +0100
+++ Makefile 2022-01-18 13:38:47.000000000 +0100
@@ -66,8 +66,8 @@
DEBUGFLAGS= -Wall -Wextra -Wcast-qual -Wcast-align -Wshadow \
-Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement \
-Wstrict-prototypes -Wundef -Wpointer-arith \
- -Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \
- -Wredundant-decls -Wmissing-prototypes -Wc++-compat
+ -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \
+ -Wredundant-decls -Wmissing-prototypes
CFLAGS += $(DEBUGFLAGS) $(MOREFLAGS)
FLAGS = $(CPPFLAGS) $(CFLAGS)
@@ -510,4 +510,3 @@
$(RM) $(DESTDIR)$(INCLUDEDIR)/zstd_errors.h
$(RM) $(DESTDIR)$(INCLUDEDIR)/zdict.h
@echo zstd libraries successfully uninstalled
-
bash 5.10
rpath /inwork/bash-5.1/Makefile
dvtm
remove -lutil from config.mk
Linux ARM
wm/wmii
- in
work/wmii+ixp-3.9.2/cmd/Makefile
LIBS += $(LIBS9) -lXrender -lX11
misc/siag
- in
/usr/pkgsrc/misc/siag/work/siag-3.6.1/egon/siodi.cadd#include <string.h> - in
/usr/pkgsrc/misc/siag/work/siag-3.6.1/xfiler/Errors.cand/usr/pkgsrc/misc/siag/work/siag-3.6.1/xfiler/Exec.cand/usr/pkgsrc/misc/siag/work/siag-3.6.1/xfiler/tycoon.cadd#include <stdlib.h>
CFLAGS="-D_GNU_SOURCE -Wno-incompatible-pointer-types -Wno-maybe-uninitialized" bmake clean replace
notion
CFLAGS="-D_GNU_SOURCE" bmake clean install cd /usr/pkgsrc/wm/notion/work/notion-3-2017050501/notion # add -ldl cc notion.o -Wl,-whole-archive ../ioncore/ioncore.a -Wl,-no-whole-archive -L/usr/pkg/gcc14/lib/gcc/armv7l-eCafe-linux-gnueabi/14.2.0 -Wl,-R/usr/pkg/gcc14/lib/gcc/armv7l-eCafe-linux-gnueabi/14.2.0 -L/usr/pkg/gcc14/lib -Wl,-R/usr/pkg/gcc14/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -Wl,--as-needed -lintl -lrt -Wl,--as-needed -Wl,-R/lib -L/lib -lX11 -lXext -lSM -lICE -Wl,-whole-archive -L../libmainloop -lmainloop -L../libextl -lextl -L../libtu -ltu -Wl,-no-whole-archive -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -llua5.2 -lm -lm -lintl -lrt -ldl -Xlinker --export-dynamic -o notion
libgcrypt
- Makefile
CONFIGURE_ARGS+= --disable-asm
qodem
- Makefile
CFLAGS+=-std=c99 -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
MesaLib
meson.build
--- meson.build.orig 2022-06-30 17:37:46.512395003 +0200 +++ meson.build 2022-06-30 18:12:17.602395002 +0200 @@ -1269,20 +1269,21 @@ dep_thread = dependency('threads') if dep_thread.found() and host_machine.system() != 'windows' pre_args += '-DHAVE_PTHREAD' - if cc.has_function( + if cc.has_function( 'pthread_setaffinity_np', dependencies : dep_thread, prefix : '#include <pthread.h>', args : '-D_GNU_SOURCE') pre_args += '-DHAVE_PTHREAD_SETAFFINITY' endif - if cc.has_function( - 'pthread_setaffinity_np', - dependencies : dep_thread, - prefix : '#include <pthread_np.h>') - pre_args += '-DPTHREAD_SETAFFINITY_IN_NP_HEADER' - endif +# if cc.has_function( +# 'pthread_setaffinity_np', +# dependencies : dep_thread, +# prefix : '#include <pthread_np.h>') +# pre_args += '-DPTHREAD_SETAFFINITY_IN_NP_HEADER' +# endif endif + if host_machine.system() != 'windows' dep_expat = dependency('expat', fallback : ['expat', 'expat_dep']) else./src/util/os_file.c--- ./src/util/os_file.c.orig 2022-06-30 18:19:25.532395001 +0200 +++ ./src/util/os_file.c 2022-06-30 18:19:59.842395002 +0200 @@ -138,7 +138,8 @@ { pid_t pid = getpid(); - return syscall(SYS_kcmp, pid, pid, KCMP_FILE, fd1, fd2) == 0; +// return syscall(SYS_kcmp, pid, pid, KCMP_FILE, fd1, fd2) == 0; + return 0; }/src/util/u_thread.h--- ./src/util/u_thread.h.orig 2022-06-30 18:21:10.822395002 +0200 +++ ./src/util/u_thread.h 2022-06-30 18:28:54.422395001 +0200 @@ -72,21 +72,6 @@ static inline void u_thread_setname( const char *name ) { -#if defined(HAVE_PTHREAD) -#if DETECT_OS_LINUX || DETECT_OS_CYGWIN - pthread_setname_np(pthread_self(), name); -#elif DETECT_OS_FREEBSD || DETECT_OS_OPENBSD - pthread_set_name_np(pthread_self(), name); -#elif DETECT_OS_NETBSD - pthread_setname_np(pthread_self(), "%s", (void *)name); -#elif DETECT_OS_APPLE - pthread_setname_np(name); -#elif DETECT_OS_HAIKU - rename_thread(find_thread(NULL), name); -#else -#warning Not sure how to call pthread_setname_np -#endif -#endif (void)name; }
w3m
- Configure fails with
undefinded reference to clock_gettime- Fix: Needs
libtr, prependLDFLAGS:
- Fix: Needs
LDFLAGS="-lrt" bmake install
gmp
- Fails to compile because the ARM assembly instructions don't work on the eCafe ARM CPU
- Fix: add
--disable-assemblyto pkgsrc Makefile
- Fix: add
CONFIGURE_ARGS+= --without-readline --disable-assembly
zstd
LDFLAGS="-lrt" CFLAGS=-D_XOPEN_SOURCE=600 bmake install
bmake
strlcpyis missing inmeta.c, add the following line towork/bmake/meta.c:
size_t strlcpy(char *, const char *, size_t);
libuuid
- In
Makefile
CONFIGURE_ARGS+= --disable-year2038
- In
work/util-linux-2.40.2/include/xxhash.h
#if !defined __cplusplus #define static_assert _Static_assert #endif
eCafe ARM pkgsrc packages
This is a list of pkgsrc packages that I've installed on my eCafe ARM Linux Netbook:
- tmux
- dvtm
- ncdu
- lua53
- openssl
- wget
- python3
- coreutils
- binutils
- mksh
- pdksh
- oksh
- bash
- ficl
- mozilla-rootcerts
- mozilla-rootcerts-openssl
- gnupg2
- links2-gui
- nnn
- zig
- nim
- py-curses
- git
- w3m
- password-store
- forth-retro
- tcl
- squeak
- zsh
- tor
- torsocks
- cwm
- ctwm
Installed via pip
- mps-youtube
- bpytop
- glances
- AV-98 (gemini client)
- twtxt
Installed from source
- https://src.clttr.info/rwa/cgmnlm
- elinks https://github.com/rkd77/elinks
- emacs https://ftp.gnu.org/pub/gnu/emacs
- jasspa-microemacs https://github.com/cstrotm/jasspa-microemacs
- Go (1.18) https://golang.org