adtools icon indicating copy to clipboard operation
adtools copied to clipboard

update-adtools-sdk-nonfree fails during --uninstall

Open Fatsie opened this issue 9 years ago • 3 comments

Script fails during deinstalling rpm with the script:

Running Transaction Error in PREUN scriptlet in rpm package ppc-amigaos-sdk find: kan ‘/usr//ppc-amigaos/bin’ niet verwijderen: Map is niet leeg find: kan ‘/usr//ppc-amigaos/lib/ldscripts’ niet verwijderen: Map is niet leeg find: kan ‘/usr//ppc-amigaos/lib’ niet verwijderen: Map is niet leeg find: kan ‘/usr//ppc-amigaos’ niet verwijderen: Map is niet leeg fout: %preun(ppc-amigaos-sdk-53.24-amixdev.1.2.1.noarch) scriptlet failed, exit status 1

This is %preun from .spec file for building the rpm:

%preun %{_prefix}/sbin/update-adtools-sdk-nonfree --uninstall

Because of this fail yum/rpm is not removed from db. Directories are not empty as I have ppc-amigaos-binutils installed.

Fatsie avatar Feb 25 '15 21:02 Fatsie

Thanks for the report. Do you have any suggestion how to solve this? Shall adtools-binutils depend on adtools-sdk perhaps?

sba1 avatar Mar 01 '15 18:03 sba1

Do you have any suggestion how to solve this?

I did not have a good immediate quick fix myself; maybe ignore return value of find in update-adtools-sdk-nonfree that tries to remove empty directories:

find ${CROSS_ROOT}/ppc-amigaos -depth -type d -delete || \
    echo ${CROSS_ROOT}/ppc-amigaos was not removed as it was not empty

Shall adtools-binutils depend on adtools-sdk perhaps?

I prefer something more generic; ${CROSS_ROOT}/ppc-amigaos can also be non-empty if for example people would have copied own includes there.

Fatsie avatar Mar 04 '15 06:03 Fatsie

I got stuck on this myself recently. I attempted to uninstall the adtools packages from Synaptic. It got to about %40 then stalled. I found out it was trying to install the SDK and download it in order to remove it! Which doesn't make sense. For some reason the removing script were first trying to install it again before removing it. Which doesn't make sense. :-)

Hypexed avatar Jul 11 '17 12:07 Hypexed