[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#370412: marked as done (x11-common: /bin/ls: argument list too long)



Your message dated Wed, 15 Aug 2007 00:03:09 +0200
with message-id <46C2269D.2050306@ens-lyon.org>
and subject line Bug#370412: x11-common: /bin/ls: argument list too long
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: x11-common
Version: 6.9.0.dfsg.1-4etch2
Severity: important


x11-common.postinst dies in several places in the function find_culprits
with "argument list too long".  It appears to be trying to expand glob
patterns that look like this:

	/var/lib/dpkg/info/*.list

as in:

	ls -1 $_dpkg_info_dir/*.list

This of course fails if you have a lot of packages installed, preventing
pretty much anything that even thinks about X11 from installing.

Fixing this problem by replacing the code with the following:

	find $_dpkg_info_dir/. -name '*.list' 

simply causes the problem to recur on the following lines, which have 
similar scaling issues.

Something like this code to generate $_smoking_guns would be better:

	find $_dpkg_info_dir/. -name '*.list' -print0 |
		egrep -zv '(xbase-clients|x11-common|xfs|xlibs)' |
		xargs -0 grep -l "$1"

although there are some error cases that are caught by the existing code
in the package that aren't caught by the above code.

It would at least be able to process an unlimited number of packages.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (102, 'testing'), (101, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.16.19-zb5s-s2-nf
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages x11-common depends on:
ii  debconf [debconf-2.0]         1.4.30.13  Debian configuration management sy
ii  debianutils                   2.8.4      Miscellaneous utilities specific t
ii  lsb-base                      3.1-5      Linux Standard Base 3.1 init scrip

-- debconf information:
  x11-common/experimental_packages:
  x11-common/xwrapper/actual_allowed_users: rootonly
  x11-common/xwrapper/nice_value/error:
* x11-common/upgrade_issues:
* x11-common/x11r6_bin_not_empty:
* x11-common/xwrapper/allowed_users: Root Only
* x11-common/xwrapper/nice_value: 0


--- End Message ---
--- Begin Message ---
Closing since this broken code is unused today, so the bug can't occur
anymore. The code is still there as a part of our xsfbs scripts (which
is automatically included and supposed to go away in the future). I'll
see if I can remove this code from xsfbs once I am sure no other package
use it anymore.

Brice


--- End Message ---

Reply to: