Solved [Solved] Error updating ports

I'm a new user on 10-RELEASE. I updating my ports tree and read /usr/ports/UPDATING. The updates are usually very informative and clear. This caught my eye:

KDE4_PREFIX has been changed from /usr/local/kde4 to /usr/local.
All ports that depends on kdehier4 must be reinstalled.
PORTREVISION for affected ports has been increased, upgrading tools
(portmaster, pkg) should handle this update without manual intervention.
Please check /usr/local/kde4 for leftovers after upgrade. If you don't
have locally modified files, e.g. under /usr/local/kde4/etc, you may
safely remove /usr/local/kde4.

I'm not sure about the part in bold - how should I proceed with this? I did try portupgrade -aR to apply the updates in the usual fashion but the affected KDE packages didn't appear to be updated.

Is it enough to pass some sort of flag to portupgrade specifying KDE packages depending on kdehier4 should be reinstalled? Apologies for the newbie question but better safe than sorry!
 
Re: Unsure how to correctly upgrade ports

This happened some time before 10.0-RELEASE so it shouldn't effect you.
 
Re: Unsure how to correctly upgrade ports

Thanks for replying.

I'm sure it's happened in the past (and will happen again in future) but I read this particular notice was posted on February 18th of this year.

So any advice would be much appreciated!
 
Re: Unsure how to correctly upgrade ports

It says:

PORTREVISION for affected ports has been increased, upgrading tools (portmaster, pkg) should handle this update without manual intervention.

If you are worried, portmaster -r kdehier will force a rebuild of that port and everything that depends on it.
 
Re: Unsure how to correctly upgrade ports

Thanks for that. Hoping to get more familiar with portmaster once I'm more comfortable with portupgrade.

So the bulk of the KDE updates were installed successfully. Having trouble installing all updates, however. I wanted to research (in other words, RTFM) more before coming back to ask for help from the experts!

I've updated the ports tree and, as per the advice in UPDATING, added the
Code:
WITH_NEW_XORG
knob to my /etc/make.conf.

The upgrade process fails when building X each time, using portupgrade -aR:

Code:
config.status: executing libtool commands

        prefix:          /usr/local
        exec_prefix:     ${prefix}
        libdir:          ${exec_prefix}/lib
        includedir:      ${prefix}/include

        OpenGL:          yes (ES1: no ES2: no)
        OpenVG:          no

        OSMesa:          no
        DRI drivers:     i915 i965 r200 radeon swrast
        DRI driver dir:  ${libdir}/dri
        GLX:             DRI-based

        EGL:             no

        llvm:            no

        Gallium:         no

        Shared libs:     yes
        Static libs:     no
        Shared-glapi:    no

        CFLAGS:          -O2 -pipe -fno-strict-aliasing -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-builtin-memcmp
        CXXFLAGS:        -O2 -pipe -fno-strict-aliasing -Wall -fno-strict-aliasing -fno-builtin-memcmp
        Macros:          -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DHAVE_PTHREAD -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS

        PYTHON2:         python2

        Run 'gmake' to build Mesa

===>  Building for dri-9.1.7_3,2
gmake[1]: Entering directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7'
Making all in src
gmake[2]: Entering directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7/src'
Making all in mapi/glapi/gen
gmake[3]: Entering directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7/src/mapi/glapi/gen'
  GEN      ../../../../src/mapi/glapi/glapi_mapi_tmp.h
  GEN      ../../../../src/mapi/glapi/glprocs.h
  GEN      ../../../../src/mapi/glapi/glapitemp.h
  GEN      ../../../../src/mapi/glapi/glapitable.h
  GEN      ../../../../src/mapi/glapi/glapi_gentable.c
  GEN      ../../../../src/mesa/main/enums.c
  GEN      ../../../../src/mesa/main/api_exec.c
  GEN      ../../../../src/mesa/main/dispatch.h
  GEN      ../../../../src/mesa/main/remap_helper.h
  GEN      ../../../../src/glx/indirect.c
  GEN      ../../../../src/glx/indirect.h
  GEN      ../../../../src/glx/indirect_init.c
  GEN      ../../../../src/glx/indirect_size.h
  GEN      ../../../../src/glx/indirect_size.c
