Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Mar 2017 09:48:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 218029] Scripts/do-depends.sh: fix output list of dependencies "not satisfied in the XYZ phase" in error message
Message-ID:  <bug-218029-13-KTxy8Ep93S@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-218029-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-218029-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218029

--- Comment #2 from Andreas Sommer <andreas.sommer87@googlemail.com> ---
Well, it simply adds an output line saying which patterns were unsatisfied.=
 I
guess that in 99% of port developers' cases, this simply never happens. In =
my
example, I had a custom setup (poudriere with own changes) which led to the=
se
dependency errors:

Without patch:

> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<pha=
se: test           >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> =3D=3D=3D>  Staging for hhdate-2.1.0
> =3D=3D=3D>   Generating temporary packing list
> install  -m 0644 /wrkdirs/usr/ports/devel/hhdate/work/date-d110f07f596d86=
e63daa2db41f1d52c05f4a179c/date.h /wrkdirs/usr/ports/devel/hhdate/work/stag=
e/usr/local/include/
> =3D=3D=3D=3D> Compressing man pages (compress-man)
> =3D=3D=3D>  Testing for hhdate-2.1.0
> =3D=3D=3D>   hhdate-2.1.0 depends on file: /usr/local/bin/clang39 - not f=
ound
> =3D=3D=3D>   Installing existing package /packages/All/llvm39-3.9.1_2.txz
> [porttesting-devel] Installing llvm39-3.9.1_2...
> [porttesting-devel] `-- Installing libxml2-2.9.4...
> [porttesting-devel] `-- Extracting libxml2-2.9.4: .......... done
> [porttesting-devel] Extracting llvm39-3.9.1_2: .......... done
> =3D=3D=3D>   hhdate-2.1.0 depends on file: /usr/local/bin/clang39 - found
> =3D=3D=3D>   Returning to build of hhdate-2.1.0
> =3D=3D=3D>   dp_STRICT_DEPENDS set - Not installing missing dependencies.
>        This means a dependency is wrong since it was not satisfied in the=
 TEST_DEPENDS phase.
> *** Error code 1

With patch:

> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<pha=
se: test           >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> =3D=3D=3D>  Staging for hhdate-2.1.0
> =3D=3D=3D>   Generating temporary packing list
> install  -m 0644 /wrkdirs/usr/ports/devel/hhdate/work/date-d110f07f596d86=
e63daa2db41f1d52c05f4a179c/date.h /wrkdirs/usr/ports/devel/hhdate/work/stag=
e/usr/local/include/hhdate/
> =3D=3D=3D=3D> Compressing man pages (compress-man)
> =3D=3D=3D>  Testing for hhdate-2.1.0
> =3D=3D=3D>   hhdate-2.1.0 depends on file: /usr/local/bin/clang39 - not f=
ound
> =3D=3D=3D>   Installing existing package /packages/All/llvm39-3.9.1_2.txz
> [porttesting-devel] Installing llvm39-3.9.1_2...
> [porttesting-devel] `-- Installing libxml2-2.9.4...
> [porttesting-devel] `-- Extracting libxml2-2.9.4: .......... done
> [porttesting-devel] Extracting llvm39-3.9.1_2: .......... done
> =3D=3D=3D>   hhdate-2.1.0 depends on file: /usr/local/bin/clang39 - found
> =3D=3D=3D>   Returning to build of hhdate-2.1.0
> =3D=3D=3D>   dp_STRICT_DEPENDS set - Not installing missing dependencies.
>        This means a dependency is wrong since it was not satisfied in the=
 TEST_DEPENDS phase.
>        List of not found patterns: /usr/local/bin/clang39
> *** Error code 1

I believe the output is helpful because if something catastrophic like that
happens, you want verbose output of what exactly wasn't satisfied (there co=
uld
be many patterns defined).

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218029-13-KTxy8Ep93S>