Bug#1001207: cron runs sendmail with HOME=/

2021-12-06 Thread Kusanagi Kouichi
Package: cron
Version: 3.0pl1-137
Severity: normal

When esmtp is invoked by cron (via sendmail), it cannot read ~/.esmtprc because 
HOME is set to /.
Cron should set HOME correctly for sendmail.

I did
# cat /tmp/esmtp.sh
#!/bin/sh
exec strace -v -o /tmp/esmtp.log -e trace=file /tmp/esmtp "$@"
# chmod +x /tmp/esmtp.sh
# cp /usr/bin/esmtp /tmp
# mount --bind /tmp/esmtp.sh /usr/bin/esmtp

and got
execve("/tmp/esmtp", ["/tmp/esmtp", "-FCronDaemon", "-i", "-B8BITMIME", "-oem", 
"root"], ["CONSOLE=/dev/console", "HOME=/", "OLDPWD=/", "runlevel=2", 
"INIT_VERSION=sysvinit-3.00", "TERM=linux", "COLUMNS=128", 
"BOOT_IMAGE=/boot/vmlinuz-5.14.21", "PATH=/usr/bin:/bin", "RUNLEVEL=2", 
"PREVLEVEL=N", "SHELL=/bin/sh", "PWD=/root", "previous=N", "LINES=48"]) = 0
access("/etc/ld.so.preload", R_OK)  = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libesmtp.so.6", O_RDONLY|O_CLOEXEC) 
= 3
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/libssl.so.1.1", O_RDONLY|O_CLOEXEC) 
= 3
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libcrypto.so.1.1", O_RDONLY|O_CLOEXEC) 
= 3
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 
3
lstat("/.esmtprc", 0x7fff3a42da10)  = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/.esmtprc", O_RDONLY) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/esmtprc", O_RDONLY) = 3
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16582, si_uid=1000, 
si_status=0, si_utime=0, si_stime=0} ---
+++ exited with 0 +++


-- Package-specific info:
--- EDITOR:


--- /usr/bin/editor:
/usr/bin/nvi

--- /usr/bin/crontab:
-rwxr-sr-x 1 root crontab 43568 Feb 22  2021 /usr/bin/crontab

--- /var/spool/cron:
drwxr-xr-x 3 root root 60 Dec  6 06:09 /var/spool/cron

--- /var/spool/cron/crontabs:
drwx-wx--T 2 root crontab 40 Feb 22  2021 /var/spool/cron/crontabs

--- /etc/cron.d:
drwxr-xr-x 2 root root 80 Dec  6 06:09 /etc/cron.d

--- /etc/cron.daily:
drwxr-xr-x 2 root root 120 Dec  6 07:08 /etc/cron.daily

--- /etc/cron.hourly:
drwxr-xr-x 2 root root 60 Dec  6 06:09 /etc/cron.hourly

--- /etc/cron.monthly:
drwxr-xr-x 2 root root 60 Dec  6 06:09 /etc/cron.monthly

--- /etc/cron.weekly:
drwxr-xr-x 2 root root 60 Dec  6 06:09 /etc/cron.weekly


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.14.21 (SMP w/4 CPU threads)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP), LANGUAGE not 
set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages cron depends on:
ii  adduser  3.118
ii  debianutils  5.5-1
ii  init-system-helpers  1.60
ii  libc62.32-5
ii  libpam-runtime   1.4.0-10
ii  libpam0g 1.4.0-10
ii  libselinux1  3.3-1+b1
ii  lsb-base 11.1.0
ii  sensible-utils   0.0.17

Versions of packages cron recommends:
ii  esmtp-run [mail-transport-agent]  1.2-18

Versions of packages cron suggests:
pn  anacron
pn  checksecurity  
ii  logrotate  3.18.1-2

Versions of packages cron is related to:
pn  libnss-ldap   
pn  libnss-ldapd  
pn  libpam-ldap   
pn  libpam-mount  
pn  nis   
pn  nscd  

-- no debconf information



Bug#816892: debootstrap synchronize the whole filesystem

2016-03-06 Thread Kusanagi Kouichi
Package: debootstrap
Version: 1.0.79
Severity: normal
Tags: patch

Sync at the end of debootstrap sometimes takes for a while. It seems
enough to synchronize only a target filesystem.


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.4.3 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages debootstrap depends on:
ii  wget  1.17.1-1+b1

Versions of packages debootstrap recommends:
ii  debian-archive-keyring  2014.3
ii  gnupg   1.4.20-4

debootstrap suggests no packages.

-- no debconf information
diff -uNrp debootstrap-1.0.79.orig/debootstrap debootstrap-1.0.79/debootstrap
--- debootstrap-1.0.79.orig/debootstrap	2015-11-09 13:01:25.0 +0900
+++ debootstrap-1.0.79/debootstrap	2016-03-06 19:22:04.970728229 +0900
@@ -686,7 +686,7 @@ if am_doing_phase second_stage; then
 			mv "$TARGET/debootstrap/debootstrap.log" "$TARGET/var/log/bootstrap.log"
 		fi
 	fi
-	sync
+	sync -f "$TARGET"
 
 	if [ "$KEEP_DEBOOTSTRAP_DIR" = true ]; then
 		if [ -x "$TARGET/debootstrap/debootstrap" ]; then


Bug#816888: libncursesw5: mutt's thread display is broken

2016-03-06 Thread Kusanagi Kouichi
Package: libncursesw5
Version: 6.0+20160213-1
Severity: important

Since ncurses 6.0+20160213-1, mutt's thread display is broken.
Downgrading libncursesw5 to 6.0+20151024-2 fixes the issue.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.4.3 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages libncursesw5 depends on:
ii  libc6  2.21-9
ii  libtinfo5  6.0+20160213-1

Versions of packages libncursesw5 recommends:
pn  libgpm2  

libncursesw5 suggests no packages.

-- no debconf information


Bug#816887: libncursesw5: background color of mutt's message is black

2016-03-06 Thread Kusanagi Kouichi
Package: libncursesw5
Version: 6.0+20151017-1
Severity: normal

Since ncurses 6.0+20151017-1, background color of mutt's message is
black. Downgrading libncursesw5 to 6.0+20150810-1 fixes the issue.


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.4.3 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages libncursesw5 depends on:
ii  libc6  2.21-9
ii  libtinfo5  6.0+20160213-1

Versions of packages libncursesw5 recommends:
pn  libgpm2  

libncursesw5 suggests no packages.

-- no debconf information


Bug#764331: mount: mount --bind -o remount doesn't preserve flags

2014-10-08 Thread Kusanagi Kouichi
On 2014-10-07 21:58:28 +0200, Andreas Henriksson wrote:
 Control: tag -1 upstream confirmed wontfix
 
 Hello Kusanagi Kouichi.
 
 Thanks for your bug report.
 
 On Tue, Oct 07, 2014 at 10:21:55AM +, Kusanagi Kouichi wrote:
  Package: mount
  Version: 2.25.1-3
  Severity: normal
  
  Since I upgraded mount from 2.20.1-5.11 to 2.25.1-3,
 
 (And during this big version-gap jump mount was completely
 rewritten on top of a new libmount implementation.)
 
  mount --bind -o remount doesn't preserve flags anymore.
 
 Is there a reason you include the --bind argument here?

Actually mount runs inside a new namespace. And remount without --bind
fails with EPERM inside a new namespace. Now it fails even with --bind.

 That is as far as I can tell the culprit and things should
 just work if you don't (but ofcourse the behavioural change
 is unfortunate and I don't know if it's on purpose).
 
 
 If you still want to attempt restoring the old behaviour I would
 start looking at the following code in the end of sys-utils/mount.c
 
if (oper || propa)
 /* For --make-* or --bind is fstab unnecessary */
 mnt_context_set_optsmode(cxt, MNT_OMODE_NOTAB);
 
 
 Also, unless you're satisfied with not including --bind then
 I suggest you bring this discussion to the upstream developers
 who should be able to give you better advice then me. Please
 try util-li...@vger.kernel.org  Just alerting them of the
 behavioural change might be a good idea either way.
 
 Hopefully just dropping the --bind argument should satisfy your
 needs though.
 
 Regards,
 Andreas Henriksson


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#764331: mount: mount --bind -o remount doesn't preserve flags

2014-10-07 Thread Kusanagi Kouichi
Package: mount
Version: 2.25.1-3
Severity: normal

Since I upgraded mount from 2.20.1-5.11 to 2.25.1-3,
mount --bind -o remount doesn't preserve flags anymore.

# mount -V
mount from util-linux 2.20.1 (with libblkid and selinux support)
# grep /tmp /proc/self/mountinfo
24 15 0:22 / /tmp rw,nosuid,nodev,relatime - tmpfs /tmp rw
# strace -e trace=mount mount --bind -o remount,noexec /tmp
mount(tmp, /tmp, 0x4104a4, 
MS_MGC_VAL|MS_NOSUID|MS_NODEV|MS_NOEXEC|MS_REMOUNT|MS_BIND, NULL) = 0
+++ exited with 0 +++
# grep /tmp /proc/self/mountinfo
24 15 0:22 / /tmp rw,nosuid,nodev,noexec,relatime - tmpfs /tmp rw

