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

terminfo files getting installed executable, but how? (was: Failing daily D-I builds?)



This is very strange. Let's see if the friendly folks on d-devel can help.

Cheers,
FJP

On Friday 20 June 2008, Joey Hess wrote:
> But there should be no reason for these terminfo files to be
> executable. And if I rebuild debian-installer-utils, they are not. fjp
> did the last debian-installer-utils upload, and I think his system has
> executable terminfo files, somehow, since they've crept into the
> di-utils-terminfo udeb.

$ ls -l /lib/terminfo/*/*
-rwxrwxrwx 1 root root 1481 2008-06-16 22:40 /lib/terminfo/a/ansi
-rwxrwxrwx 1 root root 1502 2008-06-16 22:40 /lib/terminfo/c/cons25
-rwxrwxrwx 1 root root 1529 2008-06-16 22:40 /lib/terminfo/c/cygwin
-rwxrwxrwx 1 root root  308 2008-06-16 22:40 /lib/terminfo/d/dumb
[...]

$ find /lib/terminfo/*/* -type f | xargs sudo chmod a-x
$ ls -l /lib/terminfo/*/*
-rw-rw-rw- 1 root root 1481 2008-06-16 22:40 /lib/terminfo/a/ansi
-rw-rw-rw- 1 root root 1502 2008-06-16 22:40 /lib/terminfo/c/cons25
-rw-rw-rw- 1 root root 1529 2008-06-16 22:40 /lib/terminfo/c/cygwin
-rw-rw-rw- 1 root root  308 2008-06-16 22:40 /lib/terminfo/d/dumb
[...]

$ sudo aptitude reinstall ncurses-base
$ ls -l /lib/terminfo/*/*
-rwxrwxrwx 1 root root 1481 2008-06-16 22:40 /lib/terminfo/a/ansi
-rwxrwxrwx 1 root root 1502 2008-06-16 22:40 /lib/terminfo/c/cons25
-rwxrwxrwx 1 root root 1529 2008-06-16 22:40 /lib/terminfo/c/cygwin
-rwxrwxrwx 1 root root  308 2008-06-16 22:40 /lib/terminfo/d/dumb
[...]

Strange thing is that:
$ dpkg -c /var/cache/apt/archives/ncurses-base_5.6+20080614-1_all.deb | \
  grep "^[^l].*/[acd]/[acd]"
-rw-r--r-- root/root      1481 2008-06-16 22:40 ./lib/terminfo/a/ansi
-rw-r--r-- root/root      1502 2008-06-16 22:40 ./lib/terminfo/c/cons25
-rw-r--r-- root/root      1529 2008-06-16 22:40 ./lib/terminfo/c/cygwin
-rw-r--r-- root/root       308 2008-06-16 22:40 ./lib/terminfo/d/dumb

So, it looks like the ncurses-base postinst is somehow to blame.
Only it does not have a postinst...

/me is confused
Is dpkg doing something weird here maybe?

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: