Date: Sat, 16 May 2020 18:10:42 +0200 From: Matthias Andree <matthias.andree@gmx.de> To: freebsd-ports@freebsd.org Cc: Xavier Humbert <xavier@groumpf.org>, Jakob Breivik Grimstveit <jakob@grimstveit.no>, Kurt Jaeger <pi@freebsd.org>, Po-Chuan Hsieh <sunpoet@FreeBSD.org> Subject: Re: Build error net/librsync (unable to find library -lpopt) Message-ID: <2561e742-ba01-393a-29e4-33907de2413f@gmx.de> In-Reply-To: <36af14f0-de6b-d0a5-cf65-ec153ad8445a@gmx.de> References: <CAFVH1KXcyMR7nHC0xeAO=Wkdm%2BCrt=d6p1QyrAaeNfM18K6qrg@mail.gmail.com> <20200516140559.GX39563@home.opsec.eu> <36af14f0-de6b-d0a5-cf65-ec153ad8445a@gmx.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 16.05.20 um 17:13 schrieb Matthias Andree: > Am 16.05.20 um 16:05 schrieb Kurt Jaeger: >> Hi! >> >>> Problems building net/librsync, please advice :-) >>> >>> Looking forward to having duplicity installed! :) >> Please try to use poudriere to build it. I tested it, works fine. >> > Kurt, > > That's reaching too short. I can see that it build in poudriere, but it= > appears to do something differently from a live system: > >> =C2=A0=3D=3D=3D>=C2=A0 Performing out-of-source build >> -/bin/mkdir -p /usr/ports.svn/net/librsync/work/.build >> +/bin/mkdir -p /wrkdirs/usr/ports/net/librsync/work/.build >> =C2=A0-- The C compiler identification is Clang 8.0.1 >> =C2=A0-- Check for working C compiler: /usr/local/libexec/ccache/cc >> =C2=A0-- Check for working C compiler: /usr/local/libexec/ccache/cc - = works >> [...] >> --- CMAKE_SYSTEM =3D FreeBSD-12.1-RELEASE-p5 >> +-- CMAKE_SYSTEM =3D FreeBSD-12.1-RELEASE-p4 >> +-- Found POPT: /usr/local/lib/libpopt.so =C2=A0 >> =C2=A0-- Found components for POPT >> =C2=A0-- POPT_ROOT_DIR=C2=A0 =3D /usr/local >> =C2=A0-- POPT_INCLUDE_DIRS=C2=A0 =3D /usr/local/include >> --- POPT_LIBRARIES =3D popt >> +-- POPT_LIBRARIES =3D /usr/local/lib/libpopt.so >> =C2=A0-- Found BZip2: /usr/lib/libbz2.so (found version "1.0.8") >> =C2=A0-- Looking for BZ2_bzCompressInit >> =C2=A0-- Looking for BZ2_bzCompressInit - found > And the POPT_LIBRARIES=3D... difference is breaking the build. Adding > LDFLAGS+=3D-L${LOCALBASE}/lib fixes the ports build for me. Now let's g= o > for the root cause... > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org= " Update: (sunpoet@ I hope you don't mind my fixing your port) - we've had an older bug report from 2020-04-10, =C2=A0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245514 - Franco Fichtner had provided a similar fix as of 2020-04-29, =C2=A0 the maintainer (sunpoet@, on Cc:) hadn't responded since, =C2=A0 so I was permitted to commit; fix committed in r535475. =C2=A0 You can tell that you have the current version if after update =C2=A0 you can see a ${CHMOD} near pre-test: at the end of =C2=A0 net/librsync/Makefile. - upstream bug report filed against what I believe to be the culprit, =C2=A0 the upstream file cmake/FindPOPT.cmake seems to be broken =C2=A0 in case pkgconf or pkg-config or equivalent are found =C2=A0 during "make configure" (i. e. while cmake is running). HTH. If not, please reopen and follow up on Bug 245514 above. Regards Matthias
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2561e742-ba01-393a-29e4-33907de2413f>