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

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

    <bug>
          <bug_id>32231</bug_id>
          
          <creation_ts>2016-06-29 17:23:29 +0300</creation_ts>
          <short_desc>.spec: it&apos;s better not to redefine %_libdir for build (and check for 64 differently)</short_desc>
          <delta_ts>2021-08-28 02:27:13 +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>picolisp</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>P3</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="Ilya Mashkin">oddity</assigned_to>
          <cc>glebfm</cc>
    
    <cc>oddity</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>157503</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-06-29 17:23:29 +0300</bug_when>
    <thetext>picolisp-16.6-alt1

С переназначением %_libdir тоже хорошо бы что-то сделать (потому что
сборочные &quot;инструменты&quot;/&quot;реквизиты&quot; будут искаться ведь тоже не там! И та простыня ошибок была вызвана чем-то вроде этой причины):

# pretty much hardwired
%define _libdir %_usr/lib

Т.е. высталять новое значение как параметр сборки явно в %build, %install, %files?

(Тут ещё возникает неожиданное несоответствие между %_lib и %_libdir -- обычно одно в конце другого, а здесь:

	export RPM_LIB=&quot;lib64&quot;
	export RPM_LIBDIR=&quot;/usr/lib&quot;
	export RPM_DATADIR=&quot;/usr/share&quot;

).

* * *

Попробовал переписать проверку 64ёх на более осмысленную в master в
git.alt:/people/imz/packages/picolisp.git :

diff --git a/picolisp.spec b/picolisp.spec
index 534ceed..cb6a61d 100644
--- a/picolisp.spec
+++ b/picolisp.spec
@@ -28,10 +28,12 @@ PicoLisp can be viewed from two different aspects:
 %setup -n picoLisp
 
 %build
-%ifarch x86_64 ia64 ppc64 sparc64 s390x
+%if &quot;%(getconf LONG_BIT)&quot; == &quot;64&quot;
 cd src64
-%else
+%elif &quot;%(getconf LONG_BIT)&quot; == &quot;32&quot;
 cd src
+%else
+exit 1
 %endif
 make
 cd ..

Можно ещё ExclusiveArch прописать (на твой вкус).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157510</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2016-06-29 19:22:35 +0300</bug_when>
    <thetext>Similar .spec problems:

https://bugzilla.altlinux.org/show_bug.cgi?id=32232
https://bugzilla.altlinux.org/show_bug.cgi?id=32233</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>192711</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2020-09-21 15:36:17 +0300</bug_when>
    <thetext>Вань, похоже, я тогда не заметил эту багу просто -- если хочешь, сделай NMU.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202102</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2021-08-28 02:27:13 +0300</bug_when>
    <thetext>picolisp-21.6-alt1 -&gt; sisyphus:

 Fri Aug 27 2021 Ilya Mashkin &lt;oddity@altlinux.ru&gt; 21.6-alt1
 - 21.6
 - build with clang, llvm etc
 - undefine usrlib (Closes: #32231)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>