adtools
adtools copied to clipboard
update-adtools-sdk-nonfree fails during --uninstall
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.
Thanks for the report. Do you have any suggestion how to solve this? Shall adtools-binutils depend on adtools-sdk perhaps?
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.
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. :-)