# mount -V
mount from util-linux 2.25.1 (libmount 2.25.0: selinux, assert, debug)
# grep /tmp /proc/self/mountinfo
24 15 0:22 / /tmp rw,nosuid,nodev,relatime - tmpfs /tmp rw
# strace -e trace=mount mount --bind -o remount,noexec /tmp
mount(none, /tmp, 0x125a2f0, MS_MGC_VAL|MS_NOEXEC|MS_REMOUNT|MS_BIND, NULL) 
= 0
+++ exited with 0 +++
# grep /tmp /proc/self/mountinfo
24 15 0:22 / /tmp rw,noexec,relatime - tmpfs /tmp rw

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.17.0-rc7 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash

Versions of packages mount depends on:
ii  libc6  2.19-11
ii  libmount1  2.25.1-3
ii  libselinux12.3-2
ii  libsmartcols1  2.25.1-3

mount recommends no packages.

Versions of packages mount suggests:
pn  nfs-common  none

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#745709: gcc-4.8: gcc-4.8 lacks dependency on libgcc-4.8-dev

2014-04-24 Thread Kusanagi Kouichi
Package: gcc-4.8
Version: 4.8.2-20
Severity: normal

Without libgcc-4.8-dev, gcc-4.8 cannot link. So it should have
dependency on libgcc-4.8-dev.

$ cat a.c
int main(void)
{
return 0;
}
$ gcc a.c
/usr/bin/ld: cannot find crtbegin.o: No such file or directory
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status
# apt-get install libgcc-4.8-dev
...
$ gcc a.c
$

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14.0 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash

Versions of packages gcc-4.8 depends on:
ii  binutils   2.24.51.20140411-2
ii  cpp-4.84.8.2-20
ii  gcc-4.8-base   4.8.2-20
ii  libc6  2.18-4
ii  libcloog-isl4  0.18.2-1
ii  libgmp10   2:6.0.0+dfsg-2
ii  libisl10   0.12.2-1
ii  libmpc31.0.1-1
ii  libmpfr4   3.1.2-1
ii  zlib1g 1:1.2.8.dfsg-1

Versions of packages gcc-4.8 recommends:
ii  libc6-dev  2.18-4

Versions of packages gcc-4.8 suggests:
ii  binutils [binutils-gold]  2.24.51.20140411-2
pn  gcc-4.8-doc   none
pn  gcc-4.8-locales   none
pn  gcc-4.8-multilib  none
pn  libasan0-dbg  none
pn  libatomic1-dbgnone
pn  libbacktrace1-dbg none
pn  libgcc1-dbg   none
pn  libgomp1-dbg  none
pn  libitm1-dbg   none
pn  libquadmath0-dbg  none
pn  libtsan0-dbg  none

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#660851: apt: apt-cache -f search shows only package name and description

2014-04-08 Thread Kusanagi Kouichi
The attached patch fixes the bug.
diff --git a/cmdline/apt-cache.cc b/cmdline/apt-cache.cc
index 84b7753..7f5c50b 100644
--- a/cmdline/apt-cache.cc
+++ b/cmdline/apt-cache.cc
@@ -1231,6 +1231,7 @@ static bool DisplayRecord(pkgCacheFile CacheFile, 
pkgCache::VerIterator V)
 struct ExDescFile
 {
pkgCache::DescFile *Df;
+   pkgCache::VerIterator V;
map_ptrloc ID;
 };
 
@@ -1316,6 +1317,7 @@ static bool Search(CommandLine CmdL)
 if (D.end() == true)
continue;
 DFList[G-ID].Df = D.FileList();
+DFList[G-ID].V = V;
 DFList[G-ID].ID = G-ID;
   }
 
@@ -1335,6 +1337,7 @@ static bool Search(CommandLine CmdL)
 if (D.end() == true)
continue;
 DFList[id].Df = D.FileList();
+DFList[id].V = V;
 DFList[id].ID = id;
 
 size_t const PrvPatternOffset = id * NumPatterns;
@@ -1376,13 +1379,7 @@ static bool Search(CommandLine CmdL)
   if (matchedAll == true)
   {
 if (ShowFull == true)
-{
-   const char *Start;
-   const char *End;
-   P.GetRec(Start,End);
-   fwrite(Start,End-Start,1,stdout);
-   putc('\n',stdout);
-}   
+   DisplayRecord(CacheFile, J-V);
 else
printf(%s - %s\n,P.Name().c_str(),P.ShortDesc().c_str());
   }


Bug#735673: nvi: large tabstop causes segmentation fault

2014-01-17 Thread Kusanagi Kouichi
Package: nvi
Version: 1.81.6-11
Severity: normal
Tags: patch

Steps to reproduce:

1. Open the attached text file with nvi
2. Set tabstop to a large number. For example, :set tabstop=1000
3. Scroll forward by control-f
4. Scroll backward by control-b

The attached patch fixed the segmentation fault. But I don't know if
this is proper fix.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.13.0-rc7 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash

Versions of packages nvi depends on:
ii  libc6 2.17-97
ii  libdb5.1  5.1.29-7
ii  libncursesw5  5.9+20131221-1
ii  libtinfo5 5.9+20131221-1

Versions of packages nvi recommends:
pn  nvi-doc  none

nvi suggests no packages.

-- no debconf information
1








































































































































































































--- nvi-1.81.6/vi/vs_line.c	2014-01-17 10:07:35.196857991 +
+++ nvi-1.81.6.orig/vi/vs_line.c	2007-11-18 16:41:42.0 +
@@ -442,11 +442,8 @@
 *cbp++ = ch;
 			} else
 for (kp = KEY_NAME(sp, ch) + offset_in_char; 
- chlen--;) {
-	if (cbp = ecbp)
-		FLUSH;
+ chlen--;)
 	*cbp++ = (u_char)*kp++;
-}
 		}
 	}
 


Bug#721712: gcc-4.8 doesn't compile i386 linux kernel on amd64 system

2013-09-04 Thread Kusanagi Kouichi
On 2013-09-04 14:01:04 +0200, Bastian Blank wrote:
 On Wed, Sep 04, 2013 at 02:41:46PM +0900, Kusanagi Kouichi wrote:
  On 2013-09-03 23:43:02 +0200, Bastian Blank wrote:
   If you have used V=1, you would have seen that the compiler calls miss
   the -m32 argument. This is broken in upstream Linux, see
   arch/x86/Makefile*.
  -m32 is missing only with gcc 4.8 because it's broken with gcc 4.8.
 
 This is a different problem than you initially reported. Install
 gcc-4.8-multilib / gcc-multilib.

gcc-multilib solved the problem. Thanks.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#721712: gcc-4.8 doesn't compile i386 linux kernel on amd64 system

2013-09-03 Thread Kusanagi Kouichi
Package: gcc-4.8
Version: 4.8.1-9
Severity: normal

gcc-4.8 doesn't compile i386 linux kernel on amd64 system. gcc-4.7
compiles it successfully.

$ make ARCH=i386 O=/tmp/tmp.c9ws64t6PK allnoconfig
  HOSTCC  scripts/basic/fixdep
  GEN /tmp/tmp.c9ws64t6PK/Makefile
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --allnoconfig Kconfig
#
# configuration written to .config
#
$ make ARCH=i386 O=/tmp/tmp.c9ws64t6PK
  GEN /tmp/tmp.c9ws64t6PK/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
  SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_32.h
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  Using /usr/local/src/linux-3.11 as source for kernel
  GEN /tmp/tmp.c9ws64t6PK/Makefile
  WRAParch/x86/include/generated/asm/clkdev.h
  CHK include/generated/uapi/linux/version.h
  UPD include/generated/uapi/linux/version.h
  CHK include/generated/utsrelease.h
  UPD include/generated/utsrelease.h
  CC  kernel/bounds.s
