You're worried about error msgs like these?

erase unlink of /usr/lib/libsrp.so.0.0.0 failed: No such file or  
directory

Repackaging is "best effort", its impossible to repackage
content that is not present on the file system. Similarly erasures,
the failure to remove a file that is not present is hardly an
interesting error return, the file is gone after the unlink(2)
even if errno claims "No such file or directory."

FWIW, rpm-4.4.5 and later has doubly linked upgrade
chains, each installed package has backward links to upgraded/obsoleted
packages, each repackaged package has links to the package(s) that
replaced. rpm-4.4.2 does not have that content.

73 de Jeff

On Nov 18, 2007, at 11:32 AM, Tomasz Pala wrote:

> # rpm -q --qf "%{name}-%{version}-%{release}.%{arch}\n" libpcap
> libpcap-0.9.7-1.athlon
> libpcap-0.9.4-1.amd64
> # rpm -e libpcap-0.9.7-1.athlon
> # rpm -q --qf "%{name}-%{version}-%{release}.%{arch}\n" libpcap
> libpcap-0.9.7-1.athlon
> libpcap-0.9.4-1.amd64
>
> rpm-4.4.2-46 --rebuilddb and --justdb didn't help, I had to disable
> %_repackage_all_erasures.
>
> The same problem exists with --repackage:
>
> #  rpm -e -vv --repackage srp-libs
> D: opening  db environment /var/lib/rpm/Packages joinenv
> D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
> D: locked   db index       /var/lib/rpm/Packages
> D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0
> D:  read h#     313 Header SHA1 digest: OK  
> (376e32026ba20f8e54e5f68542631b318bee5417)
> D: ========== --- srp-libs-2.1.2-0.1 athlon/linux 0x1
> D: opening  db index       /var/lib/rpm/Requirename rdonly mode=0x0
> D: closed   db index       /var/lib/rpm/Requirename
> D: closed   db index       /var/lib/rpm/Name
> D: closed   db index       /var/lib/rpm/Packages
> D: closed   db environment /var/lib/rpm/Packages
> D: opening  db environment /var/lib/rpm/Packages joinenv
> D: opening  db index       /var/lib/rpm/Packages create mode=0x42
> D: mounted filesystems:
> D:     i        dev    bsize       bavail       iavail mount point
> D:     0 0x00000802     4096      1366147      1139767 /
> D:     1 0x00000003     4096            0           -1 /proc
> D:     2 0x00000000     4096            0           -1 /sys
> D:     3 0x0000000d     4096            0           -1 /sys/kernel/ 
> security
> D:     4 0x00000803     4096      2809633           -1 /var
> D:     5 0x00000804     4096      2297589      4544905 /home
> D:     6 0x00000302     4096      1185448           -1 /var/cache/ 
> squid2
> D:     7 0x0000000a     4096            0           -1 /dev/pts
> D:     8 0x0000000e     4096       192984       192983 /dev/shm
> D: sanity checking 1 elements
> D: running pre-transaction scripts
> D: computing 2 file fingerprints
> D: computing file dispositions
> D: opening  db index       /var/lib/rpm/Basenames create mode=0x42
> D: repackage: srp-libs-2.1.2-0.1 has 2 files, test = 0
> D: opening  db index       /var/lib/rpm/Name create mode=0x42
> D:  read h#     313 Header SHA1 digest: OK  
> (376e32026ba20f8e54e5f68542631b318bee5417)
> D: Signature: size(180)+pad(4)
> D: fini      000755  0 (   0,   0)         0 /usr/lib/libkrypto.so. 
> 0.0.0
> D: fini      000755  0 (   0,   0)         0 /usr/lib/libsrp.so.0.0.0
> LZDIO:       1 writes,      400 total bytes in 0.000006 secs
> Wrote: /var/spool/repackage/srp-libs-2.1.2-0.1.athlon.rpm
> D: Exiting on signal(0x1000) ...
> D: closed   db index       /var/lib/rpm/Basenames
> D: closed   db index       /var/lib/rpm/Name
> D: closed   db index       /var/lib/rpm/Packages
> D: closed   db environment /var/lib/rpm/Packages
>
> but:
>
> #  rpm -e -vv srp-libs
> D: opening  db environment /var/lib/rpm/Packages joinenv
> D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
> D: locked   db index       /var/lib/rpm/Packages
> D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0
> D:  read h#     313 Header SHA1 digest: OK  
> (376e32026ba20f8e54e5f68542631b318bee5417)
> D: ========== --- srp-libs-2.1.2-0.1 athlon/linux 0x1
> D: opening  db index       /var/lib/rpm/Requirename rdonly mode=0x0
> D: closed   db index       /var/lib/rpm/Requirename
> D: closed   db index       /var/lib/rpm/Name
> D: closed   db index       /var/lib/rpm/Packages
> D: closed   db environment /var/lib/rpm/Packages
> D: opening  db environment /var/lib/rpm/Packages joinenv
> D: opening  db index       /var/lib/rpm/Packages create mode=0x42
> D: mounted filesystems:
> D:     i        dev    bsize       bavail       iavail mount point
> D:     0 0x00000802     4096      1366147      1139767 /
> D:     1 0x00000003     4096            0           -1 /proc
> D:     2 0x00000000     4096            0           -1 /sys
> D:     3 0x0000000d     4096            0           -1 /sys/kernel/ 
> security
> D:     4 0x00000803     4096      2809269           -1 /var
> D:     5 0x00000804     4096      2297589      4544905 /home
> D:     6 0x00000302     4096      1185448           -1 /var/cache/ 
> squid2
> D:     7 0x0000000a     4096            0           -1 /dev/pts
> D:     8 0x0000000e     4096       192984       192983 /dev/shm
> D: sanity checking 1 elements
> D: running pre-transaction scripts
> D: computing 2 file fingerprints
> D: computing file dispositions
> D: opening  db index       /var/lib/rpm/Basenames create mode=0x42
> D: ========== --- srp-libs-2.1.2-0.1 athlon-linux 0x1
> D:     erase: srp-libs-2.1.2-0.1 has 2 files, test = 0
> D: opening  db index       /var/lib/rpm/Name create mode=0x42
> D:  read h#     313 Header SHA1 digest: OK  
> (376e32026ba20f8e54e5f68542631b318bee5417)
> D: opening  db index       /var/lib/rpm/Triggername create mode=0x42
> D: fini      000755  0 (   0,   0)         0 /usr/lib/libsrp.so.0.0.0
> D:    erase unlink of /usr/lib/libsrp.so.0.0.0 failed: No such file  
> or directory
> D: fini      000755  0 (   0,   0)         0 /usr/lib/libkrypto.so. 
> 0.0.0
> D:    erase unlink of /usr/lib/libkrypto.so.0.0.0 failed: No such  
> file or directory
> D:     erase: %postun(srp-libs-2.1.2-0.1.athlon) asynchronous  
> scriptlet start
> D:     erase: %postun(srp-libs-2.1.2-0.1.athlon)        execv(/sbin/ 
> ldconfig) pid 9201
> D:     erase: waitpid(9201) rc 9201 status 0 secs 0.048
> D:   --- h#     313 srp-libs-2.1.2-0.1
> D: removing "srp-libs" from Name index.
> D: removing 2 entries from Basenames index.
> D: opening  db index       /var/lib/rpm/Group create mode=0x42
> D: removing "Libraries" from Group index.
> D: opening  db index       /var/lib/rpm/Requirename create mode=0x42
> D: removing 11 entries from Requirename index.
> D: opening  db index       /var/lib/rpm/Providename create mode=0x42
> D: removing 3 entries from Providename index.
> D: opening  db index       /var/lib/rpm/Dirnames create mode=0x42
> D: removing "/usr/lib/" from Dirnames index.
> D: opening  db index       /var/lib/rpm/Requireversion create  
> mode=0x42
> D: removing 11 entries from Requireversion index.
> D: opening  db index       /var/lib/rpm/Provideversion create  
> mode=0x42
> D: removing 3 entries from Provideversion index.
> D: opening  db index       /var/lib/rpm/Installtid create mode=0x42
> D: removing 1 entries from Installtid index.
> D: opening  db index       /var/lib/rpm/Sigmd5 create mode=0x42
> D: removing 1 entries from Sigmd5 index.
> D: opening  db index       /var/lib/rpm/Sha1header create mode=0x42
> D: removing "376e32026ba20f8e54e5f68542631b318bee5417" from  
> Sha1header index.
> D: opening  db index       /var/lib/rpm/Filemd5s create mode=0x42
> D: removing 2 entries from Filemd5s index.
> D: running post-transaction scripts
> D: closed   db index       /var/lib/rpm/Filemd5s
> D: closed   db index       /var/lib/rpm/Sha1header
> D: closed   db index       /var/lib/rpm/Sigmd5
> D: closed   db index       /var/lib/rpm/Installtid
> D: closed   db index       /var/lib/rpm/Provideversion
> D: closed   db index       /var/lib/rpm/Requireversion
> D: closed   db index       /var/lib/rpm/Dirnames
> D: closed   db index       /var/lib/rpm/Triggername
> D: closed   db index       /var/lib/rpm/Providename
> D: closed   db index       /var/lib/rpm/Requirename
> D: closed   db index       /var/lib/rpm/Group
> D: closed   db index       /var/lib/rpm/Basenames
> D: closed   db index       /var/lib/rpm/Name
> D: closed   db index       /var/lib/rpm/Packages
> D: closed   db environment /var/lib/rpm/Packages
> D: May free Score board((nil))
>
>
> -- 
> Tomasz Pala <[EMAIL PROTECTED]>
> _______________________________________________
> pld-devel-en mailing list
> pld-devel-en@lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

_______________________________________________
pld-devel-en mailing list
pld-devel-en@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to