PDA

View Full Version : kdelibs update failure


remdog
06-21-2008, 05:31 AM
A similar thread was here earlier, but frankly this one has me stumped. Here is the error message I receive after 2 1/2 hrs of trying to update kdelibs:

===> Generating temporary packing list
===> Checking if misc/hicolor-icon-theme already installed
===> hicolor-icon-theme-0.10_2 is already installed
You may wish to ``make deinstall'' and install this port again
by ``make reinstall'' to upgrade it properly.
If you really wish to overwrite the old port of misc/hicolor-icon-theme
without deleting it first, set the variable "FORCE_PKG_REGISTER"
in your environment or the "make install" command line.
*** Error code 1

Stop in /usr/ports/misc/hicolor-icon-theme.
*** Error code 1

Stop in /usr/ports/misc/hicolor-icon-theme.
*** Error code 1

Stop in /usr/ports/x11/kdelibs3.
*** Error code 1

Stop in /usr/ports/x11/kdelibs3.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.2896.0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=kdelibs-3.5.8 UPGRADE_PORT_VER=3.5.8 make reinstall


I have done a deinstall/reinstall of hicolor-icon-theme to no avail. If someone could tell me what to try next I would be very appreciative.

Thanks,

Rem

putu
06-21-2008, 07:39 AM
I dont know exactly how to solve this probleme http://www.kaskus.us/images/smilies/sumbangan/1.gif

But you can try this step :

upgrade your port first:

# portsnap fetch extract

and then deinstall and install it again

# cd /usr/ports/misc/hicolor-icon-theme && make deinstall

# cd /usr/ports/misc/hicolor-icon-theme && make install clean

http://www.kaskus.us/images/smilies/sumbangan/005.gif

GigiLaTrottola
06-21-2008, 02:17 PM
I had the same problem upgrading amarok. I've solved the problem in the this way:

1. cd /usr/ports/misc/hicolor-icon-theme && make deinstall clean distclean
2. pkgdb -F to remove dependecies
3. portupgrade what you were upgrading

The second steps is used to notify that hi-color package has been removed.
Bye, Daniele

remdog
06-21-2008, 03:47 PM
Thanks for the heads up. As I said earlier, I did a deinstall/reinstall and that didn't work. I am in the process of trying your method, Daniele, using pkgdb -F, which I didn't do before. I wish that I understood the differences between the two procedures. At any rate, kdelibs is in the process of updating, and I'll report on how it went this time.

Rem

TerryP
06-21-2008, 04:56 PM
deisntall -> remove files
reinstall -> upgrade files # note to self, read makefile later
install -> install files
clean -> remove temp files from building ports
distclean -> remove files used to create/install program (look in /usr/ports/distfiles/)


to bad there is no make dinner target lol.

remdog
06-21-2008, 05:00 PM
Thanks for the reply, Terry. Here's my question: if you do a reinstall, after having done a deinstall, why is another make install necessary? Or am I just confusing this issue more?

Rem

TerryP
06-21-2008, 05:39 PM
# Reinstall
#
# Special target to re-run install

.if !target(reinstall)
reinstall:
@${RM} -f ${INSTALL_COOKIE} ${PACKAGE_COOKIE}
@cd ${.CURDIR} && DEPENDS_TARGET="${DEPENDS_TARGET}" ${MAKE} install
.endif


While I'm not an expert on BSD Make, the only difference I see between reinstall and install is that reinstall kills the "we already done this" things before doing an 'install'



# Names of cookies used to skip already completed stages
EXTRACT_COOKIE?= ${WRKDIR}/.extract_done.${PORTNAME}.${PREFIX:S/\//_/g}
CONFIGURE_COOKIE?= ${WRKDIR}/.configure_done.${PORTNAME}.${PREFIX:S/\//_/g}
INSTALL_COOKIE?= ${WRKDIR}/.install_done.${PORTNAME}.${PREFIX:S/\//_/g}
BUILD_COOKIE?= ${WRKDIR}/.build_done.${PORTNAME}.${PREFIX:S/\//_/g}
PATCH_COOKIE?= ${WRKDIR}/.patch_done.${PORTNAME}.${PREFIX:S/\//_/g}
PACKAGE_COOKIE?= ${WRKDIR}/.package_done.${PORTNAME}.${PREFIX:S/\//_/g}



I love /usr/ports/Mk/ lol.

Carpetsmoker
06-21-2008, 06:26 PM
Indeed, to explain a bit further:
The reinstall target is the same as the install target, to get the subtle difference try this:

# cd /usr/ports/textproc/urlview
# make install
# make install
# make reinstall

On the first make install urlview is installed, but on the second install, nothing happens, and with make reinstall you will get an error message telling you urlview is already installed.
Why?
Because [b]work/.install_done.urlview._usr_localp/b] exists, telling the FreeBSD ports system that this port is already installed.

Note that make deinstall also removes this file (So called cookie), so you do not need to use make reinstall after running make deinstall (Although it does no harm).