Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] patches from pkgsrc for discussion, based on 1.6.1
  • From: Christoph Willing <chris.willing@xxxxxxxxx>
  • Date: Mon, 29 Apr 2019 18:03:21 +1000
  • Autocrypt: addr=chris.willing@xxxxxxxxx; keydata= mQINBFQTj1EBEACy2jYbY8SQK4djhIEB+IUQzKEFyM80Nmpi0YXf6taFB7qrqyxEoDky6QN0 twKgD+IvKkgDdndKQ/x69c4i/rjvImpAdJaqz8dYdDYhYEgAbOjpZFXkbbvtyGEjfAtpy4Ho nZi5uZa5UiMgJqVEePXJeojV3D9qvXhJXZj5rUNSpNSz+KBfRFAv2Fw5nZ1v3SeHBivCx7JJ DLizKGg09uI4mH86TMOEYF8fLCDBFUWw3DMdi7riuZ6WNO6zjnV4Jtcnidx78GTP4ybzCNCv /3s3vtFvhtz8yvVa7hg6nRpvLEXtlD2hyYXr0PmNpwa/Ba7BsNyUUZ3W6/FRmyldhYG2OiCf Iln/Gy4qsZkNjadVByklr1g4Klk4NlTw/GxzyMw3nGrlbzjwpXtp9+12RtOlsNPY5OcBZr/C dd07bjsr2+7+gAVjmGX6RCW3qVhOF/dMU/iAK8qRmGycx1fEVkCsJB5ZxXZNv/sdRjbOsrul I7zV+dCNxn3KXLXAXkYydo9BNR66LRXEMtPOp+Z97bpBdLToq5RnzAIhRPzhVeISfMQP2eE2 eFlV3glyKQT6wjQSU4DBN1Syb4Kg503Z7G+O6ng/5BF93WkyWVU7RC9aRyZD4upfLLWOrhmO PgToUemOAUusNwwNSVixVtRuEE+mbnHh+QwKTI2dqkJxwD9Q5wARAQABtCtDaHJpc3RvcGgg V2lsbGluZyA8Y2hyaXMud2lsbGluZ0BsaW51eC5jb20+iQI4BBMBAgAiBQJZBlrkAhsDBgsJ CAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRARv6wXE6izIktTD/9cn0tAu4JX61yCSfkYD+ou ywyBPxOEwx+h4oohm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9fM Y4+Gij7FBe8S95wWeuZMQMwpTMH8Lhc8qZY8zF/HkekmE5CJake2DodKgr5EKKza5zGZYjy9 DF8VwLBQ8ZmY3teqTvJUJSwN4E6YvMvHu/TRaq6eTQKLjge08z4XFIzqzOm0VKsonnb2PsBY KiqRHSArelvlCxXUkXNbO/hpe8x4+z1FiGFKhPv6/66Wow2zXuxfnfMjC34H+FpSa4CEHCNR dM4qDCkyOZD+NQNX+hJa6ljWeHKnxANZvbKwoSBkN3GMd0pV5rDZDUtUYfpN+hMAEQEAAYkC HwQYAQIACQUCVBOQrwIbDAAKCRARv6wXE6izIkyFEACm3lWuhyhEq0MSFCncJLuswO0zsHSd ZYmMIvlpDNEL7a78c+vicEgDB3Jr5CWpQC85tJSAx7FyeeeRf7pCzJDYPxX0i336zjvlIMkS 0m5iAySJ19bpKT2VyJyRB8XRV7W0iu9OyD+FJOyhIBf49I+5EP2xAxoSElXPDV+YUmaamCZz jFDa1G2/6IsvZWmll2atm1ARhtIEmohYmJEZdImi/KYq7IGqLz+EQaAPut4QddL4mZRWB8uE DBFHLmzG0xw8Nc46g7NuYAs+l42csWk8URnl7SJlzx/18Ecx+swpWlWikbWAH1FiGK9izOZL Oe5Bvb4UC4pvZxUXYqHunhcdh7tdZ11tMJYlmjL7fQljpGTxPObv+WlUjkoT0RpPLYvuJswX ULMS9IkXGfpWlSfTDfGWKWYhoh+/yguNsShnJ5xOqrV5++nfGG3zm+VZWF/57n0+D7ZkaKL1 mFUy27he9bVIFeGWe4/J3dv1sjIZ0r9F+eiCgJUMY4SPcX1izRAoy1xExa0G7u/U7N2ULWM3 NnAIPbkSgjpIskSxtVy/Lb6jYGab+GRhCARCI4f1vSUs6QcAGXZPgyjreI+BC9V/0fKkwg6n xbGJCKPAu28P34Dx3iyDlJyrCldE3daNKgae03BLDqTNYyYxA7XihIUMJKtn67LRsRE5wvdv 5FuF+A==
  • Delivered-to: mosquitto-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/mosquitto-dev>
  • List-help: <mailto:mosquitto-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/mosquitto-dev>, <mailto:mosquitto-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/mosquitto-dev>, <mailto:mosquitto-dev-request@eclipse.org?subject=unsubscribe>
  • Openpgp: preference=signencrypt
  • User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 29/4/19 8:43 am, Greg Troxel wrote:
