<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>38529</bug_id>
          
          <creation_ts>2020-05-24 19:36:30 +0300</creation_ts>
          <short_desc>Не загружаются модули из contrib</short_desc>
          <delta_ts>2023-04-01 09:07:17 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>sbcl</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Denis Smirnov">mithraen</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>cas</cc>
    
    <cc>oddity</cc>
    
    <cc>yuriy.shirokov</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>190278</commentid>
    <comment_count>0</comment_count>
    <who name="Denis Smirnov">mithraen</who>
    <bug_when>2020-05-24 19:36:30 +0300</bug_when>
    <thetext>В sbcl 2.0.4 на x86_64 отломана загрузка модулей из contrib (таких как asdf, sb-posix, и т.д.)

Причина (при трассировке с помощью strace):

stat(&quot;/usr/bin/contrib&quot;, 0x7f46ee5af810) = -1 ENOENT (No such file or directory)
stat(&quot;/usr/bin/../lib/sbcl/contrib&quot;, 0x7f46ee5af830) = -1 ENOENT (No such file or directory)
stat(&quot;/home/smirnovdv/tmp/2020-05-24/./contrib&quot;, 0x7f46ee5af830) = -1 ENOENT (No such file or directory)
stat(&quot;/usr/bin/sbcl&quot;, {st_mode=S_IFREG|0755, st_size=307928, ...}) = 0
stat(&quot;/usr/bin/contrib&quot;, 0x7f46ee5af830) = -1 ENOENT (No such file or directory)
stat(&quot;/usr/bin/../lib/sbcl/contrib&quot;, 0x7f46ee5af850) = -1 ENOENT (No such file or directory)

Т.е. модули ищутся в /usr/lib вместо /usr/lib64.

Ошибка возникла из-за того, что где-то некорректно определяется переменная sbcl_home (раньше она устанавливалась в sbcl-1.4.2-runtime.patch).

В консоли sbcl набрать (require :asdf)

Способ обхода:
SBCL_HOME=/usr/lib64/sbcl sbcl</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190280</commentid>
    <comment_count>1</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2020-05-24 21:52:04 +0300</bug_when>
    <thetext>Посмотрю.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>193220</commentid>
    <comment_count>2</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2020-10-14 13:52:40 +0300</bug_when>
    <thetext>c253 ~ # sbcl 
This is SBCL 2.0.4-alt1, an implementation of ANSI Common Lisp.
More information about SBCL is available at &lt;http://www.sbcl.org/&gt;.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* :asdf
:ASDF
* 

Это нормально? Патч sbcl-2.0.4-runtime.patch применяется для aarch64 и x86_64.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217219</commentid>
    <comment_count>3</comment_count>
    <who name="Yuriy Al. Shirokov">yuriy.shirokov</who>
    <bug_when>2022-11-11 15:20:46 +0300</bug_when>
    <thetext>Наткнулся, вероятно, на тот же баг:
$ sbcl --load &apos;/usr/local/share/quicklisp/quicklisp.lisp&apos;
This is SBCL 2.0.4-alt1, an implementation of ANSI Common Lisp.
More information about SBCL is available at &lt;http://www.sbcl.org/&gt;.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
While evaluating the form starting at line 314, column 0
  of #P&quot;/usr/local/share/quicklisp/quicklisp.lisp&quot;:

debugger invoked on a SB-INT:EXTENSION-FAILURE in thread
#&lt;THREAD &quot;main thread&quot; RUNNING {1000518083}&gt;:
  Don&apos;t know how to REQUIRE SB-BSD-SOCKETS.
See also:
  The SBCL Manual, Variable SB-EXT:*MODULE-PROVIDER-FUNCTIONS*
  The SBCL Manual, Function REQUIRE

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [RETRY   ] Retry EVAL of current toplevel form.
  1: [CONTINUE] Ignore error and continue loading file &quot;/usr/local/share/quicklisp/quicklisp.lisp&quot;.
  2: [ABORT   ] Abort loading file &quot;/usr/local/share/quicklisp/quicklisp.lisp&quot;.
  3:            Ignore runtime option --load &quot;/usr/local/share/quicklisp/quicklisp.lisp&quot;.
  4:            Skip rest of --eval and --load options.
  5:            Skip to toplevel READ/EVAL/PRINT loop.
  6: [EXIT    ] Exit SBCL (calling #&apos;EXIT, killing the process).

(REQUIRE SB-BSD-SOCKETS NIL)
0]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223783</commentid>
    <comment_count>4</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2023-04-01 09:07:17 +0300</bug_when>
    <thetext>sbcl-2.3.3-alt1 -&gt; sisyphus:

 Fri Mar 31 2023 Andrey Cherepanov &lt;cas@altlinux&gt; 2.3.3-alt1
 - 2.3.3 (ALT #44041)
 - Moved to /usr/lib (ALT #38529).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>