/usr/local/src/linux-3.11/kernel/bounds.c:1:0: error: CPU you selected does not 
support x86-64 instruction set
 /*
 ^
/usr/local/src/linux-3.11/kernel/bounds.c:1:0: warning: -mregparm is ignored in 
64-bit mode [enabled by default]
make[2]: *** [kernel/bounds.s] Error 1
make[1]: *** [prepare0] Error 2
make: *** [sub-make] Error 2

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.11.0-rc7 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash

Versions of packages gcc-4.8 depends on:
ii  binutils2.23.52.20130828-1
ii  cpp-4.8 4.8.1-9
ii  gcc-4.8-base4.8.1-9
ii  libc6   2.17-92+b1
ii  libcloog-isl4   0.18.0-2
ii  libgcc-4.8-dev  4.8.1-9
ii  libgmp102:5.1.2+dfsg-2
ii  libisl100.11.2-1
ii  libmpc3 1.0.1-1
ii  libmpfr43.1.1-1
ii  zlib1g  1:1.2.8.dfsg-1

Versions of packages gcc-4.8 recommends:
ii  libc6-dev  2.17-92+b1

Versions of packages gcc-4.8 suggests:
ii  binutils [binutils-gold]  2.23.52.20130828-1
pn  gcc-4.8-doc   none
pn  gcc-4.8-locales   none
pn  gcc-4.8-multilib  none
pn  libasan0-dbg  none
pn  libatomic1-dbgnone
pn  libbacktrace1-dbg none
pn  libgcc1-dbg   none
pn  libgomp1-dbg  none
pn  libitm1-dbg   none
pn  libmudflap0-4.8-dev   none
pn  libmudflap0-dbg   none
pn  libquadmath0-dbg  none
pn  libtsan0-dbg  none

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#721712: gcc-4.8 doesn't compile i386 linux kernel on amd64 system

2013-09-03 Thread Kusanagi Kouichi
On 2013-09-03 23:43:02 +0200, Bastian Blank wrote:
 On Tue, Sep 03, 2013 at 12:14:02PM +, Kusanagi Kouichi wrote:
  gcc-4.8 doesn't compile i386 linux kernel on amd64 system. gcc-4.7
  compiles it successfully.
 
 If you have used V=1, you would have seen that the compiler calls miss
 the -m32 argument. This is broken in upstream Linux, see
 arch/x86/Makefile*.

-m32 is missing only with gcc 4.8 because it's broken with gcc 4.8.

$ : empty.c
$ gcc-4.8 -m32 -c empty.c
In file included from command-line:0:0:
/usr/include/stdc-predef.h:30:26: fatal error: bits/predefs.h: No such file or 
directory
 #include bits/predefs.h
  ^
compilation terminated.
$ gcc-4.7 -m32 -c empty.c
$


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#713055: mlterm-tiny: Backspace key doesn't work for mutt

2013-06-22 Thread Kusanagi Kouichi
Package: mlterm-tiny
Version: 3.2.0-1
Severity: normal

I noticed that backspace key doesn't work for mutt's pager. Backspace
key is bound to previous-line function, but mutt says key is not
bound when I press backspace key. Although I don't know since when it
doesn't work, I'm sure it worked before.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10.0-rc6 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash

Versions of packages mlterm-tiny depends on:
ii  libc6  2.17-5
ii  libx11-6   2:1.6.0-1
ii  mlterm-common  3.2.0-1

mlterm-tiny recommends no packages.

Versions of packages mlterm-tiny suggests:
pn  fonts-arphic-bsmi00lp   none
pn  fonts-arphic-gbsn00lp   none
pn  fonts-baekmuk   none
pn  fonts-vlgothic | fonts-japanese-gothic  none
pn  mlterm-im-uim   none
pn  mlterm-toolsnone
pn  t1-cyrillic none
pn  ttf-freefontnone
pn  unifont none
pn  xfonts-efont-unicodenone

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#676382: closed by Craig Small csm...@debian.org (Re: Bug#676382: psmisc: fuser doesn't work on btrfs)

2013-04-01 Thread Kusanagi Kouichi
On 2013-04-01 08:00:05 +, Debian Bug Tracking System wrote:
 I've tried this with psmisc 22.20-1 and it seems to be working. 
 Looking at the source code and doing some back-to-front git bisects,
 it was commit be54c4182c7826ab633d3f39904db441e960e497 that fixed
 it. This can be seen at:
 http://sourceforge.net/p/psmisc/code/ci/be54c4182c7826ab633d3f39904db441e960e497/
 The way I tried to re-create the bug was:
   dd if=/dev/zero of=/home/testbtrfs bs=1M count=500
   losetup /dev/loop1 /home/testbtrfs 
   mkfs -t btrfs /dev/loop1
   mount /dev/loop1 /mnt
   mkdir /mnt/a
   cp somefile /mnt/a/test.txt
   more /mnt/a/test.txt
 
 And then on another screen fuser /mnt/a/test.txt
 Under my setup, fuser before that change doesn't see the more, but after
 that change does see it. That change was in upstream 22.20 which made it
 into Debian version 22.20-1
 
  - Craig
 -- 
 Craig Small VK2XLZ   http://enc.com.au/  csmall at : enc.com.au
 Debian GNU/Linux http://www.debian.org/  csmall at : debian.org
 GPG fingerprint: 5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5

I confirmed that current fuser works for open file. But it doesn't
work for current directory, running executable and mmap'ed file.

# mount -t btrfs /dev/vdb /mnt
# cd /mnt
# fuser -v .
 USERPID ACCESS COMMAND
/mnt:root kernel mount /mnt
# cp /bin/cat /lib/x86_64-linux-gnu/libc.so.6 .
# LD_LIBRARY_PATH=. ./cat
^Z
[1]+  Stopped LD_LIBRARY_PATH=. ./cat
# fuser -v *
#


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#702861: debootstrap: Debootstrap unmounts /run/shm

2013-03-12 Thread Kusanagi Kouichi
Package: debootstrap
Version: 1.0.46
Severity: normal
Tags: patch

Debootstrap unmounts host's /run/shm because it unmounts target's
/dev/shm, which is a symlink to /run/shm, though debootstrap doesn't
mount anything on there.

# cat /proc/mounts  /tmp/1
# debootstrap --variant=minbase sid /tmp/a http://ftp.jp.debian.org/debian
...
# cat /proc/mounts  /tmp/2
# diff -u /tmp/1 /tmp/2
--- /tmp/1  2013-03-12 14:46:17.28500 +0900
+++ /tmp/2  2013-03-12 14:49:51.68500 +0900
@@ -5,6 +5,5 @@
 proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
 sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
 dev /dev tmpfs rw,mand,nosuid,noexec,relatime,size=1024k,mode=755 0 0
-tmpfs /run/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=101860k 0 0
 devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
 /tmp /tmp tmpfs rw,relatime 0 0

The attatched patch works for me.
Severity might be critical because this could break applications
which use posix shared memory.

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.9.0-rc2 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash

Versions of packages debootstrap depends on:
ii  wget  1.14-1

Versions of packages debootstrap recommends:
ii  debian-archive-keyring  2012.4
ii  gnupg   1.4.12-7

debootstrap suggests no packages.

-- no debconf information
diff --git a/functions b/functions
index c1e938e..ff733ce 100644
--- a/functions
+++ b/functions
@@ -1007,9 +1007,6 @@ setup_proc () {
 	hurd*)
 		;;
 	*)
-		umount_on_exit /dev/pts
-		umount_on_exit /dev/shm
-		umount_on_exit /proc/bus/usb
 		umount_on_exit /proc
 		umount $TARGET/proc 2/dev/null || true
 		in_target mount -t proc proc /proc
@@ -1022,7 +1019,6 @@ setup_proc () {
 		on_exit clear_mtab
 		;;
 	esac
-	umount_on_exit /lib/init/rw
 }
 
 setup_proc_fakechroot () {


Bug#696166: xulrunner-dev: xpcshell does not run

2012-12-17 Thread Kusanagi Kouichi
Package: xulrunner-dev
Version: 17.0.1-1
Severity: normal

I tried to use xpcshell. But it doesn't run.

$ cd /usr/lib/xulrunner-devel-17.0/sdk/bin/
$ ./run-mozilla.sh ./xpcshell
./xpcshell: error while loading shared libraries: libxpcom.so: cannot open 
shared object file: No such file or directory
$ ldd ./xpcshell
linux-vdso.so.1 =  (0x7fff6fb7a000)
libpthread.so.0 = /lib/x86_64-linux-gnu/libpthread.so.0 
(0x7fce46c32000)
libxpcom.so = not found
libmozalloc.so = not found
libxul.so = not found
libmozjs.so.17d = /usr/lib/libmozjs.so.17d (0x7fce4665c000)
libnspr4.so = /usr/lib/x86_64-linux-gnu/libnspr4.so 
(0x7fce4641b000)
libreadline.so.6 = /lib/x86_64-linux-gnu/libreadline.so.6 
(0x7fce461d4000)
libstdc++.so.6 = /usr/lib/x86_64-linux-gnu/libstdc++.so.6 
(0x7fce45ecd000)
libm.so.6 = /lib/x86_64-linux-gnu/libm.so.6 (0x7fce45c4a000)
libc.so.6 = /lib/x86_64-linux-gnu/libc.so.6 (0x7fce458c)
/lib64/ld-linux-x86-64.so.2 (0x7fce46e55000)
libffi.so.5 = /usr/lib/x86_64-linux-gnu/libffi.so.5 
(0x7fce456b3000)
libz.so.1 = /lib/x86_64-linux-gnu/libz.so.1 (0x7fce4549b000)
libdl.so.2 = /lib/x86_64-linux-gnu/libdl.so.2 (0x7fce45297000)
libtinfo.so.5 = /lib/x86_64-linux-gnu/libtinfo.so.5 
(0x7fce4506e000)
libgcc_s.so.1 = /lib/x86_64-linux-gnu/libgcc_s.so.1 
(0x7fce44e57000)

I found these missing libraries in /usr/lib/xulrunner-17.0.

$ LD_LIBRARY_PATH=/usr/lib/xulrunner-17.0 ./run-mozilla.sh ./xpcshell
failed to get nsJSRuntimeService!

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.7.0-rc7 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash

Versions of packages xulrunner-dev depends on:
ii  libc6   2.13-37
ii  libffi5 3.0.10-3
ii  libmozjs-dev17.0.1-1
ii  libmozjs17d 17.0.1-1
ii  libnspr42:4.9.3-1
ii  libnspr4-dev2:4.9.3-1
ii  libnss3-dev 2:3.14-2
ii  libreadline66.2-9
ii  libstdc++6  4.7.2-4
ii  python-ply  3.4-3
ii  xulrunner-17.0  17.0.1-1
ii  zlib1g  1:1.2.7.dfsg-13

xulrunner-dev recommends no packages.

xulrunner-dev suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#680632: jless: [regression] jless hangs if it reaches 524289 bytes

2012-07-07 Thread Kusanagi Kouichi
Package: jless
Version: 382-iso262-2.1
Severity: important

jless hangs if it reaches 524289 bytes. cpu is 100% and control-c
doesn't kill it. control-\ and kill(1) kill it. jless 382-iso262-2
works fine.

steps to reproduce:

$ awk 'BEGIN {for (i = 0; i  524288; ++i) print }' | jless
then enter G

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.5.0-rc5 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash

Versions of packages jless depends on:
ii  debianutils  4.3.2
ii  libc62.13-34
ii  libncurses5  5.9-10
ii  libtinfo55.9-10

jless recommends no packages.

jless suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#676382: psmisc: fuser doesn't work on btrfs

2012-06-06 Thread Kusanagi Kouichi
Package: psmisc
Version: 22.17-1
Severity: normal

Fuser doesn't display processes which are using a file on btrfs.
If I build psmisc with DEB_BUILD_OPTIONS=noopt, it works as expected.

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4.0-rc7 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash

Versions of packages psmisc depends on:
ii  libc6  2.13-33
ii  libtinfo5  5.9-8

psmisc recommends no packages.

psmisc suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#675133: mlterm-tiny: /usr/bin/mlterm is a libtool wrapper script

2012-05-29 Thread Kusanagi Kouichi
Package: mlterm-tiny
Version: 3.1.1-1+b1
Severity: grave
Justification: renders package unusable

$ mlterm
mkdir: ディレクトリ `/usr/bin/.libs' を作成できません: 許可がありません
/usr/bin/mlterm: 101 行: cd: 
/build/buildd-mlterm_3.1.1-1+b1-amd64-fXl4rb/mlterm-3.1.1/main-tiny: 
そのようなファイルやディレクトリはありません
gcc: error: daemon.o: そのようなファイルやディレクトリはありません
gcc: error: main_loop.o: そのようなファイルやディレクトリはありません
gcc: error: main.o: そのようなファイルやディレクトリはありません
gcc: error: ../xwindow/libxwindow.a: そのようなファイルやディレクトリはありません
gcc: error: ../mlterm/libmlterm.a: そのようなファイルやディレクトリはありません
gcc: error: ../mlterm/.libs/libmlterm_core.so: そのようなファイルやディレクトリはありません
gcc: error: 
/build/buildd-mlterm_3.1.1-1+b1-amd64-fXl4rb/mlterm-3.1.1/kiklib/src/.libs/libkik.so:
 そのようなファイルやディレクトリはありません
gcc: error: ../mkf/lib/.libs/libmkf.so: そのようなファイルやディレクトリはありません
gcc: error: ../kiklib/src/.libs/libkik.so: そのようなファイルやディレクトリはありません

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4.0-rc7 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash

Versions of packages mlterm-tiny depends on:
ii  mlterm-common  3.1.1-1+b1

mlterm-tiny recommends no packages.

Versions of packages mlterm-tiny suggests:
pn  fonts-arphic-bsmi00lp   none
pn  fonts-arphic-gbsn00lp   none
pn  fonts-baekmuk   none
pn  fonts-vlgothic | fonts-japanese-gothic  none
pn  mlterm-im-uim   none
pn  mlterm-toolsnone
pn  t1-cyrillic none
pn  ttf-freefontnone
pn  unifont none
pn  xfonts-efont-unicodenone

-- no debconf information



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#660851: apt: apt-cache -f search shows only package name and description

2012-02-22 Thread Kusanagi Kouichi
Package: apt
Version: 0.8.15.9
Severity: normal

apt-cache -f search shows only package name and description.
Upgrading apt to experimental version (0.8.16~exp12) doesn't fix the problem.

$ apt-cache -f search abcde
Package: abcde
Description-md5: 48cf68daee5594952eb455e51c709626
Description-en: A Better CD Encoder
 A frontend program to cdparanoia, wget, cd-discid, id3, and your favorite
 Ogg/Vorbis, MP3, FLAC, Ogg/Speex and/or MPP/MP+(Musepack) encoder (defaults
 to oggenc). Grabs an entire CD and converts each track to the specified
 formats and then comments or ID3-tags each file, with one command.
 .
 With abcde you can encode several formats with one single command, using a
 single CD read operation. It also allows you to read and encode while not
 on the internet, and later query a CDDB server to tag your files.

Package: distmp3
Description-md5: 51793a4b1d4e25cc8a7961a2bf6b861a
Description-en: A Perl client and daemon for distributed audio encoding
 The distmp3 package contains a client, distmp3, and a daemon, distmp3host,
 which can be installed on many machines to provide fast distributed encoding
 of music (typically from a CD-ripper or batch script) using an encoder of
 your choice - usually MP3, Ogg Vorbis, or flac.
 .
 abcde is one such CD ripper wrapper which has builtin support for distmp3 and
 can use it very efficiently, especially in the case where the machine with the
 best CD-ROM drive is unable to encode the extracted audio at a satisfactory
 speed.
 .
 The current tradeoff is that the client may not pass command-line arguments to
 the encoder being run on the machines running the distmp3hosts.

Package: libcommons-lang-java
Description-md5: 388ede790b35f9eb3fb76d9002926cd2
Description-en: Commons Lang - an extension of the java.lang package
 The Lang Component contains a set of Java classes that provide helper
 methods for standard Java classes, especially those found in the
 java.lang package in the Sun JDK. The following classes are included:
 .
  * StringUtils - Helper for java.lang.String.
  * CharSetUtils - Methods for dealing with CharSets, which are sets of
characters such as [a-z] and [abcdez].
  * RandomStringUtils - Helper for creating randomised Strings.
  * NumberUtils - Helper for java.lang.Number and its subclasses.
  * NumberRange - A range of numbers with an upper and lower bound.
  * ObjectUtils - Helper for java.lang.Object.
  * SerializationUtils - Helper for serializing Objects.
  * SystemUtils - Utility class defining the Java system properties.
  * NestedException package - A sub-package for the creation of nested
exceptions.
  * Enum package - A sub-package for the creation of enumerated types.
  * Builder package - A sub-package for the creation of equals, hashCode,
compareTo and toString methods.

Package: libcommons-lang-java-doc
Description-md5: 9c83238424f036eff838ce1ee01c3d3a
Description-en: Documentation for Commons Lang - an extension of the java.lang 
package
 The Lang Component contains a set of Java classes that provide helper
 methods for standard Java classes, especially those found in the
 java.lang package in the Sun JDK. The following classes are included:
 .
  * StringUtils - Helper for java.lang.String.
  * CharSetUtils - Methods for dealing with CharSets, which are sets of
characters such as [a-z] and [abcdez].
  * RandomStringUtils - Helper for creating randomised Strings.
  * NumberUtils - Helper for java.lang.Number and its subclasses.
  * NumberRange - A range of numbers with an upper and lower bound.
  * ObjectUtils - Helper for java.lang.Object.
  * SerializationUtils - Helper for serializing Objects.
  * SystemUtils - Utility class defining the Java system properties.
  * NestedException package - A sub-package for the creation of nested
exceptions.
  * Enum package - A sub-package for the creation of enumerated types.
  * Builder package - A sub-package for the creation of equals, hashCode,
compareTo and toString methods.
 .
 This package contains the API documentation of libcommons-lang-java

Package: mkcue
Description-md5: 41de6a809c9e81798b902efe2cde7011
Description-en: Generates a CUE sheet from a CD
 mkcue generates CUE sheets from a CD TOC (Table Of Contents).
 .
 It is a perfect companion for abcde to generate backups of your audio CDs
 using the FLAC codec and the single track option.
 

-- Package-specific info:

-- apt-config dump --

APT ;
APT::Architecture amd64;
APT::Build-Essential ;
APT::Build-Essential:: build-essential;
APT::Install-Recommends false;
APT::Install-Suggests 0;
APT::NeverAutoRemove ;
APT::NeverAutoRemove:: ^firmware-linux.*;
APT::NeverAutoRemove:: ^linux-firmware$;
APT::NeverAutoRemove:: ^linux-image.*;
APT::NeverAutoRemove:: ^kfreebsd-image.*;
APT::NeverAutoRemove:: ^linux-restricted-modules.*;
APT::NeverAutoRemove:: ^linux-ubuntu-modules-.*;
APT::NeverAutoRemove:: ^gnumach$;
APT::NeverAutoRemove:: ^gnumach-image.*;
APT::Never-MarkAuto-Sections ;
APT::Never-MarkAuto-Sections:: 

Bug#593815: squid3: bugs.debian.org inaccessible when IPv6 is enabled but not routed

2012-01-18 Thread Kusanagi Kouichi
Hi,

Can you test the attached patch? It fixes the problrem for me. Without
this patch, I need to set tcp_outgoing_address to force IPv4 for some
sites.
diff -uNrp squid3-3.1.18.orig/src/comm.cc squid3-3.1.18/src/comm.cc
--- squid3-3.1.18.orig/src/comm.cc  2011-12-03 06:18:46.0 +
+++ squid3-3.1.18/src/comm.cc   2012-01-18 10:03:30.422424903 +
@@ -984,8 +984,8 @@ ConnectStateData::commResetFD()
 fde *F = fd_table[fd];
 
 struct addrinfo *AI = NULL;
-F-local_addr.GetAddrInfo(AI);
-int new_family = AI-ai_family;
+const int new_family = F-sock_family;
+F-local_addr.GetAddrInfo(AI, new_family);
 
 int fd2 = socket(new_family, AI-ai_socktype, AI-ai_protocol);
 
@@ -1126,22 +1126,31 @@ ConnectStateData::connect()
 callCallback(COMM_OK, 0);
 break;
 
-case COMM_ERR_PROTOCOL:
+case COMM_ERR_PROTOCOL: {
 debugs(5, 5, HERE FD   fd  : COMM_ERR_PROTOCOL - try again);
-/* problem using the desired protocol over this socket.
- * skip to the next address and hope it's more compatible
- * but do not mark the current address as bad
+/* A remote address is incompatible with this socket. If local
+ * address is not wildcard address, skip to the next address
+ * but do not mark the current address as bad.
  */
