Current-Users archive

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

obsolete gcc-4.5 include directory insufficient



Following this commit:

  http://mail-index.netbsd.org/source-changes/2015/08/12/msg068092.html

'postinstall fix obsolete' fails with:

  rmdir: /usr/include/gcc-4.5: Directory not empty
        Can't remove obsolete directory /usr/include/gcc-4.5

Not all the files in the directory were obsoleted/removed before directory
removal was attempted.

For example, on my sparc systems, it fails with:

        Removed obsolete file /usr/include/gcc-4.5/tgmath.h
        Removed obsolete file /usr/include/gcc-4.5/mf-runtime.h
  rmdir: /usr/include/gcc-4.5: Directory not empty
        Can't remove obsolete directory /usr/include/gcc-4.5

The following files remain in "/usr/include/gcc-4.5/":

  $ ls -laF /usr/include/gcc-4.5
  total 24
  drwxr-xr-x   2 root  wheel   512 Aug 14 08:42 ./
  drwxr-xr-x  59 root  wheel  5120 Aug 13 15:52 ../
  -r--r--r--   1 root  wheel  3811 Sep 23  2011 omp.h


On evbmips(-mips64el) (updated on NFS server) it fails with:

          Removed obsolete file /r0/diskless/chalk/usr/include/gcc-4.5/mf-runtime.h
  rmdir: /r0/diskless/chalk/usr/include/gcc-4.5: Directory not empty
          Can't remove obsolete directory /r0/diskless/chalk/usr/include/gcc-4.5

The following files remain in "/usr/include/gcc-4.5/":

  $ ls -laF /r0/diskless/chalk/usr/include/gcc-4.5
  total 80
  drwxr-xr-x   2 root  wheel    512 Aug 14 09:02 ./
  drwxr-xr-x  59 root  wheel   5120 Aug 13 14:35 ../
  -r--r--r--   1 root  wheel  19762 Feb 25  2014 loongson.h
  -r--r--r--   1 root  wheel   3811 Feb 25  2014 omp.h
  -r--r--r--   1 root  wheel   8063 Feb 25  2014 tgmath.h


amd64 and i386 platforms (the only other ones I've updated so far) fail
similarly--there were other files as well but I forget what they were.
I cleaned up manually with

  # rm -r /usr/include/gcc-4.5

or whatever was appropriate.

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index