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

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

    <bug>
          <bug_id>50059</bug_id>
          
          <creation_ts>2024-04-17 16:17:33 +0300</creation_ts>
          <short_desc>shebang.req: too many arguments</short_desc>
          <delta_ts>2024-05-20 13:00:04 +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>rpm-build</component>
          <version>unstable</version>
          <rep_platform>all</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="Yuri N. Sedunov">aris</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>arseny</cc>
    
    <cc>glebfm</cc>
    
    <cc>imz</cc>
    
    <cc>ldv</cc>
    
    <cc>placeholder</cc>
    
    <cc>vt</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>244899</commentid>
    <comment_count>0</comment_count>
    <who name="Yuri N. Sedunov">aris</who>
    <bug_when>2024-04-17 16:17:33 +0300</bug_when>
    <thetext>Уже в нескольких проектах приходится править шебанги, чтоб удовлетворить shebang.req. Насколько по-вашему его претензии обоснованы?

shebang.req: ERROR: /home/aris/RPM/TMP/gnome-shell-extension-gsconnect-buildroot/usr/libexec/installed-tests/gsconnect/minijasmine: too many arguments: #!/usr/bin/env -S gjs -m
find-requires: ERROR: /usr/lib/rpm/shebang.req failed
ошибка: /bin/sh failed
ошибка: Failed to find Requires</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>244959</commentid>
    <comment_count>1</comment_count>
    <who name="Arseny Maslennikov">arseny</who>
    <bug_when>2024-04-18 12:47:53 +0300</bug_when>
    <thetext>(In reply to Yuri N. Sedunov from comment #0)
&gt; Уже в нескольких проектах приходится править шебанги, чтоб удовлетворить
&gt; shebang.req. Насколько по-вашему его претензии обоснованы?
&gt; 
&gt; shebang.req: ERROR:
&gt; /home/aris/RPM/TMP/gnome-shell-extension-gsconnect-buildroot/usr/libexec/
&gt; installed-tests/gsconnect/minijasmine: too many arguments: #!/usr/bin/env -S
&gt; gjs -m
&gt; find-requires: ERROR: /usr/lib/rpm/shebang.req failed
&gt; ошибка: /bin/sh failed
&gt; ошибка: Failed to find Requires

Кроме gjs -m, есть и другие случаи, где полезны интерпретаторы со своими параметрами, например, perl -w. Так что, полагаю, если мы разрешаем /usr/bin/env gjs, то и /usr/bin/env &apos;-S gjs -m&apos; стоит разрешить.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>246455</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2024-05-20 13:00:04 +0300</bug_when>
    <thetext>rpm-build-4.0.4.199-alt1 -&gt; sisyphus:

 Fri May 17 2024 Arseny Maslennikov &lt;arseny@altlinux&gt; 4.0.4.199-alt1
 - vt@:
   + Allowed env shebang with split-string arguments (ALT#50059).
 - shaba@:
   + systemd-services.req.files: add /usr/lib/systemd/system for system units,
     since that is a valid unit file location on merged-usr systems.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>