pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/56186: libarchive: fix dirfd() check



The following reply was made to PR pkg/56186; it has been noted by GNATS.

From: "Lehel Bernadt (lbernadt)" <Lehel.Bernadt%oneidentity.com@localhost>
To: "gnats-bugs%netbsd.org@localhost" <gnats-bugs%netbsd.org@localhost>
Cc: "pkg-manager%netbsd.org@localhost" <pkg-manager%netbsd.org@localhost>,
	"gnats-admin%netbsd.org@localhost" <gnats-admin%netbsd.org@localhost>, "pkgsrc-bugs%netbsd.org@localhost"
	<pkgsrc-bugs%netbsd.org@localhost>
Subject: Re: pkg/56186: libarchive: fix dirfd() check
Date: Sun, 23 May 2021 19:14:01 +0000

 On Fri, May 21, 2021 at 06:45:01AM +0000, nia wrote:
 >
 > You don't need to add anything to mk.conf, we can add it to the
 > pkgsrc Makefile.
 >
 > autotools allows overriding the result of configure tests, that's
 > one of its advantages.
 >
 > In pkgsrc, we can also add OS-specific overrides, e.g.
 >
 > CONFIGURE_ENV.SunOS+=3D   ac_cv_func_epoll_create=3Dno
 > CONFIGURE_ENV.SunOS+=3D   ac_cv_func_epoll_ctl=3Dno
 > CONFIGURE_ENV.SunOS+=3D   ac_cv_func_epoll_wait=3Dno
 >
 > This sets a specific variable in the generated ./configure script
 > so its result will be "cached" (already set).
 >
 > This _should_ be fixed in pkgsrc, IMO, libarchive is an essential
 > library. My reply did not mean "fix it locally yourself", but rather
 > that it should be fixed in pkgsrc in a different way.
 
 I have some workarounds like this in my mk.conf:
 
 .if ${PKGPATH} =3D=3D converters/libiconv
 CFLAGS+=3D                -fgnu89-inline
 .endif
 
 that's why my first thought was to add the configure override here for myse=
 lf=20
 (I didn't know about the OS-specific part).
 
 But having it in the pkgsrc Makefile is completely fine by me of course.
 
 I will report the issue upstream as well though to have it permanently fixe=
 d.
 
 Regards,
 Lehel=
 


Home | Main Index | Thread Index | Old Index