Package Details: paho-mqtt-c-git 1.3.13.r11.g6b1e202-1

Git Clone URL: https://aur.archlinux.org/paho-mqtt-c-git.git (read-only, click to copy)
Package Base: paho-mqtt-c-git
Description: Eclipse Paho C Client Library for the MQTT Protocol
Upstream URL: https://www.eclipse.org/paho/clients/c/
Licenses: custom:EDL, custom:EPL2
Conflicts: paho-mqtt-c
Provides: paho-mqtt-c
Submitter: codyps
Maintainer: codyps (MagnificentSpam, pogojotz, i1314925)
Last Packager: pogojotz
Votes: 6
Popularity: 0.000000
First Submitted: 2016-05-23 19:53 (UTC)
Last Updated: 2024-02-10 23:03 (UTC)

Dependencies (3)

Required by (12)

Sources (1)

Latest Comments

« First ‹ Previous 1 2

dimytch commented on 2018-10-29 07:42 (UTC)

I've modified PKGBUILD

    package() {
      cd "$srcdir/paho.mqtt.c"
    #  mkdir -p "$pkgdir/usr/lib"
    #  mkdir -p "$pkgdir/usr/bin"
    #  mkdir -p "$pkgdir/usr/include"
      make prefix=/usr DESTDIR="$pkgdir" install
    }

And got errors when packaging.

    ==> Entering fakeroot environment...
    ==> Starting package()...
    mkdir -p build/output/samples
    mkdir -p build/output/test
    echo OSTYPE is Linux
    OSTYPE is Linux
    mkdir -p /home/devuser/i/paho-mqtt-c-git/pkg/paho-mqtt-c-git/usr/include
    install -m 644  build/output/libpaho-mqtt3c.so.1.0 /home/devuser/i/paho-mqtt-c-git/pkg/paho-mqtt-c-git/usr/lib
    install -m 644  build/output/libpaho-mqtt3cs.so.1.0 /home/devuser/i/paho-mqtt-c-git/pkg/paho-mqtt-c-git/usr/lib
    install -m 644  build/output/libpaho-mqtt3a.so.1.0 /home/devuser/i/paho-mqtt-c-git/pkg/paho-mqtt-c-git/usr/lib
    install -m 644  build/output/libpaho-mqtt3as.so.1.0 /home/devuser/i/paho-mqtt-c-git/pkg/paho-mqtt-c-git/usr/lib
    install  build/output/paho_c_version /home/devuser/i/paho-mqtt-c-git/pkg/paho-mqtt-c-git/usr/bin
    install  build/output/samples/paho_c_pub /home/devuser/i/paho-mqtt-c-git/pkg/paho-mqtt-c-git/usr/bin
    install  build/output/samples/paho_c_sub /home/devuser/i/paho-mqtt-c-git/pkg/paho-mqtt-c-git/usr/bin
    install  build/output/samples/paho_cs_pub /home/devuser/i/paho-mqtt-c-git/pkg/paho-mqtt-c-git/usr/bin
    install  build/output/samples/paho_cs_sub /home/devuser/i/paho-mqtt-c-git/pkg/paho-mqtt-c-git/usr/bin
    /sbin/ldconfig /home/devuser/i/paho-mqtt-c-git/pkg/paho-mqtt-c-git/usr/lib
    /sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
    make: *** [Makefile:283: install] Error 1
    ==> ERROR: A failure occurred in package().
        Aborting...

MagnificentSpam commented on 2018-09-05 10:13 (UTC) (edited on 2018-09-05 10:13 (UTC) by MagnificentSpam)

Looks like both the Makefile and the PKGBUILD are broken.

The PKGBUILD has to create the directories $pkgdir/usr/share/man/man1 and $pkgdir/usr/share/man/man3 before calling make install.

The Makefile needs to generate some manpages, possibly by calling the html target before install, and also change an install path: https://github.com/eclipse/paho.mqtt.c/pull/533/commits/c184481c7778d805a550411d5903324e84b922ff

mossblaser commented on 2018-08-05 20:55 (UTC) (edited on 2018-08-05 21:03 (UTC) by mossblaser)

This package currently doesn't seem to be building, failing on:

ln: failed to create symbolic link '/home/jonathan/Downloads/paho-mqtt-c-git/pkg/paho-mqtt-c-git/build/output/libpaho-mqtt3c.so.1': No such file or directory

At the time of writing, this is attempting to build against the v1.2.1 tag of the library. Do you know what might be going on? Thanks!

Update: This seems to have snuck in between v1.2.0 and v1.2.1. This might be an upstream issue? (Building v1.2.1 using make;make install works -- it might be something breaking in DESTDIR?)