Accepting request 1246407 from devel:languages:misc

- Shorten path of screen configuration to shorten socket path as
  otherwise bind(2) used by screen(1) fails with invalid argument
  due shorten path of 108 chracters of sun_path used in glibc
  (note that kernel use UNIX_PATH_MAX)

OBS-URL: https://build.opensuse.org/request/show/1246407
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/clisp?expand=0&rev=54
This commit is contained in:
Ana Guerrero 2025-02-17 19:56:44 +00:00 committed by Git OBS Bridge
commit 5772d3801b
2 changed files with 25 additions and 3 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Feb 17 11:44:29 UTC 2025 - Dr. Werner Fink <werner@suse.de>
- Shorten path of screen configuration to shorten socket path as
otherwise bind(2) used by screen(1) fails with invalid argument
due shorten path of 108 chracters of sun_path used in glibc
(note that kernel use UNIX_PATH_MAX)
-------------------------------------------------------------------
Mon Nov 25 09:24:25 UTC 2024 - Dr. Werner Fink <werner@suse.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package clisp
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -245,9 +245,15 @@ echo | $CC %{optflags} -v -E - 2>&1 | grep /cc1
#
%global _configure screen -D -m setarch $(uname -m) -R ./configure
%global _make screen -D -m setarch $(uname -m) -R make
SCREENDIR=$(mktemp -d ${PWD}/screen.XXXXXX) || exit 1
#
# Shorten socket path as otherwise bind(2) used by screen(1)
# fails with invalid argument due shorten patch of 108 chracters
# of sun_path used in glibc (note that kernel use UNIX_PATH_MAX)
#
TMPDIR=$(mktemp -d /tmp/clisp.XXXXXX) || exit 1
SCREENDIR=$TMPDIR
SCREENRC=${SCREENDIR}/clisp
export SCREENRC SCREENDIR
export SCREENRC SCREENDIR TMPDIR
exec 0< /dev/null
SCREENLOG=${SCREENDIR}/log
cat > $SCREENRC<<-EOF
@ -280,6 +286,8 @@ sed -ri 's/(\(def-c-var diffptr)/;; \1/p' modules/pari/pari.lisp
#
> $SCREENLOG
tail -q -s 0.5 -f $SCREENLOG & pid=$!
env -i HOME=$HOME TERM=$TERM PATH=$PATH TMPDIR=$TMPDIR \
LANG=C.UTF-8 LC_ALL=C.UTF-8 SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \
%_configure build ${DEBUG} \
${port+"$port"} \
--prefix=%{_prefix} \
@ -312,9 +320,15 @@ tail -q -s 0.5 -f $SCREENLOG & pid=$!
CFLAGS="%{optflags}" \
LDFLAGS="%{ldflags}"
env -i HOME=$HOME TERM=$TERM PATH=$PATH TMPDIR=$TMPDIR \
LANG=C.UTF-8 LC_ALL=C.UTF-8 SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \
%_make -C build lispbibl.h
grep TYPECODES build/lispbibl.h || :
env -i HOME=$HOME TERM=$TERM PATH=$PATH TMPDIR=$TMPDIR \
LANG=C.UTF-8 LC_ALL=C.UTF-8 SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \
%_make -C build
env -i HOME=$HOME TERM=$TERM PATH=$PATH TMPDIR=$TMPDIR \
LANG=C.UTF-8 LC_ALL=C.UTF-8 SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \
%_make -C build check
#