gmake  all-am
gmake[4]: Entering directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7/src/mapi/glapi/gen'
gmake[4]: Nothing to be done for `all-am'.
gmake[4]: Leaving directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7/src/mapi/glapi/gen'
gmake[3]: Leaving directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7/src/mapi/glapi/gen'
Making all in mapi/glapi
gmake[3]: Entering directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7/src/mapi/glapi'
  CC       glapi_dispatch.lo
cc: warning: argument unused during compilation: '-fno-builtin-memcmp'
In file included from glapi_dispatch.c:90:
../../../src/mapi/glapi/glapitemp.h:7559:55: warning: passing 'const GLvoid *const *' (aka 'const void *const *') to parameter of type 'const GLvoid **' (aka 'const void **') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
   DISPATCH(MultiDrawElementsEXT, (mode, count, type, indices, primcount), (F, "glMultiDrawElements(0x%x, %p, 0x%x, %p, %d);\n", mode, (const void *) count, type, (const void *) indices, primcount));
                                                      ^~~~~~~
glapi_dispatch.c:74:25: note: expanded from macro 'DISPATCH'
   GET_DISPATCH()->FUNC ARGS
                        ^
1 warning generated.
  CC       glapi_entrypoint.lo
cc: warning: argument unused during compilation: '-fno-builtin-memcmp'
  CC       glapi_gentable.lo
cc: warning: argument unused during compilation: '-fno-builtin-memcmp'
  CC       glapi_getproc.lo
cc: warning: argument unused during compilation: '-fno-builtin-memcmp'
  CC       glapi_nop.lo
cc: warning: argument unused during compilation: '-fno-builtin-memcmp'
  CC       glthread.lo
cc: warning: argument unused during compilation: '-fno-builtin-memcmp'
  CC       glapi.lo
cc: warning: argument unused during compilation: '-fno-builtin-memcmp'
  CC       u_current.lo
cc: warning: argument unused during compilation: '-fno-builtin-memcmp'
  CC       u_execmem.lo
cc: warning: argument unused during compilation: '-fno-builtin-memcmp'
  CCLD     libglapi.la
gmake[3]: Leaving directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7/src/mapi/glapi'
Making all in gtest
gmake[3]: Entering directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7/src/gtest'
gmake[3]: Nothing to be done for `all'.
gmake[3]: Leaving directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7/src/gtest'
Making all in glsl
gmake[3]: Entering directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7/src/glsl'
gmake  all-recursive
gmake[4]: Entering directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7/src/glsl'
Making all in builtin_compiler
gmake[5]: Entering directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7/src/glsl/builtin_compiler'
  CXX      glsl_lexer.lo
c++: warning: argument unused during compilation: '-fno-builtin-memcmp'
In file included from glsl_lexer.ll:27:
In file included from ../../../src/glsl/ast.h:30:
In file included from ../../../src/glsl/glsl_parser_extras.h:35:
In file included from ../../../src/glsl/glsl_symbol_table.h:34:
In file included from ../../../src/glsl/ir.h:33:
In file included from ../../../src/glsl/glsl_types.h:31:
../../../src/mesa/main/mtypes.h:3420:4: error: unknown type name 'GLDEBUGPROCARB'
   GLDEBUGPROCARB Callback;
   ^
1 error generated.
gmake[5]: *** [glsl_lexer.lo] Error 1
gmake[5]: Leaving directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7/src/glsl/builtin_compiler'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7/src/glsl'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7/src/glsl'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/ram/usr/ports/graphics/dri/work/Mesa-9.1.7'
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/dri
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20140224-64106-lyzis3 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=dri-7.6.1_3,2 UPGRADE_PORT_VER=7.6.1_3,2 make
** Fix the problem and try again.
--->  Upgrading 'libGL-7.6.1_4' to 'libGL-9.1.7' (graphics/libGL)
--->  Building '/usr/ports/graphics/libGL'
===>  Cleaning for libGL-9.1.7

[snip]

