Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2008 15:17:24 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        sem@freebsd.org
Cc:        ports@freebsd.org
Subject:   Re: portupgrade 2.4.6,2 ignores build failure
Message-ID:  <20080724121724.GL97161@deviant.kiev.zoral.com.ua>
In-Reply-To: <20080724121029.GK97161@deviant.kiev.zoral.com.ua>
References:  <20080724121029.GK97161@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--1hKfHPzOXWu1rh0v
Content-Type: text/plain; charset=koi8-r
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 24, 2008 at 03:10:29PM +0300, Kostik Belousov wrote:
> I was updating the policykit port, that failed. It seems that portupgrade
> ignored the build error and tried to process further.
>=20
> kit-string.c  -fPIC -DPIC -o .libs/kit-string.o
> kit-string.c:141: error: redefinition of 'strndup'
> kit-string.c:119: error: previous definition of 'strndup' was here
> gmake[3]: *** [kit-string.lo] =EF=DB=C9=C2=CB=C1 1
> gmake[3]: Leaving directory `/usr/home/portsworkdir/usr/bsd/ports/sysutil=
s/polic
> ykit/work/PolicyKit-0.9/src/kit'
> gmake[2]: *** [all-recursive] =EF=DB=C9=C2=CB=C1 1
> gmake[2]: Leaving directory `/usr/home/portsworkdir/usr/bsd/ports/sysutil=
s/policykit/work/PolicyKit-0.9/src'
> gmake[1]: *** [all-recursive] =EF=DB=C9=C2=CB=C1 1
> gmake[1]: Leaving directory `/usr/home/portsworkdir/usr/bsd/ports/sysutil=
s/policykit/work/PolicyKit-0.9'
> gmake: *** [all] =EF=DB=C9=C2=CB=C1 2
> *** Error code 2
>=20
> Stop in /usr/bsd/ports/sysutils/policykit.
> --->  Backing up the old version
> ^C--->  Upgrading 'xf86-video-intel-2.2.1_1' to 'xf86-video-intel-2.3.2' =
(x11-drivers/xf86-video-intel)

Even worse. I had specified both policykit and policykit-gnome on the
portupgrade command file. Despite policykit being marked as dependency
for policykit-gnome:

alf% pkg_info -r policykit-gnome-0.8_1 | grep pol
Information for policykit-gnome-0.8_1:
Dependency: policykit-0.9

and policykit failed (at least, I stopped the process by ^C), portupgrade
started the policykit-gnome build. And now, look at the log:

rization.Tpo -c -o polkit_gnome_authorization-polkit-gnome-authorization.o =
`test -f 'polkit-gnome-authorization.c' || echo './'`polkit-gnome-authoriza=
tion.c  =20
^Cgmake[3]: *** =F5=C4=C1=CC=D1=C5=D4=D3=D1 =C6=C1=CA=CC `polkit_gnome_auth=
orization-polkit-gnome-authorization.o'
gmake[3]: *** [polkit_gnome_authorization-polkit-gnome-authorization.o] Int=
errupt: 2=20
gmake[2]: *** [all] Interrupt: 2
gmake[1]: *** [all-recursive] Interrupt: 2
gmake: *** [all] Interrupt: 2
--->  Backing up the old version
--->  Uninstalling the old version
^C  =20
Interrupted.
--->  Installing the new version via the port with make flags: WANT_OPENLDA=
P_VER=3D24 WANT_OPENLDAP_SASL=3Dyes WANT_FAM_SYSTEM=3Dfam WITH_BDB_VER=3D46=
 "WITH_GECKO=3D\"firefox\" WITH_UNIXODBC=3Dyes GNUSTEP_WITH_GCC42=3Dyes EMA=
CS_PORT_NAME=3Demacs22 DISABLE_VULNERABILITIES=3Dyes NO_IGNORE=3Dyes"
=3D=3D=3D>  Building for policykit-gnome-0.9
gmake  all-recursive
gmake[1]: Entering directory `/usr/home/portsworkdir/usr/bsd/ports/sysutils=
/policykit-gnome/work/PolicyKit-gnome-0.9'
Making all in data
gmake[2]: Entering directory `/usr/home/portsworkdir/usr/bsd/ports/sysutils=
/policykit-gnome/work/PolicyKit-gnome-0.9/data'
Making all in src
^Cgmake[1]: *** [all-recursive] Interrupt: 2
gmake: *** [all] Interrupt: 2
^C--->  Cleaning out obsolete shared libraries

The error results for any failed stage is ignored, and portupgrade blindly
goes forward.

--1hKfHPzOXWu1rh0v
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAkiIctQACgkQC3+MBN1Mb4j1nwCgzjfQWPtWE0NNI1A5QsB3zVpT
A84An1NrIS86k55ak0SPFz2/kaE67qC1
=zt8D
-----END PGP SIGNATURE-----

--1hKfHPzOXWu1rh0v--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080724121724.GL97161>