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

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

    <bug>
          <bug_id>6797</bug_id>
          
          <creation_ts>2005-05-08 10:38:50 +0400</creation_ts>
          <short_desc>AC_PATH_XTRA always yields xorg-x11-devel-static</short_desc>
          <delta_ts>2008-07-20 23:16:14 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>autoconf_2.60</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>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="at@altlinux.org">at</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>glebfm</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>24324</commentid>
    <comment_count>0</comment_count>
    <who name="at@altlinux.org">at</who>
    <bug_when>2005-05-08 10:38:50 +0400</bug_when>
    <thetext>AC_PATH_XTRA always yields xorg-x11-devel-static

$ cat configure.ac
AC_PREREQ(2.59)
AC_INIT
AC_PATH_XTRA
$ autoreconf
...
$ filereq /dev/stdout sh -x ./configure 2&gt;&amp;1 |grep libX11
+ test &apos;!&apos; -f /usr/X11R6/lib/libX11.so
+ test &apos;!&apos; -f /usr/X11R6/lib/libX11.sl
+ test -f /usr/X11R6/lib/X11/libX11.sl
+ test &apos;!&apos; -f /usr/X11R6/lib/libX11.a
/usr/X11R6/lib/libX11.a
/usr/X11R6/lib/libX11.so
$

The following piece of code is the culprit:

--- configure-	2005-05-08 05:27:46 +0000
+++ configure	2005-05-08 05:29:14 +0000
@@ -2457,8 +2457,8 @@ _ACEOF
     eval `${MAKE-make} acfindx 2&gt;/dev/null | grep -v make`
     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
     for ac_extension in so sl a; do
-      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &amp;&amp;
-	 test -f $ac_im_libdir/libX11.$ac_extension; then
+      if test -f $ac_im_libdir/libX11.$ac_extension &amp;&amp;
+	 test ! -f $ac_im_usrlibdir/libX11.$ac_extension; then
 	ac_im_usrlibdir=$ac_im_libdir; break
       fi
     done

Here an attempt is made to replace /usr/X11R6/lib ($ac_im_usrlibdir) with
/usr/X11R6/lib/X11 ($ac_im_libdir), in case the latter contains libX11
libraries (which is unusual).  If you simply change the order of these two
tests so that /usr/X11R6/lib/X11/libX11.* are tested for (non-)existence first,
actual libraries won&apos;t be stat(2)ted because of short-circuit evaluation.

$ patch configure &lt;patch
$ autoreconf
$ filereq /dev/stdout sh -x ./configure 2&gt;&amp;1 |grep libX11
+ test -f /usr/X11R6/lib/X11/libX11.so
+ test -f /usr/X11R6/lib/X11/libX11.sl
+ test -f /usr/X11R6/lib/X11/libX11.a
/usr/X11R6/lib/libX11.so
$

The above patch applies cleanly to autoconf-2.59/lib/autoconf/libs.m4
(with a huge offset, of course).  It is supposed to be incremental to
autoconf-2.57-alt-ac_extension.patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24327</commentid>
    <comment_count>1</comment_count>
    <who name="at@altlinux.org">at</who>
    <bug_when>2005-05-08 10:43:38 +0400</bug_when>
    <thetext>*** Bug 6796 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24332</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2005-05-08 17:19:27 +0400</bug_when>
    <thetext>Ok, I&apos;ll apply this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60564</commentid>
    <comment_count>3</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2008-01-08 03:22:43 +0300</bug_when>
    <thetext>Что-то не сложилось за два года?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60567</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-01-08 03:38:11 +0300</bug_when>
    <thetext>(In reply to comment #3)
&gt; Что-то не сложилось за два года?

Наверное потерялось при смене мантейнера.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63945</commentid>
    <comment_count>5</comment_count>
    <who name="avm">avm</who>
    <bug_when>2008-02-18 02:33:18 +0300</bug_when>
    <thetext>Нашлось в 2.61-alt3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74236</commentid>
    <comment_count>6</comment_count>
    <who name="avm">avm</who>
    <bug_when>2008-07-20 23:16:14 +0400</bug_when>
    <thetext>Жалоб нет -- закроем.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>