[mythtv-commits] Ticket #3623: 'make uninstall' does not clean out all empty installation directories

MythTV mythtv at cvs.mythtv.org
Thu Jan 31 09:50:20 UTC 2008


#3623: 'make uninstall' does not clean out all empty installation directories
------------------------------------------------------+---------------------
 Reporter:  Nick Morrott <knowledgejunkie at gmail.com>  |        Owner:  nigel   
     Type:  defect                                    |       Status:  accepted
 Priority:  minor                                     |    Milestone:  0.21    
Component:  mythtv                                    |      Version:  head    
 Severity:  medium                                    |   Resolution:          
  Mlocked:  0                                         |  
------------------------------------------------------+---------------------
Changes (by nigel):

  * status:  assigned => accepted


Comment:

 This isn't a huge problem - running make ununstall a second time should
 work around the bug, but it should be fixable. There are two things
 happening here. 1) some directories may not be empty when uninstall is
 trying to remove them. ''e.g.'':
 {{{
 $ sudo make uninstall 2>&1 | egrep 'rmdir.*include'
 rmdir "/usr/include/mythtv/ffmpeg/"
 rmdir: /usr/include/mythtv/ffmpeg/: No such file or directory
 rmdir "/usr/include/mythtv/ffmpeg/"
 rmdir: /usr/include/mythtv/ffmpeg/: No such file or directory
 rmdir "/usr/include/mythtv/ffmpeg/"
 rmdir: /usr/include/mythtv/ffmpeg/: No such file or directory
 rmdir "/usr/include/mythtv/"
 rmdir: /usr/include/mythtv/: Directory not empty
 rmdir "/usr/include/mythtv/mpeg2dec/"
 rmdir: /usr/include/mythtv/mpeg2dec/: No such file or directory
 rmdir "/usr/include/mythtv/dvdnav/"
 rmdir: /usr/include/mythtv/dvdnav/: No such file or directory
 rmdir "/usr/include/mythtv/upnp/"
 rmdir: /usr/include/mythtv/upnp/: No such file or directory
 rmdir "/usr/include/mythtv/libmythui/"
 rmdir: /usr/include/mythtv/libmythui/: No such file or directory
 rmdir "/usr/include/mythtv/"
 rmdir: /usr/include/mythtv/: Directory not empty
 rmdir "/usr/include/mythtv/"
 rmdir: /usr/include/mythtv/: Directory not empty
 rmdir "/usr/include/mythtv/libmythtv/"
 rmdir: /usr/include/mythtv/libmythtv/: No such file or directory

 $ ls /usr/include/mythtv
 libmyth
 }}}
 (I will try to fix that extra libmyth dir soon - it is related to [15545])
 [[BR]]
 2) sequencing. qmake is installing and uninstalling in the same order,
 which means that the Makefile in the subdir that creates and removes the
 top-level installed dir is called too early. I will try to add extra rmdir
 commands to the uninstall targets in libs.pro

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3623#comment:4>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list