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

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

    <bug>
          <bug_id>29584</bug_id>
          
          <creation_ts>2013-11-14 19:02:54 +0400</creation_ts>
          <short_desc>libshell требует для сборки себя же</short_desc>
          <delta_ts>2015-02-24 15:56:12 +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>libshell</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>patch</keywords>
          <priority>P3</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="solo">solo</reporter>
          <assigned_to name="Alexey Gladkov">legion</assigned_to>
          <cc>glebfm</cc>
    
    <cc>legion</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>143789</commentid>
    <comment_count>0</comment_count>
    <who name="solo">solo</who>
    <bug_when>2013-11-14 19:02:54 +0400</bug_when>
    <thetext>Начиная от версии 0.1.7, libshell требует для сборки себя же. При отсутствии libshell в системе (сборочном chroot) наблюдаю следующее:

...
+ make install DESTDIR=/builddir/build/BUILDROOT/libshell-0.2.0-1.el6.altell1.noarch DESTDIR=/builddir/build/BUILDROOT/libshell-0.2.0-1.el6.altell1.noarch install install-single
install -d -m755 /builddir/build/BUILDROOT/libshell-0.2.0-1.el6.altell1.noarch/bin
cp -a shell-args shell-cmdline shell-config shell-error shell-getopt shell-ini-config shell-ip-address shell-mail-address shell-process shell-quote shell-regexp shell-run shell-signal shell-source shell-string shell-unittest shell-var shell-version /builddir/build/BUILDROOT/libshell-0.2.0-1.el6.altell1.noarch/bin/
install -d -m755 /builddir/build/BUILDROOT/libshell-0.2.0-1.el6.altell1.noarch/usr/share/man/man3
for i in docs/libshell.man docs/shell-error.man; do \
		d=&quot;${i%.man}.3&quot;; d=&quot;${d##*/}&quot;; \
		install -m644 $i /builddir/build/BUILDROOT/libshell-0.2.0-1.el6.altell1.noarch/usr/share/man/man3/$d; \
	done
install -d -m755 /builddir/build/BUILDROOT/libshell-0.2.0-1.el6.altell1.noarch/usr/share/libshell
/builddir/build/BUILD/libshell-0.2.0/gen-deps.sh shell-args shell-cmdline shell-config shell-error shell-getopt shell-ini-config shell-ip-address shell-mail-address shell-process shell-quote shell-regexp shell-run shell-signal shell-source shell-string shell-unittest shell-var shell-version &gt; /builddir/build/BUILDROOT/libshell-0.2.0-1.el6.altell1.noarch/usr/share/libshell/DEPS
./shell-quote: line 9: .: shell-version: file not found
make: *** [install] Error 1

Причина: Скрипты gen-deps.sh и gen-syms.sh используют shell-quote, расположенный в каталоге сборки:

...
. ./shell-quote

А shell-quote, пытается задействовать нужные скрипты через PATH:

...
. shell-version
. shell-error
. shell-string

Что вызывает ошибку, если их там нет.

Предлагаю при вызове сборочных скриптов (gen-*.sh) дополнять PATH каталогом, из которого скрипты инсталлируются (см. http://git.altlinux.org/people/solo/packages/?p=libshell.git;a=commitdiff;h=b8818d5cae1e3d9a16dc85689605eabecc55f83f).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143794</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2013-11-15 15:51:44 +0400</bug_when>
    <thetext>Хм ... Согласен, но только мне кажется, что правильнее PATH=&quot;$(CURDIR):$(PATH)&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143795</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2013-11-15 15:53:43 +0400</bug_when>
    <thetext>Исправите или мне закоммитить ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143796</commentid>
    <comment_count>3</comment_count>
    <who name="solo">solo</who>
    <bug_when>2013-11-15 16:19:15 +0400</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; Исправите или мне закоммитить ?

Патч готов сделать сейчас. Если нужно NMU -- то только ночью.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143797</commentid>
    <comment_count>4</comment_count>
    <who name="solo">solo</who>
    <bug_when>2013-11-15 16:23:37 +0400</bug_when>
    <thetext>Новый вариант: http://git.altlinux.org/people/solo/packages/?p=libshell.git;a=commitdiff;h=f6e347db2839ea21c3a6bb1ca0f9fdfd4b58db59</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>143798</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2013-11-15 16:54:01 +0400</bug_when>
    <thetext>Забрал. Спасибо. Скоро выложу.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150442</commentid>
    <comment_count>6</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2015-02-24 15:56:12 +0300</bug_when>
    <thetext>libshell-0.3.0-alt1 -&gt; sisyphus:

* Tue Feb 24 2015 Alexey Gladkov &lt;legion@altlinux&gt; 0.3.0-alt1
- New version (0.3.0).
- Fix bootstrap (ALT#29584).
- shell-ini-config changes:
  + Add ini_config_is_set() function.
  + Take care about lines without values (ALT#30713).
- shell-unittest changes:
  + Add TESTCASES variable to list individual testcases (ALT#27059).
  + Add TESTTRACE variable to run testcase in debug mode (ALT#27059).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>