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

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

    <bug>
          <bug_id>49530</bug_id>
          
          <creation_ts>2024-02-27 17:59:58 +0300</creation_ts>
          <short_desc>Не находит luasql</short_desc>
          <delta_ts>2024-02-28 11:59:44 +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>lua5.3-luarocks</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</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="Sergei Naumov">Sergei.Naumov</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>242221</commentid>
    <comment_count>0</comment_count>
    <who name="Sergei Naumov">Sergei.Naumov</who>
    <bug_when>2024-02-27 17:59:58 +0300</bug_when>
    <thetext>Требуется организовать соединение с MariaDB. Пакет lua5.3-module-dbi-0.7.2-alt2.x86_64 стоит, но драйвер не ищется:

[serge@yarilo latex]$ lua5.3 
Lua 5.3.6  Copyright (C) 1994-2020 Lua.org, PUC-Rio
&gt; require &quot;luasql.mysql&quot;
stdin:1: module &apos;luasql.mysql&apos; not found:
        no field package.preload[&apos;luasql.mysql&apos;]
        no file &apos;/usr/share/lua/5.3/luasql/mysql.lua&apos;
        no file &apos;/usr/share/lua/5.3/luasql/mysql/init.lua&apos;
        no file &apos;/usr/lib64/lua/5.3/luasql/mysql.lua&apos;
        no file &apos;/usr/lib64/lua/5.3/luasql/mysql/init.lua&apos;
        no file &apos;./luasql/mysql.lua&apos;
        no file &apos;./luasql/mysql/init.lua&apos;
        no file &apos;/usr/lib64/lua/5.3/luasql/mysql.so&apos;
        no file &apos;/usr/lib64/lua/5.3/loadall.so&apos;
        no file &apos;./luasql/mysql.so&apos;
        no file &apos;/usr/lib64/lua/5.3/luasql.so&apos;
        no file &apos;/usr/lib64/lua/5.3/loadall.so&apos;
        no file &apos;./luasql.so&apos;
stack traceback:
        [C]: in function &apos;require&apos;
        stdin:1: in main chunk
        [C]: in ?
Пытаюсь поставить luasql, но его нет

[root@yarilo ~]# luarocks-5.3 install luasql

Error: No results matching query were found for Lua 5.3.
To check if it is available for other Lua versions, use --check-lua-versions.

То же самое для 5.4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>242222</commentid>
    <comment_count>1</comment_count>
    <who name="Sergei Naumov">Sergei.Naumov</who>
    <bug_when>2024-02-27 18:05:23 +0300</bug_when>
    <thetext>Смотрю, что в /usr/lib64/lua/5.3 нет luasql, а есть dbd/. Однако:

[serge@yarilo latex]$ lua5.3
Lua 5.3.6  Copyright (C) 1994-2020 Lua.org, PUC-Rio
&gt; require &quot;dbd.mysql&quot;
table: 0x55b5cae3a220
&gt; env = assert (dbd.mysql())
stdin:1: attempt to index a nil value (global &apos;dbd&apos;)
stack traceback:
        stdin:1: in main chunk
        [C]: in ?
&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>242277</commentid>
    <comment_count>2</comment_count>
    <who name="Sergei Naumov">Sergei.Naumov</who>
    <bug_when>2024-02-28 11:59:44 +0300</bug_when>
    <thetext>Разобрался. В ALT&apos;е другой пакет... Не баг...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>