gmake[5]: Entering directory `/ram/usr/ports/graphics/libGL/work/Mesa-9.1.7/src/glsl/builtin_compiler'
  CXX      glsl_lexer.lo
c++: warning: argument unused during compilation: '-fno-builtin-memcmp'
In file included from glsl_lexer.ll:27:
In file included from ../../../src/glsl/ast.h:30:
In file included from ../../../src/glsl/glsl_parser_extras.h:35:
In file included from ../../../src/glsl/glsl_symbol_table.h:34:
In file included from ../../../src/glsl/ir.h:33:
In file included from ../../../src/glsl/glsl_types.h:31:
../../../src/mesa/main/mtypes.h:3420:4: error: unknown type name 'GLDEBUGPROCARB'
   GLDEBUGPROCARB Callback;
   ^
1 error generated.
gmake[5]: *** [glsl_lexer.lo] Error 1
gmake[5]: Leaving directory `/ram/usr/ports/graphics/libGL/work/Mesa-9.1.7/src/glsl/builtin_compiler'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory `/ram/usr/ports/graphics/libGL/work/Mesa-9.1.7/src/glsl'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory `/ram/usr/ports/graphics/libGL/work/Mesa-9.1.7/src/glsl'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/ram/usr/ports/graphics/libGL/work/Mesa-9.1.7/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/ram/usr/ports/graphics/libGL/work/Mesa-9.1.7'
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/libGL
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20140224-64106-b2y5ci env UPGRADE_TOOL=portupgrade UPGRADE_PORT=libGL-7.6.1_4 UPGRADE_PORT_VER=7.6.1_4 make
** Fix the problem and try again.

[snip]

pkg-static: lstat(/ram/usr/ports/net-im/kopete-kde4/work/stage/usr/local/share/apps/kopete_otr/): No such file or directory
*** Error code 74

Stop.
make[2]: stopped in /usr/ports/net-im/kopete-kde4
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/net-im/kopete-kde4
*** Error code 1

Stop.
make: stopped in /usr/ports/net-im/kopete-kde4
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20140224-64106-1n1zyt6 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=kopete-4.10.5_1 UPGRADE_PORT_VER=4.10.5_1 make -DINSTALLS_DEPENDS reinstall
--->  Restoring the old version
Installing kopete-4.10.5_1... done
** Fix the installation problem and try again.
--->  Skipping 'net/kdenetwork4' (kdenetwork-4.10.5_2) because a requisite package 'kde-workspace-4.10.5_2' (x11/kde4-workspace) failed (specify -k to force)
--->  Skipping 'deskutils/kdeplasma-addons' (kdeplasma-addons-4.10.5_1) because a requisite package 'kde-workspace-4.10.5_2' (x11/kde4-workspace) failed (specify -k to force)
--->  Skipping 'x11-servers/xorg-server' (xorg-server-1.7.7_11,1) because a requisite package 'libGL-7.6.1_4' (graphics/libGL) failed (specify -k to force)
--->  Skipping 'x11-drivers/xf86-video-intel' (xf86-video-intel-2.7.1_6) because a requisite package 'xorg-server-1.7.7_11,1' (x11-servers/xorg-server) failed (specify -k to force)
--->  Skipping 'x11-drivers/xf86-video-ati' (xf86-video-ati-6.14.6_1) because a requisite package 'xorg-server-1.7.7_11,1' (x11-servers/xorg-server) failed (specify -k to force)
** Listing the failed packages (-:ignored / *:skipped / !:failed)
	- misc/kde4-shared-mime-info (port deleted)
	! graphics/dri (dri-7.6.1_3,2)	(new compiler error)
	! graphics/libGL (libGL-7.6.1_4)	(new compiler error)
	! x11/kde4-workspace (kde-workspace-4.10.5_2)	(unknown build error)
	* x11-themes/kdeartwork4 (kdeartwork-4.10.5_1)
	* x11-clocks/kdetoys4 (kdetoys-4.10.5_1)
	! net-im/kopete-kde4 (kopete-4.10.5_1)	(install error)
	* net/kdenetwork4 (kdenetwork-4.10.5_2)
	* deskutils/kdeplasma-addons (kdeplasma-addons-4.10.5_1)
	* x11-servers/xorg-server (xorg-server-1.7.7_11,1)
	* x11-drivers/xf86-video-intel (xf86-video-intel-2.7.1_6)
	* x11-drivers/xf86-video-ati (xf86-video-ati-6.14.6_1)

I doubt it's an issue with the port but more likely something wrong I am doing. Any pointers would be most welcome :r

I get the feeling I've hosed my system.

Should I just give in and switch to using binaries?
 
Re: Error updating ports

Thanks for the push - it was needed! Up and running again after some time compiling KDE. Also saw my first broken port but found a workaround on the mailing lists in no time. Thanks for all the replies :)
 
Back
Top