#1451 "make uninstall" removes /usr/share/docs

closed-fixed
nobody
8
2013-05-25
2008-05-04
jimhap
No

Downloading the source, and building it works.

(Clean build- NO ERRORS)

However, when I needed to uninstall it, it deletes
the /usr/share/doc directory.

It shouldn't do that, since that stores the other app's
documentation.

My OS is Ubuntu 7.10.

To reproduce:

Download source code package.
Unpack it.

Configure it. (My configuration was to only build a port to z80)

Build (make).

Then install it.

(make install)

Uninstall it. (make uninstall)

If you have a big /usr/share/doc,
you can see the command. If you don't, you can scrollback
to see the command.

(rm -rf /usr/share/doc is the command)

Here is my terminal output:

-------------
arthur@arthur-PC:~/sdcc$ sudo make uninstall
make -f main.mk uninstall
make[1]: Entering directory `/home/arthur/sdcc'
make[1]: Nothing to be done for `uninstall'.
make[1]: Leaving directory `/home/arthur/sdcc'
make[1]: Entering directory `/home/arthur/sdcc/sim/ucsim'
make -f main.mk uninstall
make[2]: Entering directory `/home/arthur/sdcc/sim/ucsim'
rm -f /usr/bin/s51
rm -f /usr/bin/savr
rm -f /usr/bin/serialview
rm -f /usr/bin/portmon
make[2]: Leaving directory `/home/arthur/sdcc/sim/ucsim'
make[2]: Entering directory `/home/arthur/sdcc/sim/ucsim/cmd.src'
make[2]: Nothing to be done for `uninstall'.
make[2]: Leaving directory `/home/arthur/sdcc/sim/ucsim/cmd.src'
make[2]: Entering directory `/home/arthur/sdcc/sim/ucsim/sim.src'
make[2]: Nothing to be done for `uninstall'.
make[2]: Leaving directory `/home/arthur/sdcc/sim/ucsim/sim.src'
make[2]: Entering directory `/home/arthur/sdcc/sim/ucsim/gui.src'
make[2]: Leaving directory `/home/arthur/sdcc/sim/ucsim/gui.src'
make[2]: Entering directory `/home/arthur/sdcc/sim/ucsim/s51.src'
rm -f /usr/bin/s51
make[2]: Leaving directory `/home/arthur/sdcc/sim/ucsim/s51.src'
make[2]: Entering directory `/home/arthur/sdcc/sim/ucsim/avr.src'
rm -f /usr/bin/savr
make[2]: Leaving directory `/home/arthur/sdcc/sim/ucsim/avr.src'
make[2]: Entering directory `/home/arthur/sdcc/sim/ucsim/z80.src'
rm -f /usr/bin/sz80
make[2]: Leaving directory `/home/arthur/sdcc/sim/ucsim/z80.src'
make[2]: Entering directory `/home/arthur/sdcc/sim/ucsim/hc08.src'
rm -f /usr/bin/shc08
make[2]: Leaving directory `/home/arthur/sdcc/sim/ucsim/hc08.src'
make[2]: Entering directory `/home/arthur/sdcc/sim/ucsim/doc'
rm -rf /usr/share/doc//ucsim
make[2]: Leaving directory `/home/arthur/sdcc/sim/ucsim/doc'
make[1]: Leaving directory `/home/arthur/sdcc/sim/ucsim'
make[1]: Entering directory `/home/arthur/sdcc/device/lib'
rm -rf /usr/share/sdcc/lib
make[1]: Leaving directory `/home/arthur/sdcc/device/lib'
make[1]: Entering directory `/home/arthur/sdcc/support/packihx'
rm -f /usr/bin/packihx
make[1]: Leaving directory `/home/arthur/sdcc/support/packihx'
make[1]: Entering directory `/home/arthur/sdcc/doc'
rm -rf /usr/share/doc/
make[1]: Leaving directory `/home/arthur/sdcc/doc'
make[1]: Entering directory `/home/arthur/sdcc/support/makebin'
rm -f /usr/bin/makebin
make[1]: Leaving directory `/home/arthur/sdcc/support/makebin'
make[1]: Entering directory `/home/arthur/sdcc/support/cpp2'
rm -f /usr/bin/sdcpp
make[1]: Leaving directory `/home/arthur/sdcc/support/cpp2'
make[1]: Entering directory `/home/arthur/sdcc/src'
rm -f /usr/bin/sdcc
make[1]: Leaving directory `/home/arthur/sdcc/src'
make[1]: Entering directory `/home/arthur/sdcc/device/include'
rm -rf /usr/share/sdcc/include
make[1]: Leaving directory `/home/arthur/sdcc/device/include'
make[1]: Entering directory `/home/arthur/sdcc/as'
cd /usr/bin; rm -f as-z80 as-gbz80
make[1]: Leaving directory `/home/arthur/sdcc/as'
make[1]: Entering directory `/home/arthur/sdcc/as/link'
cd /usr/bin; rm -f link-z80 link-gbz80
make[1]: Leaving directory `/home/arthur/sdcc/as/link'
make[1]: Entering directory `/home/arthur/sdcc/support/librarian'
rm -f /usr/bin/sdcclib
make[1]: Leaving directory `/home/arthur/sdcc/support/librarian'
arthur@arthur-PC:~/sdcc$ ls /usr/share/doc
ls: /usr/share/doc: No such file or directory
------------------------------

Discussion

  • Philipp Klaus Krause

    • priority: 5 --> 8
     
  • Philipp Klaus Krause

    Logged In: YES
    user_id=564030
    Originator: NO

    Changed priority since deleting data from other applications is a major problem.

     
  • Raphael Neider

    Raphael Neider - 2008-08-10

    Logged In: YES
    user_id=1115835
    Originator: NO

    Fixed in SDCC 2.8.3, r5211.

     
  • Raphael Neider

    Raphael Neider - 2008-08-10
    • milestone: --> fixed
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks