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:
@@ -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>
|
Mon Nov 25 09:24:25 UTC 2024 - Dr. Werner Fink <werner@suse.de>
|
||||||
|
|
||||||
|
20
clisp.spec
20
clisp.spec
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package clisp
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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 _configure screen -D -m setarch $(uname -m) -R ./configure
|
||||||
%global _make screen -D -m setarch $(uname -m) -R make
|
%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
|
SCREENRC=${SCREENDIR}/clisp
|
||||||
export SCREENRC SCREENDIR
|
export SCREENRC SCREENDIR TMPDIR
|
||||||
exec 0< /dev/null
|
exec 0< /dev/null
|
||||||
SCREENLOG=${SCREENDIR}/log
|
SCREENLOG=${SCREENDIR}/log
|
||||||
cat > $SCREENRC<<-EOF
|
cat > $SCREENRC<<-EOF
|
||||||
@@ -280,6 +286,8 @@ sed -ri 's/(\(def-c-var diffptr)/;; \1/p' modules/pari/pari.lisp
|
|||||||
#
|
#
|
||||||
> $SCREENLOG
|
> $SCREENLOG
|
||||||
tail -q -s 0.5 -f $SCREENLOG & pid=$!
|
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} \
|
%_configure build ${DEBUG} \
|
||||||
${port+"$port"} \
|
${port+"$port"} \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
@@ -312,9 +320,15 @@ tail -q -s 0.5 -f $SCREENLOG & pid=$!
|
|||||||
CFLAGS="%{optflags}" \
|
CFLAGS="%{optflags}" \
|
||||||
LDFLAGS="%{ldflags}"
|
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
|
%_make -C build lispbibl.h
|
||||||
grep TYPECODES 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
|
%_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
|
%_make -C build check
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user