> Christoph Willing <chris.willing@xxxxxxxxx> writes:
> 
>> From the pkg-config manpage (about PKG_CONFIG_PATH):
>>
>> "the default is libdir/pkgconfig:datadir/pkgconfig where libdir is the
>> libdir for pkg-config and datadir is the datadir for pkg-config when it
>> was installed."
>>
>> On Slackware64, libdir is lib64 so that's where pkgconfig has
>> traditionally been located (/usr/lib64/pkgconfig). However I notice that
>> some packages are installing pkgconfig into datadir (which becomes
>> /usr/share/pkgconfig here).
>>
>> Clearly, according to the manpage, both locations will work although I'm
>> unsure as to what the difference actually means and why would one be
>> chosen in preference to the other. Given that both locations are
>> acceptable, the patch to revert back to libdir/pkgconfig may not be
>> necessary.
> 
> Thanks.  Another question is if it can be proven that the pkgconfig file
> for a given package will be the same on all architectures.  This is also
> necessary for a .pc file to be safely installed in
> ${PREFIX}/share/pkgconfig, even if it's true that this location will be
> searched.
> 

Well I think it's contents should differ according to the architecture.
That's partly what it exists for, to point to correct library locations
(which may be architecture dependent).

Speaking of which, due to this discussion I was checking the contents of
the installed libmosquitto.pc and libmosquittopp.pc here and found both
to be wrong. They both say:
    libdir=${exec_prefix}/lib

which is OK for many systems but not all, in particular those with lib
or lib64 directories depending on architecture.


Roger,
   Would you consider including the following change please? It will
change libmosquitto.pc and libmosquittopp.pc only if LIB_SUFFIX is
specified during configuration e.g. -DLIB_SUFFIX=64 (as we commonly do
on Slackware 64bit). If LIB_SUFFIX is not configured, nothing changes.

Thanks,
chris

--- libmosquitto.pc.in.orig     2019-04-27 02:07:59.000000000 +1000
+++ libmosquitto.pc.in  2019-04-29 17:33:00.802053837 +1000
@@ -1,7 +1,7 @@
 prefix=@CMAKE_INSTALL_PREFIX@
 exec_prefix=${prefix}
 includedir=${prefix}/include
-libdir=${exec_prefix}/lib
+libdir=${exec_prefix}/lib@LIB_SUFFIX@

 Name: mosquitto
 Description: mosquitto MQTT library (C bindings)
--- libmosquittopp.pc.in.orig   2019-04-27 02:07:59.000000000 +1000
+++ libmosquittopp.pc.in        2019-04-29 17:33:23.034679206 +1000
@@ -1,7 +1,7 @@
 prefix=@CMAKE_INSTALL_PREFIX@
 exec_prefix=${prefix}
 includedir=${prefix}/include
-libdir=${exec_prefix}/lib
+libdir=${exec_prefix}/lib@LIB_SUFFIX@

 Name: mosquittopp
 Description: mosquitto MQTT library (C++ bindings)


Back to the top