Re: git: f3caf742108b - main - x11/mate-screensaver: Fix PAM build

From: Eric Turgeon <ericturgeon.bsd_at_gmail.com>
Date: Thu, 30 Dec 2021 14:36:44 UTC
Do we have an equivalent of security/_pam_macros.h?

*Eric Turgeon*


On Wed, Dec 29, 2021 at 11:42 PM Cy Schubert <Cy.Schubert@cschubert.com>
wrote:

> This commit only fixed a compile time error, include file
> security/_pam_macros.h not found (discovered by my poudriere build).
> security/_pam_macros is an include file found only on some distros of
> Linux, a Linuxism. Try it without PAM enabled; the file not found error
> may
> just be the beginning of a multitude of PAM issues.
>
> I'll try to look at it over the next couple days.
>
>
> --
> Cheers,
> Cy Schubert <Cy.Schubert@cschubert.com>
> FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  https://FreeBSD.org
> NTP:           <cy@nwtime.org>    Web:  https://nwtime.org
>
>         The need of the many outweighs the greed of the few.
>
>
> In message <20211230110857.1c0ac0e19e8206cb64a040d7@dec.sakura.ne.jp>,
> Tomoaki
> AOKI writes:
> > Hi.
> > Wondered whih commit to comment but decided to latest.
> > mate-screensaver no longer opens login panel after upgrading from
> > 1.26.0 to 1.26.1.
> >
> > Created Bug 260811 [1].
> >
> > [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260811
> >
> >
> > > The branch main has been updated by cy:
> > >
> > > URL:
> >
> https://cgit.FreeBSD.org/ports/commit/?id=f3caf742108bb552724d4c4dae74b28ea26
> > 6a6a3
> > >
> > > commit f3caf742108bb552724d4c4dae74b28ea266a6a3
> > > Author:     Cy Schubert <cy_at_FreeBSD.org>
> > > AuthorDate: 2021-12-29 03:12:39 +0000
> > > Commit:     Cy Schubert <cy_at_FreeBSD.org>
> > > CommitDate: 2021-12-29 03:12:39 +0000
> > >
> > >     x11/mate-screensaver: Fix PAM build
> > >
> > >     Fix build when PAM enabled; <security/_pam_macros.h> is a Linuxism.
> > > ---
> > >  x11/mate-screensaver/files/patch-helper_pam-helper.c | 10 ++++++++++
> > >  1 file changed, 10 insertions(+)
> > >
> > > diff --git a/x11/mate-screensaver/files/patch-helper_pam-helper.c
> > b/x11/mate-screensaver/files/patch-helper_pam-helper.c
> > > new file mode 100644
> > > index 000000000000..605141fb0e54
> > > --- /dev/null
> > > +++ b/x11/mate-screensaver/files/patch-helper_pam-helper.c
> > > _at__at_ -0,0 +1,10 _at__at_
> > > +--- helper/pam-helper.c.orig       2021-11-15 14:28:47.000000000 -0800
> > > ++++ helper/pam-helper.c    2021-12-28 19:09:39.501645000 -0800
> > > +_at__at_ -33,7 +33,6 _at__at_
> > > +  */
> > > +
> > > + #include <security/pam_appl.h>
> > > +-#include <security/_pam_macros.h>
> > > +
> > > + #include <sys/types.h>
> > > + #include <stdarg.h>
> >
> > --
> > Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>
>
>
>