Summary: | app-editors/nvi-1.81.6-r2 fails on execution with "unexpected file type or format" for /var/tmp/vi.recover/vi.* | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Max Kresch <mkresch> |
Component: | Current packages | Assignee: | Harald van Dijk (RETIRED) <truedfx> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | output of "strace -f -o strace_nvi nvi" |
Description
Max Kresch
2009-09-25 02:57:28 UTC
Created attachment 205180 [details]
output of "strace -f -o strace_nvi nvi"
Could you please check which version of db your nvi is using? `ldd /usr/bin/nvi` should be enough. Sure thing... $ ldd /usr/bin/nvi linux-vdso.so.1 => (0x00007fff395ff000) libvi.so.0 => /usr/lib/libvi.so.0 (0x00007fa7eeae3000) libperl.so.1 => /usr/lib/libperl.so.1 (0x00007fa7ee7bf000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007fa7ee5a3000) libnsl.so.1 => /lib/libnsl.so.1 (0x00007fa7ee38b000) libdl.so.2 => /lib/libdl.so.2 (0x00007fa7ee187000) libm.so.6 => /lib/libm.so.6 (0x00007fa7edf04000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007fa7edccc000) libutil.so.1 => /lib/libutil.so.1 (0x00007fa7edac9000) libc.so.6 => /lib/libc.so.6 (0x00007fa7ed76e000) libncursesw.so.5 => /lib/libncursesw.so.5 (0x00007fa7ed511000) libdb-4.8.so => /usr/lib/libdb-4.8.so (0x00007fa7ed19d000) /lib64/ld-linux-x86-64.so.2 (0x00007fa7eed8c000) Thanks. I've added a nvi-1.81.6-r3 which makes sure it's linked to db 4.7 or older. I'll keep this bug open because it's not really fixed until nvi is modified to work with 4.8 as well. 1.81.6-r3 works. Thank you! :) The short story is that DB 4.8 no longer allows DB_CREATE | DB_TRUNCATE to overwrite existing empty files, and I'm not sure if this is a bug or a feature. Such questions should go to Oracle's DB forum, but registration there requires business name and phone number, personal home address, and the likes. If anyone else wants to make sure DB 4.8 is supported, step right in, but I'm going to leave this forced at DB 4.7 or lower. Re-opening to... ...close this properly, db 4.8.30 reverts to the older behaviour that nvi expects, and that version is now allowed in the nvi ebuild. Thanks to Debian's Sean Finney and Oracle's George Feinberg for seeing to it that this got fixed. |