-tries++;
-if (commRetryConnect()) {
+fde *F = fd_table[fd];
+if (F-local_addr.IsAnyAddr()) {
+struct addrinfo *AI = NULL;
+S.GetAddrInfo(AI);
+F-sock_family = AI-ai_family;
+S.FreeAddrInfo(AI);
+} else {
+tries++;
 /* Force an addr cycle to move forward to the next possible 
address */
 ipcacheCycleAddr(host, NULL);
+} 
+if (commRetryConnect()) {
 eventAdd(commReconnect, commReconnect, this, this-addrcount == 
1 ? 0.05 : 0.0, 0);
 } else {
 debugs(5, 5, HERE  FD   fd  : COMM_ERR_PROTOCOL - ERR 
tried too many times already.);
 callCallback(COMM_ERR_CONNECT, errno);
 }
 break;
+}
 
 default:
 debugs(5, 5, HERE FD   fd  : * - try again);
@@ -1243,29 +1252,7 @@ comm_connect_addr(int sock, const IpAddr
 
 debugs(5, 9, comm_connect_addr: connecting socket   sock   to   
address   (want family:   F-sock_family  ));
 
-/* Handle IPv6 over IPv4-only socket case.
- * this case must presently be handled here since the GetAddrInfo asserts 
on bad mappings.
- * NP: because commResetFD is private to ConnStateData we have to return 
an error and
- * trust its handled properly.
- */
-if (F-sock_family == AF_INET  !address.IsIPv4()) {
-errno = ENETUNREACH;
-return COMM_ERR_PROTOCOL;
-}
-
-/* Handle IPv4 over IPv6-only socket case.
- * This case is presently handled here as it's both a known case and it's
- * uncertain what error will be returned by the IPv6 stack in such case. 
It's
- * possible this will also be handled by the errno checks below after 
connect()
- * but needs carefull cross-platform verification, and verifying the 
address
- * condition here is simple.
- */
-if (!F-local_addr.IsIPv4()  address.IsIPv4()) {
-errno = ENETUNREACH;
-return COMM_ERR_PROTOCOL;
-}
-
-address.GetAddrInfo(AI, F-sock_family);
+address.GetAddrInfo(AI);
 
 /* Establish connection. */
 errno = 0;


Bug#653333: [Pkg-sysvinit-devel] Bug#653333: initscripts: /etc/mtab is replaced unnecessarily if it points to /proc/self/mounts

2011-12-27 Thread Kusanagi Kouichi
On 2011-12-27 09:48:27 +0100, Petter Reinholdtsen wrote:
 [Kusanagi Kouichi]
  /proc/mounts is symlink to /proc/self/mounts. So there is no need to
  replace /etc/mtab if it is symlink to /proc/self/mounts.
 
 There is also, as far as I know, no reason to _not_ change it, given
 that both give the same result.  There is a reason to change it, and
 that is to make Debian installations more consistent to avoid
 surprises.
 
 Why should we _not_ change the /etc/mtab symlink from
 /proc/self/mounts to /proc/mounts?
 -- 
 Petter Reinholdtsen

If /etc/mtab must be a symlink to /proc/mounts and an admin must not
change it, shouldn't policy state about that?
Anyway, I'm ok with wontfix.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#653333: initscripts: /etc/mtab is replaced unnecessarily if it points to /proc/self/mounts

2011-12-26 Thread Kusanagi Kouichi
Package: initscripts
Version: 2.88dsf-18
Severity: minor
Tags: patch

/proc/mounts is symlink to /proc/self/mounts. So there is no need to
replace /etc/mtab if it is symlink to /proc/self/mounts.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-rc7 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash

Versions of packages initscripts depends on:
ii  coreutils   8.13-3
ii  debianutils 4.1
ii  libc6   2.13-24
ii  lsb-base3.2-28
ii  mount   2.20.1-1
ii  sysv-rc 2.88dsf-18
ii  sysvinit-utils  2.88dsf-18

Versions of packages initscripts recommends:
pn  e2fsprogs  1.42-1
pn  psmisc none

initscripts suggests no packages.

-- no debconf information
diff -uNrp sysvinit-2.88dsf.orig/debian/src/initscripts/lib/init/mount-functions.sh sysvinit-2.88dsf/debian/src/initscripts/lib/init/mount-functions.sh
--- sysvinit-2.88dsf.orig/debian/src/initscripts/lib/init/mount-functions.sh	2011-12-13 20:16:15.0 +
+++ sysvinit-2.88dsf/debian/src/initscripts/lib/init/mount-functions.sh	2011-12-27 02:33:57.594409728 +
@@ -340,21 +340,24 @@ run_migrate ()
 #
 mtab_migrate ()
 {
+	if [ -L /etc/mtab ]  [ -r /etc/mtab ]; then
+		case $(readlink /etc/mtab) in
+		  /proc/mounts|/proc/self/mounts)
+			return 0
+		esac
+	fi
+
 	# Don't symlink if /proc/mounts does not exist.
 	if [ ! -r /proc/mounts ]; then
 		return 1
 	fi
 
 	# Create symlink if not already present.
-	if [ -L /etc/mtab ]  [ $(readlink /etc/mtab) = /proc/mounts ]; then
-		:
-	else
-		log_warning_msg Creating compatibility symlink from /etc/mtab to /proc/mounts.
+	log_warning_msg Creating compatibility symlink from /etc/mtab to /proc/mounts.
 
-		rm -f /etc/mtab || return 1
-		ln -fs /proc/mounts /etc/mtab || return 1
-		[ -x /sbin/restorecon ]  /sbin/restorecon /etc/mtab
-	fi
+	rm -f /etc/mtab || return 1
+	ln -fs /proc/mounts /etc/mtab || return 1
+	[ -x /sbin/restorecon ]  /sbin/restorecon /etc/mtab
 
 	return 0
 }


