Date: Fri, 23 Jun 2023 06:20:58 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 272155] graphics/R-cran-jpeg: Fails to build when math/R is build without JPEG support Message-ID: <bug-272155-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272155 Bug ID: 272155 Summary: graphics/R-cran-jpeg: Fails to build when math/R is build without JPEG support Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: florian@wagner-flo.de CC: jrm@freebsd.org, ygy@freebsd.org CC: jrm@freebsd.org, ygy@freebsd.org Created attachment 242942 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D242942&action= =3Dedit Fix I've already written to the port maintainer directly but haven't heard back= in two month. I'm maintaining my own built of FreeBSD ports and for that I tend to disabl= e a bunch of options here and there to get a learner dependency tree. One of th= ese is unsetting JPEG when building math/R. Doing that makes building graphics/R-cran-jpeg fail: gmake[1]: Entering directory '/wrkdirs/usr/ports/graphics/R-cran-jpeg/work/jpeg/src' cc -I"/usr/local/lib/R/include" -DNDEBUG -DLIBICONV_PLUG -I/usr/local/include -isystem /usr/local/include -fpic -O2 -pipe=20 -DLIBICONV_PLUG -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -c read.c -o read.o In file included from read.c:1: ./rjcommon.h:11:10: fatal error: 'jpeglib.h' file not found #include <jpeglib.h> The reason for this is, that math/R without JPEG will not depend on jpeg-tu= rbo and this it will not be implicitly installed when building CRAN ports. So there'll be no jpeglib.h to be found. On default (meaning JPEG option set f= or math/R) it'll be there "coincidentally" so everything works. The fix for this is the explicitly USES=3Djpeg in graphics/R-cran-jpeg. Pat= ch is attached. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272155-7788>