Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Feb 2025 12:19:23 -0300
From:      Jose Luis Duran <jlduran@freebsd.org>
To:        Cy Schubert <Cy.Schubert@cschubert.com>
Cc:        src-committers@freebsd.org, dev-commits-src-all@freebsd.org,  dev-commits-src-main@freebsd.org
Subject:   Re: git: 88d448ec815c - main - mk: Move vm stack test debug symbols
Message-ID:  <CAPwQLcdwhAygJND8fyPKjpq%2BBz4-EDZn_KN-admitcJ7J2QP-g@mail.gmail.com>
In-Reply-To: <20250204151630.3A038223@slippy.cwsent.com>
References:  <202502041448.514EmPpS004525@gitrepo.freebsd.org> <20250204151630.3A038223@slippy.cwsent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thank you, it was a last-minute mistake! Will fix it!

On Tue, Feb 4, 2025 at 12:16=E2=80=AFPM Cy Schubert <Cy.Schubert@cschubert.=
com> wrote:
>
> In message <202502041448.514EmPpS004525@gitrepo.freebsd.org>, Jose Luis
> Duran w
> rites:
> > The branch main has been updated by jlduran:
> >
> > URL: https://cgit.FreeBSD.org/src/commit/?id=3D88d448ec815c1fda27be9484=
6f88ccd9
> > 6251febd
> >
> > commit 88d448ec815c1fda27be94846f88ccd96251febd
> > Author:     Jose Luis Duran <jlduran@FreeBSD.org>
> > AuthorDate: 2025-02-04 14:47:24 +0000
> > Commit:     Jose Luis Duran <jlduran@FreeBSD.org>
> > CommitDate: 2025-02-04 14:47:24 +0000
> >
> >     mk: Move vm stack test debug symbols
> >
> >     Avoid the creation of a /usr/tests/sys/vm/stack/.debug directory by
> >     placing sys/vm/stack test debug symbols under /usr/lib/debug.
> >
> >     Reviewed by:    emaste
> >     Approved by:    emaste (mentor)
> >     MFC after:      1 week
> >     Differential Revision:  https://reviews.freebsd.org/D48796
> > ---
> >  ObsoleteFiles.inc   | 3 +++
> >  share/mk/bsd.lib.mk | 3 ++-
> >  2 files changed, 5 insertions(+), 1 deletion(-)
> >
> > diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc
> > index e17ca9608cca..aff94af72c17 100644
> > --- a/ObsoleteFiles.inc
> > +++ b/ObsoleteFiles.inc
> > @@ -51,6 +51,9 @@
> >  #   xargs -n1 | sort | uniq -d;
> >  # done
> >
> > +# 20250204: sys/vm/stack test symbols moved to /usr/lib/debug
> > +OLD_DIRS+=3Dusr/tests/sys/vm/stack/.debug
> > +
> >  # 20250129: libdevinfo bumped to version 7
> >  OLD_LIBS+=3Dlib/libdevinfo.so.6
> >
> > diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
> > index cf8057907a1f..a4b2e4d11125 100644
> > --- a/share/mk/bsd.lib.mk
> > +++ b/share/mk/bsd.lib.mk
> > @@ -254,7 +254,8 @@ SHLIB_NAME_FULL=3D${SHLIB_NAME}.full
> >  # Use ${DEBUGDIR} for base system debug files, else .debug subdirector=
y
> >  .if ${_SHLIBDIR} =3D=3D "/boot" ||\
> >      ${SHLIBDIR:C%/lib(/.*)?$%/lib%} =3D=3D "/lib" ||\
> > -    ${SHLIBDIR:C%/usr/(tests/)?lib(32|exec)?(/.*)?%/usr/lib%} =3D=3D "=
/usr/lib"
> > +    ${SHLIBDIR:C%/usr/lib(32|exec)?(/.*)?%/usr/lib%} =3D=3D "/usr/lib"=
 ||
> > +    ${SHLIBDIR:C%/usr/tests(/.*)?%/usr/tests%} =3D=3D "/usr/tests"
> >  DEBUGFILEDIR=3D${DEBUGDIR}${_SHLIBDIR}
> >  .else
> >  DEBUGFILEDIR=3D${_SHLIBDIR}/.debug
> >
>
> This broke buildworld.
>
> make[5]: "/opt/src/git-src/share/mk/bsd.lib.mk" line 255: Malformed
> conditional '${_SHLIBDIR} =3D=3D "/boot" || ${SHLIBDIR:C%/lib(/.*)?$%/lib=
%} =3D=3D
> "/lib" || ${SHLIBDIR:C%/usr/lib(32|exec)?(/.*)?%/usr/lib%} =3D=3D "/usr/l=
ib" ||'
>         in /opt/src/git-src/kerberos5/lib/libasn1/Makefile:129
>         in directory /opt/src/git-src/kerberos5/lib/libasn1
>
> This patch will fix it.
>
> diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
> index a4b2e4d11125..b7d6b333523b 100644
> --- a/share/mk/bsd.lib.mk
> +++ b/share/mk/bsd.lib.mk
> @@ -254,7 +254,7 @@ SHLIB_NAME_FULL=3D${SHLIB_NAME}.full
>  # Use ${DEBUGDIR} for base system debug files, else .debug subdirectory
>  .if ${_SHLIBDIR} =3D=3D "/boot" ||\
>      ${SHLIBDIR:C%/lib(/.*)?$%/lib%} =3D=3D "/lib" ||\
> -    ${SHLIBDIR:C%/usr/lib(32|exec)?(/.*)?%/usr/lib%} =3D=3D "/usr/lib" |=
|
> +    ${SHLIBDIR:C%/usr/lib(32|exec)?(/.*)?%/usr/lib%} =3D=3D "/usr/lib" |=
|\
>      ${SHLIBDIR:C%/usr/tests(/.*)?%/usr/tests%} =3D=3D "/usr/tests"
>  DEBUGFILEDIR=3D${DEBUGDIR}${_SHLIBDIR}
>  .else
>
>
> --
> Cheers,
> Cy Schubert <Cy.Schubert@cschubert.com>
> FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  https://FreeBSD.org
> NTP:           <cy@nwtime.org>    Web:  https://nwtime.org
>
>                         e^(i*pi)+1=3D0
>
>


--=20
Jose Luis Duran



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPwQLcdwhAygJND8fyPKjpq%2BBz4-EDZn_KN-admitcJ7J2QP-g>