Bug#637078: libgif4: DGifSlurp() decodes interlaced images incorrectly

2011-08-08 Thread Kusanagi Kouichi
Package: libgif4
Version: 4.1.6-9
Severity: normal
Tags: patch

DGifSlurp ignores interlace flag and treat an interlaced image as
a normal image.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash

Versions of packages libgif4 depends on:
ii  libc6 2.13-14Embedded GNU C Library: Shared lib

libgif4 recommends no packages.

libgif4 suggests no packages.

-- no debconf information
#include gif_lib.h
#include stdlib.h
#include X11/Xlib.h

int main(int argc, char **argv)
{
GifFileType *gif;
ColorMapObject *cmap;
XImage img;
int image_size, i;
XSetWindowAttributes attr;
Display *display;
Window window;

if (argc  2)
{
	return 0;
}

gif = DGifOpenFileName(argv[1]);
if (gif == NULL)
{
	return 1;
}

if (DGifSlurp(gif) != GIF_OK)
{
	return 1;
}

cmap = gif-SavedImages[0].ImageDesc.ColorMap;
if (cmap == NULL)
{
	cmap = gif-SColorMap;
}

img.width = gif-SavedImages[0].ImageDesc.Width;
img.height = gif-SavedImages[0].ImageDesc.Height;
img.xoffset = 0;
img.format = ZPixmap;
img.byte_order = MSBFirst;
img.bitmap_unit = 8;
img.bitmap_pad = 8;
img.depth = 24;
img.bytes_per_line = 0;
img.bits_per_pixel = 24;
img.red_mask = 0xff;
img.green_mask = 0xff00;
img.blue_mask = 0xff;
if (!XInitImage(img))
{
	return 1;
}

image_size = img.width * img.height;
img.data = malloc(3 * image_size);
if (img.data == NULL)
{
	return 1;
}

for (i = 0; i  image_size; ++i)
{
	const GifColorType * const color = cmap-Colors[gif-SavedImages[0].RasterBits[i]];
	img.data[i * 3] = color-Red;
	img.data[i * 3 + 1] = color-Green;
	img.data[i * 3 + 2] = color-Blue;
}

DGifCloseFile(gif);

display = XOpenDisplay(NULL);
if (display == NULL)
{
	return 1;
}

attr.event_mask = KeyPressMask | ExposureMask;
window = XCreateWindow(display, DefaultRootWindow(display), 0, 0,
			   img.width, img.height, 0, CopyFromParent,
			   InputOutput, CopyFromParent, CWEventMask, attr);
XMapWindow(display, window);

while (1)
{
	XEvent event;

	XNextEvent(display, event);
	switch (event.type)
	{
	case KeyPress:
	return 0;
	case Expose:
	XPutImage(display, window, DefaultGC(display, DefaultScreen(display)),
		  img, 0, 0, 0, 0, img.width, img.height);
	break;
	default:
	break;
	}
}
}
attachment: interlaced.gifattachment: expected.pngattachment: actual.pngdiff -uNrp giflib-4.1.6.orig/lib/dgif_lib.c giflib-4.1.6/lib/dgif_lib.c
--- giflib-4.1.6.orig/lib/dgif_lib.c	2011-07-22 10:47:51.0 +
+++ giflib-4.1.6/lib/dgif_lib.c	2011-07-22 12:48:03.099742104 +
@@ -1056,9 +1056,35 @@ DGifSlurp(GifFileType * GifFile) {
   if (sp-RasterBits == NULL) {
   return GIF_ERROR;
   }
-  if (DGifGetLine(GifFile, sp-RasterBits, ImageSize) ==
-  GIF_ERROR)
-  return (GIF_ERROR);
+  if (sp-ImageDesc.Interlace) {
+  const int w = sp-ImageDesc.Width, h = sp-ImageDesc.Height;
+  int i;
+
+  for (i = 0; i  h; i += 8) {
+  if (DGifGetLine(GifFile, sp-RasterBits + w * i, w) ==
+  GIF_ERROR)
+  return (GIF_ERROR);
+  }
+  for (i = 4; i  h; i += 8) {
+  if (DGifGetLine(GifFile, sp-RasterBits + w * i, w) ==
+  GIF_ERROR)
+  return (GIF_ERROR);
+  }
+  for (i = 2; i  h; i += 4) {
+  if (DGifGetLine(GifFile, sp-RasterBits + w * i, w) ==
+  GIF_ERROR)
+  return (GIF_ERROR);
+  }
+  for (i = 1; i  h; i += 2) {
+  if (DGifGetLine(GifFile, sp-RasterBits + w * i, w) ==
+  GIF_ERROR)
+  return (GIF_ERROR);
+  }
+  } else {
+  if (DGifGetLine(GifFile, sp-RasterBits, ImageSize) ==
+  GIF_ERROR)
+  return (GIF_ERROR);
+  }
   if (temp_save.ExtensionBlocks) {
   sp-ExtensionBlocks = temp_save.ExtensionBlocks;
   sp-ExtensionBlockCount = temp_save.ExtensionBlockCount;


Bug#604770: libstfl-dev: stfl_modify takes long time if a form has many widgets.

2010-11-24 Thread Kusanagi Kouichi
Package: libstfl-dev
Version: 0.21-2+b1
Severity: normal
Tags: patch

When a form is modified with stfl_modify, STFL walks the whole widget tree
to check focus. But checking only modified part seems enough.

Without patch
$ time ./test 1
../test 1  1.28s user 0.00s system 99% cpu 1.287 total
$ time ./test 2
../test 2  5.63s user 0.00s system 99% cpu 5.633 total
$ time ./test 3
../test 3  19.36s user 0.01s system 99% cpu 19.374 total
$ perf record -o - ./test 1 | perf report -i -
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.045 MB - (~1951 samples) ]
# Events: 1K cycles
#
# Overhead  Command  Shared Object   Symbol
#   ...  .  ...
#
97.82% test  test   [.] stfl_check_setfocus
 1.08% test  test   [.] stfl_parser
 0.31% test  libc-2.11.2.so [.] wcscmp
 0.23% test  libc-2.11.2.so [.] wcscspn
 0.08% test  test   [.] wcs...@plt
 0.08% test  libc-2.11.2.so [.] __GI___libc_free
 0.08% test  test   [.] stfl_widget_new
 0.08% test  libc-2.11.2.so [.] _int_malloc
 0.08% test  test   [.] stfl_modify
 0.08% test  [kernel.kallsyms]  [k] __inc_zone_state
 0.08% test  test   [.] mywcscspn
 0.01% test  [kernel.kallsyms]  [k] copy_page_c
 0.00% test  [kernel.kallsyms]  [k] x86_pmu_enable_all


#
# (For a higher level overview, try: perf report --sort comm,dso)
#

With patch
$ time ./test 1
../test 1  0.01s user 0.01s system 94% cpu 0.019 total
$ time ./test 10
../test 10  0.10s user 0.01s system 99% cpu 0.115 total
$ time ./test 100
../test 100  0.92s user 0.14s system 99% cpu 1.061 total
$ perf record -o - ./test 10 | perf report -i -
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.009 MB - (~374 samples) ]
# Events: 99  cycles
#
# Overhead  Command Shared Object Symbol
#   ...    .
#
26.61% test  test  [.] mywcscspn
13.53% test  libc-2.11.2.so[.] __GI_wcschr
10.74% test  libc-2.11.2.so[.] wcscmp
 8.40% test  test  [.] stfl_widget_new
 7.71% test  [kernel.kallsyms] [k] clear_page_c
 5.75% test  test  [.] stfl_parser
 4.77% test  libpthread-2.11.2.so  [.] __pthread_mutex_lock_internal
 4.16% test  libc-2.11.2.so[.] wcscspn
 3.82% test  libc-2.11.2.so[.] __GI___libc_free
 2.88% test  test  [.] read_type
 2.86% test  libc-2.11.2.so[.] memcpy
 1.91% test  libc-2.11.2.so[.] _int_malloc
 1.07% test  libc-2.11.2.so[.] __GI___libc_malloc
 0.96% test  libc-2.11.2.so[.] memset
 0.95% test  test  [.] wcs...@plt
 0.95% test  [kernel.kallsyms] [k] handle_mm_fault
 0.95% test  test  [.] stfl_widget_free
 0.95% test  test  [.] stfl_check_setfocus
 0.95% test  [kernel.kallsyms] [k] free_pages_prepare
 0.06% test  [kernel.kallsyms] [k] strnlen_user
 0.00% test  [kernel.kallsyms] [k] x86_pmu_enable_all


