<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 207: pkg-config includedir is broken</title><link>https://sourceforge.net/p/plplot/bugs/207/</link><description>Recent changes to 207: pkg-config includedir is broken</description><atom:link href="https://sourceforge.net/p/plplot/bugs/207/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 09 May 2024 16:23:18 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/plplot/bugs/207/feed.rss" rel="self" type="application/rss+xml"/><item><title>#207 pkg-config includedir is broken</title><link>https://sourceforge.net/p/plplot/bugs/207/?limit=25#5938</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am one of the maintainers of plplot on openSUSE,  I noticed this and we fixed this for our packages with the following patch:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="gh"&gt;Index: plplot-5.15.0/pkgcfg/plplot-template.pc.in&lt;/span&gt;
&lt;span class="gh"&gt;===================================================================&lt;/span&gt;
&lt;span class="gd"&gt;--- plplot-5.15.0.orig/pkgcfg/plplot-template.pc.in&lt;/span&gt;
&lt;span class="gi"&gt;+++ plplot-5.15.0/pkgcfg/plplot-template.pc.in&lt;/span&gt;
&lt;span class="gu"&gt;@@ -1,6 +1,6 @@&lt;/span&gt;
&lt;span class="gd"&gt;-libdir=@LIB_DIR@&lt;/span&gt;
&lt;span class="gd"&gt;-includedir=@INCLUDE_DIR@&lt;/span&gt;
&lt;span class="gd"&gt;-drvdir=@LIB_DIR@/plplot@PLPLOT_VERSION@/drivers&lt;/span&gt;
&lt;span class="gi"&gt;+libdir=@CMAKE_INSTALL_FULL_LIBDIR@&lt;/span&gt;
&lt;span class="gi"&gt;+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@&lt;/span&gt;
&lt;span class="gi"&gt;+drvdir=@CMAKE_INSTALL_FULL_LIBDIR@/plplot@PLPLOT_VERSION@/drivers&lt;/span&gt;

&lt;span class="w"&gt; &lt;/span&gt;Name: PLplot @PC_SHORT_NAME@
&lt;span class="w"&gt; &lt;/span&gt;Description: Scientific plotting library (@PC_PRECISION@@PC_LONG_NAME@)
&lt;span class="gh"&gt;Index: plplot-5.15.0/CMakeLists.txt&lt;/span&gt;
&lt;span class="gh"&gt;===================================================================&lt;/span&gt;
&lt;span class="gd"&gt;--- plplot-5.15.0.orig/CMakeLists.txt&lt;/span&gt;
&lt;span class="gi"&gt;+++ plplot-5.15.0/CMakeLists.txt&lt;/span&gt;
&lt;span class="gu"&gt;@@ -95,6 +95,8 @@ endif(POLICY CMP0086)&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;# install trees.
&lt;span class="w"&gt; &lt;/span&gt;set(PROJECT_NAMESPACE PLPLOT::)

&lt;span class="gi"&gt;+include(GNUInstallDirs)&lt;/span&gt;
&lt;span class="gi"&gt;+&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;option(USE_WRITEABLE_TARGET_TEST_PREFIX "Option to test library and executable targets which have both writeable and (ALIASed namespaced) read-only versions of their targets in the build tree and namespaced read-only targets in the install tree.  This test prepends a prefix to the writeable version of the target name so as a result any such target referred to in the build tree without a writeable (\"writeable_target_test_prefix_)\") or read-only (\"PLPLOT::\") prefix should be discovered by this test (N.B. unless the unprefixed target reference occurs in CMake logic branches that are unexecuted by the particular configuration options that are chosen which makes this test necessary but not sufficient)." OFF)
&lt;span class="w"&gt; &lt;/span&gt;if(USE_WRITEABLE_TARGET_TEST_PREFIX)
&lt;span class="w"&gt; &lt;/span&gt;  set(WRITEABLE_TARGET writeable_target_test_prefix_)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Just an FYI&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Atri</dc:creator><pubDate>Thu, 09 May 2024 16:23:18 -0000</pubDate><guid>https://sourceforge.net32e2a5e14660fcd42b1308e3c1466be1c573b0e6</guid></item><item><title>pkg-config includedir is broken</title><link>https://sourceforge.net/p/plplot/bugs/207/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The plplot.pc provided by the plplot-devel package on openSUSE has set includedir to &lt;code&gt;include/plplot&lt;/code&gt;. This results in the following when running &lt;code&gt;pkg-config --cflags --libs plplot&lt;/code&gt;: &lt;code&gt;-Iinclude/plplot -lplplot&lt;/code&gt;. This however is wrong, as -Iinclude/plplot will have the compiler looking in &lt;code&gt;&amp;lt;cwd&amp;gt;/include/plplot&lt;/code&gt; instead of &lt;code&gt;/usr/include/plplot&lt;/code&gt;. Other libraries that use pkg-config properly output the absolute path for their includedirs.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Florian "sp1rit"</dc:creator><pubDate>Sun, 19 Nov 2023 14:46:30 -0000</pubDate><guid>https://sourceforge.net061fcb7f5aa6af47ab1f23d04fff46bd7416f053</guid></item></channel></rss>