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

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

    <bug>
          <bug_id>3382</bug_id>
          
          <creation_ts>2003-12-16 23:57:24 +0300</creation_ts>
          <short_desc>rtlinux build crash</short_desc>
          <delta_ts>2005-07-13 15:45:39 +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>findutils</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>http://www2.fsmlabs.com/pipermail/rtl/2002-December/011528.html</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="Evgeny Sinelnikov">sin</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>10935</commentid>
    <comment_count>0</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2003-12-16 23:57:24 +0300</bug_when>
    <thetext>I am getting next error, when I build rtlinux-3.2-pre3 after make dep:
&quot;xargs: environment is too large for exec&quot;
I made next patch to avoid this problem:
Make big arg_max
--- findutils-4.1.20.orig/xargs/xargs.c 2003-11-08 18:01:17 +0300
+++ findutils-4.1.20/xargs/xargs.c      2003-11-08 18:06:10 +0300
@@ -300,8 +300,8 @@
      have it at 1 meg).  Things will work fine with a large ARG_MAX but it
      will probably hurt the system more than it needs to; an array of this
      size is allocated.  */
-  if (arg_max &gt; 20 * 1024)
-    arg_max = 20 * 1024;
+  if (arg_max &gt; 64 * 1024)
+    arg_max = 64 * 1024;

   /* Take the size of the environment into account.  */
   arg_max -= env_size (environ);


Steps to Reproduce:
1.tar -xjf rtlinux-3.2-pre3.tar.bz2; cd rtlinux-3.2-pre3
2.ln -s &lt;path_to_kernel&gt; linux
3.make config; make dep
Actual Results:  
make: error

Expected Results:  
make: done</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10941</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2003-12-17 15:32:14 +0300</bug_when>
    <thetext>You&apos;d better clean up your environment; see &quot;printenv |wc&quot;. 
 
* Wed Dec 17 2003 Dmitry V. Levin &lt;ldv@altlinux.org&gt; 4.1.20-alt2 
- xargs: increased ARG_MAX limit from 20K to 64K, on popular demand. 
 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10973</commentid>
    <comment_count>2</comment_count>
    <who name="Evgeny Sinelnikov">sin</who>
    <bug_when>2003-12-22 10:48:22 +0300</bug_when>
    <thetext>One kb don&apos;t solve this problem.
-----------------------------------
[sin@localhost SPECS]$ printenv |wc
     55      66    1455
-----------------------------------
Thank you!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>