#
# (For a higher level overview, try: perf report --sort comm,dso)
#


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-rc3 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash
#include stfl.h
#include stdlib.h

int main(int argc, char **argv)
{
long c, i;
struct stfl_form *form;

if (argc  2)
{
	return 0;
}

c = strtol(argv[1], NULL, 0);
form = stfl_create(Llist[l]);

for (i = 0; i  c; ++i)
{
	stfl_modify(form, Ll, Lappend, Llistitem);
}

stfl_free(form);

return 0;
}
--- stfl-0.21.orig/public.c 2008-05-17 13:51:40.0 +
+++ stfl-0.21/public.c  2010-11-24 07:15:24.521961589 +
@@ -300,19 +300,19 @@ void stfl_modify(struct stfl_form *f, co
w = stfl_widget_by_name(f-root, name ? name : L);
 
if (!w)
-   goto finish;
+   goto unlock;
 
mode = mode ? mode : L;
 
if (!wcscmp(mode, Ldelete)  w != f-root) {
stfl_widget_free(w);
-   goto finish;
+   goto unlock;
}
 
n = stfl_parser(text ? text : L);
 
if (!n)
-   goto finish;
+   goto unlock;
 
if (!wcscmp(mode, Lreplace)) {
if (w == f-root)
@@ -329,6 +329,7 @@ void stfl_modify(struct stfl_form *f, co
stfl_modify_insert(w, 

Bug#603276: libstfl-dev: An input widget overflows if multi-column characters are entered.

2010-11-12 Thread Kusanagi Kouichi
Package: libstfl-dev
Version: 0.21-2+b1
Severity: normal
Tags: patch

If multi-column characters are entered to an input widget and
they are exposed, the text overflows.
The attached screenshot was taken while running attached input.c.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (1001, 'unstable'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-rc1 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash

Versions of packages libstfl-dev depends on:
ii  libncursesw5-dev  5.7+20100313-4 developer's libraries for ncursesw

libstfl-dev recommends no packages.

libstfl-dev suggests no packages.

-- no debconf information
#include stfl.h
#include locale.h

int main(void)
{
struct stfl_form *form;
const wchar_t *wcs;

if (setlocale(LC_ALL, ) == NULL)
{
	return 1;
}

form = stfl_create(Ltable\n label .expand:0\n !input[i] .border:lrtb .expand:h pos[pos]: offset[off]:\n tablebr\n label .expand:0 text:width\n label .expand:h text[w]:\n tablebr\n label .expand:0 text:pos\n label .expand:h text[p]:\n tablebr\n label .expand:0 text:offset\n label .expand:h text[o]:);

stfl_run(form, -3);
stfl_set(form, Lw, stfl_get(form, Li:w));
wcs = stfl_get(form, Lpos);
stfl_set(form, Lp, wcscmp(wcs, L)? wcs: L0);
wcs = stfl_get(form, Loff);
stfl_set(form, Lo, wcscmp(wcs, L)? wcs: L0);

while (stfl_run(form, 0) == NULL)
{
	stfl_set(form, Llabel, stfl_get_focus(form));
	wcs = stfl_get(form, Lpos);
	stfl_set(form, Lp, wcscmp(wcs, L)? wcs: L0);
	wcs = stfl_get(form, Loff);
	stfl_set(form, Lo, wcscmp(wcs, L)? wcs: L0);
}

stfl_reset();
stfl_free(form);
return 0;
}
attachment: screenshot.png--- stfl-0.21.orig/widgets/wt_input.c   2007-10-13 07:45:09.0 +
+++ stfl-0.21/widgets/wt_input.c2010-11-12 10:21:29.645201794 +
@@ -38,32 +38,21 @@
const wchar_t* text = stfl_widget_getkv_str(w, Ltext, L);
int text_len = wcslen(text);
int changed = 0;
-   int pos_width = 0;
-   int offset_width = 0;
-   int i;
+   int width;
 
if (pos  text_len) {
pos = text_len;
changed = 1;
}
 
-   if (offset  text_len) {
-   offset = text_len;
-   changed = 1;
-   }
-
if (offset  pos) {
offset = pos;
changed = 1;
}
 
-   for (i=0;ipos;++i) {
-   pos_width += wcwidth(text[i]);
-   }
-
-   while (text[offset]  pos-offset = w-w  pos_width-offset_width = 
w-w  w-w  0) {
-   offset_width += wcwidth(text[offset]);
-   offset++;
+   width = wcswidth(text + offset, pos - offset);
+   while (width = w-w  pos  offset) {
+   width -= wcwidth(text[offset++]);
changed = 1;
}
 
@@ -88,26 +77,30 @@
int pos = stfl_widget_getkv_int(w, Lpos, 0);
int blind = stfl_widget_getkv_int(w, Lblind, 0);
int offset = stfl_widget_getkv_int(w, Loffset, 0);
-   const wchar_t *text = stfl_widget_getkv_str(w, Ltext, L);
-   int pos_width = 0, offset_width = 0, i;
+   const wchar_t * const text_off = stfl_widget_getkv_str(w, Ltext, L) 
+ offset;
+   int i;
 
stfl_widget_style(w, f, win);
 
for (i=0; iw-w; i++)
mvwaddwstr(win, w-y, w-x+i, L );
-   if (!blind)
-   mvwaddnwstr(win, w-y, w-x, text+offset, 
wcswidth(text+offset,w-w));
-
-   for (i=0;ipos;++i) {
-   pos_width += wcwidth(text[i]);
-   }
 
-   for (i=0;ioffset;++i) {
-   offset_width += wcwidth(text[i]);
+   if (!blind) {
+   const int off_len = wcslen(text_off);
+   int width, len;
+
+   width = wcswidth(text_off, w-w);
+   if (w-w  off_len)
+   len = off_len;
+   else
+   len = w-w;
+   while (width  w-w)
+   width -= wcwidth(text_off[--len]);
+   mvwaddnwstr(win, w-y, w-x, text_off, len);
}
 
if (f-current_focus_id == w-id) {
-   f-cursor_x = w-x + pos_width - offset_width;
+   f-cursor_x = w-x + wcswidth(text_off, pos - offset);
f-cursor_y = w-y;
}
 }
@@ -150,8 +143,7 @@
return 0;
wchar_t newtext[text_len];
wmemcpy(newtext, text, pos);
-   wmemcpy(newtext+pos, text+pos+1, text_len-(pos+1));
-   newtext[text_len-1] = 0;
+   wcscpy(newtext + pos, text + pos + 1);
stfl_widget_setkv_str(w, Ltext, newtext);
fix_offset_pos(w);
return 1;
@@ -163,8 +155,7 @@
return 0;
wchar_t newtext[text_len];
wmemcpy(newtext, text, 

Bug#603334: libstfl-dev: Richtext is not multi-column caracters aware.

2010-11-12 Thread Kusanagi Kouichi
Package: libstfl-dev
Version: 0.21-2+b1
Severity: normal
Tags: patch

If a section of richtext contains multi-column caracters,
it is overwritten by the following section.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-rc1 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash

Versions of packages libstfl-dev depends on:
ii  libncursesw5-dev  5.7+20100313-4 developer's libraries for ncursesw

libstfl-dev recommends no packages.

libstfl-dev suggests no packages.

-- no debconf information
#include stfl.h
#include locale.h
#include stdio.h
#include wchar.h

int main(void)
{
struct stfl_form *form;

if (setlocale(LC_ALL, ) == NULL)
{
	return 1;
}

form = stfl_create(Ltable\n textview[t] .border:lrtb richtext:1 style_u_normal:attr=underline\n tablebr\n !input .border:lrtb .expand:h text[i]:);

while (1)
{
	const wchar_t * const event = stfl_run(form, 0);

	if (event == NULL)
	{
	continue;
	}

	if (wcscmp(event, LENTER) == 0)
	{
	const wchar_t * const text = stfl_get(form, Li);

	stfl_modify(form, Lt, Lreplace_inner, Ltextview);
	{
		static const wchar_t format[] = Llistitem text:%ls;
		wchar_t buf[sizeof format - 3 + wcslen(text)];

		swprintf(buf, sizeof buf / sizeof buf[0], Llistitem text:%ls, text);
		stfl_modify(form, Lt, Lappend, buf);
	}
	}
	else
	{
	break;
	}
}

stfl_reset();
stfl_free(form);

return 0;
}
attachment: original.pngattachment: patched.png--- stfl-0.21.orig/base.c   2009-06-19 17:27:33.0 +
+++ stfl-0.21/base.c2010-11-13 05:37:03.261927052 +
@@ -681,7 +681,7 @@ unsigned int stfl_print_richtext(struct
len = p1 - p;
mvwaddnwstr(win, y, x, p, len);
retval += len;
-   x += len;
+   x += wcswidth(p, len);
 
if (p2) {
wchar_t stylename[p2 - p1];


Bug#548884: apt-cache search abort if locale is ja_JP.eucJP.

2009-09-29 Thread Kusanagi Kouichi
Package: apt
Version: 0.7.24
Severity: important
Tags: patch

apt-cache search abort if locale is ja_JP.eucJP.

$ locale
LANG=ja_JP.eucJP
LC_CTYPE=ja_JP.eucJP
LC_NUMERIC=ja_JP.eucJP
LC_TIME=ja_JP.eucJP
LC_COLLATE=ja_JP.eucJP
LC_MONETARY=ja_JP.eucJP
LC_MESSAGES=ja_JP.eucJP
LC_PAPER=ja_JP.eucJP
LC_NAME=ja_JP.eucJP
LC_ADDRESS=ja_JP.eucJP
LC_TELEPHONE=ja_JP.eucJP
LC_MEASUREMENT=ja_JP.eucJP
LC_IDENTIFICATION=ja_JP.eucJP
LC_ALL=
$ apt-cache search abcdefg
*** glibc detected *** apt-cache: free(): invalid next size (normal): 
0x01651ba0 ***
=== Backtrace: =
/lib/libc.so.6[0x7ffad1ff76c8]
/lib/libc.so.6(cfree+0x76)[0x7ffad1ff91d6]
apt-cache[0x407266]
/usr/lib/libapt-pkg-libc6.9-6.so.4.8(_ZN11CommandLine11DispatchArgEPNS_8DispatchEb+0x55)[0x7ffad2ab84d5]
apt-cache[0x40969f]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7ffad1fa45c6]
apt-cache[0x403679]
=== Memory map: 
0040-0040f000 r-xp  fe:02 11645  
/usr/bin/apt-cache
0060f000-0061 rw-p f000 fe:02 11645  
/usr/bin/apt-cache
0160-01667000 rw-p  00:00 0  [heap]
7ffac800-7ffac8021000 rw-p  00:00 0 
7ffac8021000-7ffacc00 ---p  00:00 0 
7ffacff62000-7ffad1762000 rw-p  00:00 0 
7ffad1762000-7ffad177a000 r-xp  fe:02 16931  
/usr/lib/gconv/libJIS.so
7ffad177a000-7ffad1979000 ---p 00018000 fe:02 16931  
/usr/lib/gconv/libJIS.so
7ffad1979000-7ffad197a000 r--p 00017000 fe:02 16931  
/usr/lib/gconv/libJIS.so
7ffad197a000-7ffad197b000 rw-p 00018000 fe:02 16931  
/usr/lib/gconv/libJIS.so
7ffad197b000-7ffad197e000 r-xp  fe:02 15895  
/usr/lib/gconv/EUC-JP.so
7ffad197e000-7ffad1b7d000 ---p 3000 fe:02 15895  
/usr/lib/gconv/EUC-JP.so
7ffad1b7d000-7ffad1b7e000 r--p 2000 fe:02 15895  
/usr/lib/gconv/EUC-JP.so
7ffad1b7e000-7ffad1b7f000 rw-p 3000 fe:02 15895  
/usr/lib/gconv/EUC-JP.so
7ffad1b7f000-7ffad1b81000 r-xp  fe:01 1066   
/lib/libdl-2.9.so
7ffad1b81000-7ffad1d81000 ---p 2000 fe:01 1066   
/lib/libdl-2.9.so
7ffad1d81000-7ffad1d82000 r--p 2000 fe:01 1066   
/lib/libdl-2.9.so
7ffad1d82000-7ffad1d83000 rw-p 3000 fe:01 1066   
/lib/libdl-2.9.so
7ffad1d83000-7ffad1d85000 r-xp  fe:01 1060   
/lib/libutil-2.9.so
7ffad1d85000-7ffad1f84000 ---p 2000 fe:01 1060   
/lib/libutil-2.9.so
7ffad1f84000-7ffad1f85000 r--p 1000 fe:01 1060   
/lib/libutil-2.9.so
7ffad1f85000-7ffad1f86000 rw-p 2000 fe:01 1060   
/lib/libutil-2.9.so
7ffad1f86000-7ffad20cd000 r-xp  fe:01 922
/lib/libc-2.9.so
7ffad20cd000-7ffad22cd000 ---p 00147000 fe:01 922
/lib/libc-2.9.so
7ffad22cd000-7ffad22d1000 r--p 00147000 fe:01 922
/lib/libc-2.9.so
7ffad22d1000-7ffad22d2000 rw-p 0014b000 fe:01 922
/lib/libc-2.9.so
7ffad22d2000-7ffad22d7000 rw-p  00:00 0 
7ffad22d7000-7ffad22f1000 r-xp  fe:01 216
/lib/libgcc_s.so.1
7ffad22f1000-7ffad24f ---p 0001a000 fe:01 216
/lib/libgcc_s.so.1
7ffad24f-7ffad24f1000 rw-p 00019000 fe:01 216
/lib/libgcc_s.so.1
7ffad24f1000-7ffad2573000 r-xp  fe:01 913
/lib/libm-2.9.so
7ffad2573000-7ffad2772000 ---p 00082000 fe:01 913
/lib/libm-2.9.so
7ffad2772000-7ffad2773000 r--p 00081000 fe:01 913
/lib/libm-2.9.so
7ffad2773000-7ffad2774000 rw-p 00082000 fe:01 913
/lib/libm-2.9.so
7ffad2774000-7ffad2866000 r-xp  fe:02 69 
/usr/lib/libstdc++.so.6.0.13
7ffad2866000-7ffad2a66000 ---p 000f2000 fe:02 69 
/usr/lib/libstdc++.so.6.0.13
7ffad2a66000-7ffad2a6d000 r--p 000f2000 fe:02 69 
/usr/lib/libstdc++.so.6.0.13
7ffad2a6d000-7ffad2a6f000 rw-p 000f9000 fe:02 69 
/usr/lib/libstdc++.so.6.0.13
7ffad2a6f000-7ffad2a84000 rw-p  00:00 0 
7ffad2a84000-7ffad2b48000 r-xp  fe:02 5146   
/usr/lib/libapt-pkg-libc6.9-6.so.4.8.1
7ffad2b48000-7ffad2d47000 ---p 000c4000 fe:02 5146   
/usr/lib/libapt-pkg-libc6.9-6.so.4.8.1
7ffad2d47000-7ffad2d4c000 rw-p 000c3000 fe:02 5146   
/usr/lib/libapt-pkg-libc6.9-6.so.4.8.1
7ffad2d4c000-7ffad2d69000 r-xp  fe:01 918
/lib/ld-2.9.so
7ffad2dc6000-7ffad2e5 rw-p  00:00 0 
7ffad2e5-7ffad2e57000 r--s  fe:02 814
/usr/lib/gconv/gconv-modules.cache
7ffad2e57000-7ffad2e5f000 r--p  fe:02 

Bug#476256: libstfl-dev: Segmentation fault occurs if root widget was replaced.

2008-04-15 Thread Kusanagi Kouichi
Package: libstfl-dev
Version: 0.18-2
Severity: normal

Segmentation fault occurs if root widget was replaced.
Testcase and patch were attached.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-rc5-mm1
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/bash

Versions of packages libstfl-dev depends on:
ii  libncursesw5-dev  5.6+20080405-1 Developer's libraries for ncursesw

libstfl-dev recommends no packages.

-- no debconf information
#include stfl.h
#include locale.h
#include stdio.h
#include langinfo.h

int main(void)
{
struct stfl_form *form;
struct stfl_ipool *ipool;
const wchar_t *dump;

if (setlocale(LC_ALL, ) == NULL)
{
perror(setlocale);
return 1;
}

form = stfl_create(Lvbox[a]\n vbox[b]\n  list\n   listitem 
text:Asafff\n);
ipool = stfl_ipool_create(nl_langinfo(CODESET));
puts(stfl_ipool_fromwc(ipool, stfl_dump(form, NULL, NULL, 0)));
dump = stfl_dump(form, La, NULL, 0);
puts(stfl_ipool_fromwc(ipool, dump));
stfl_modify(form, La, Lreplace, dump);
puts(stfl_ipool_fromwc(ipool, stfl_dump(form, NULL, NULL, 0)));
stfl_ipool_flush(ipool);
stfl_ipool_destroy(ipool);
stfl_free(form);

return 0;
}
diff -uNrp stfl-0.18.orig/public.c stfl-0.18/public.c
--- stfl-0.18.orig/public.c 2007-11-11 21:28:52.0 +0900
+++ stfl-0.18/public.c  2008-04-15 00:11:49.0 +0900
@@ -302,7 +302,10 @@ void stfl_modify(struct stfl_form *f, co
mode = mode ? mode : L;
 
if (!wcscmp(mode, Lreplace)) {
-   stfl_modify_after(w, n);
+   if (w == f-root)
+   f-root = n;
+   else
+   stfl_modify_after(w, n);
stfl_widget_free(w);
goto finish;
}


Bug#300486: no easy way to wait until uim-xim is ready

2008-04-13 Thread Kusanagi Kouichi
Xlib provides the way to do this, which is XRegisterIMInstantiateCallback.
It is up to clients to decide what should be done when an IM server is not
available.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#298591: tla: id command doesn't accept multiple arguments.

2005-03-08 Thread Kusanagi Kouichi
Package: tla
Version: 1.3-1
Severity: normal
Tags: patch

tla id --help shows
usage: tla id [options] file ...
but id command doesn't accept multiple arguments.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)

Versions of packages tla depends on:
ii  diff 2.8.1-11File comparison utilities
ii  gawk 1:3.1.4-2   GNU awk, a pattern scanning and pr
ii  libc62.3.2.ds1-20GNU C Library: Shared libraries an
ii  libneon240.24.7.dfsg-0.2 An HTTP and WebDAV client library
ii  patch2.5.9-2 Apply a diff file to an original

-- no debconf information
--- tla-1.3/src/tla/libarch/cmd-id.c.orig   2004-12-23 13:30:26.0 
+0900
+++ tla-1.3/src/tla/libarch/cmd-id.c2005-03-09 02:02:47.0 +0900
@@ -75,7 +75,6 @@
   struct opt_parsed * option;
   int silent;
   enum arch_id_tagging_method method;
-  t_uchar * answer;
   int escape_classes = arch_escape_classes;
 
   safe_buffer_fd (1, 0, O_WRONLY, 0);
@@ -131,36 +130,45 @@
 }
 }
 
-  if (argc != 2)
+  if (argc  2)
 goto usage_error;
 
-  answer = arch_inventory_id (method, 0, argv[1], 0, 0, 0);
+  {
+int a;
 
-  if (!answer)
-{
-  if (!silent)
-{
-  t_uchar * escaped_tmp;
-  escaped_tmp = pika_save_escape_iso8859_1 (0, 0, escape_classes, 
argv[1]);
-  safe_printfmt (2, \n);
-  safe_printfmt (2, %s: untagged file\n, argv[0]);
-  safe_printfmt (2,   %s\n, escaped_tmp);
-  safe_printfmt (2, \n);
-  lim_free (0, escaped_tmp);
-}
-  exit (1);
-}
-  else
-{
-  if (!silent)
-{
-  t_uchar * escaped_tmp;
-  escaped_tmp = pika_save_escape_iso8859_1 (0, 0, escape_classes, 
argv[1]);
-  safe_printfmt (1, %s\t%s\n, escaped_tmp, answer);
-  lim_free (0, escaped_tmp);
-}
-  exit (0);
-}
+for (a = 1; a  argc; ++a)
+  {
+t_uchar * answer;
+
+answer = arch_inventory_id (method, 0, argv[a], 0, 0, 0);
+  
+if (!answer)
+  {
+if (!silent)
+  {
+t_uchar * escaped_tmp;
+escaped_tmp = pika_save_escape_iso8859_1 (0, 0, 
escape_classes, argv[a]);
+safe_printfmt (2, \n);
+safe_printfmt (2, %s: untagged file\n, argv[0]);
+safe_printfmt (2,   %s\n, escaped_tmp);
+safe_printfmt (2, \n);
+lim_free (0, escaped_tmp);
+  }
+exit (1);
+  }
+else
+  {
+if (!silent)
+  {
+t_uchar * escaped_tmp;
+escaped_tmp = pika_save_escape_iso8859_1 (0, 0, 
escape_classes, argv[a]);
+safe_printfmt (1, %s\t%s\n, escaped_tmp, answer);
+lim_free (0, escaped_tmp);
+  }
+lim_free (0, answer);
+  }
+  }
+  }
 
   return 0;
 }