paho.mqtt.c icon indicating copy to clipboard operation
paho.mqtt.c copied to clipboard

linux apt repository

Open nandlab opened this issue 3 years ago • 7 comments

Is there any apt repository with the libpaho-mqtt package, so we can install paho-mqtt without having to build it from source? That would be much easier for the user.

What do you think about using OpenSUSE Build Service to build packages for different linux distributions? I have created a demo hello world program which I build on OBS. AFAIK, for OBS, you have to follow the official Debian packaging method and create a debian directory instead of using CPack. git-buildpackage can help to integrate the debian packaging better with git.

nandlab avatar Feb 28 '22 11:02 nandlab

I have done all the debian packaging in a fork on a new debian branch. Can you please create a debian branch in your GitHub repository at the current master commit? Then I could provide a pull request.

I also uploaded the source to an OBS repo. It is building packages for the following Linux distributions:

  • Debian_11
  • Debian_Testing
  • Debian_Unstable
  • Raspbian_11
  • xUbuntu_20.04
  • xUbuntu_20.10
  • xUbuntu_21.04
  • xUbuntu_21.10

The apt repository can be added as follows on xUbuntu_20.04, for example:

curl -s "https://build.opensuse.org/projects/home:elaunch/public_key" | gpg --dearmor | sudo tee /usr/share/keyrings/obs-elaunch.gpg > /dev/null
echo "deb  [signed-by=/usr/share/keyrings/obs-elaunch.gpg] https://download.opensuse.org/repositories/home:/elaunch/xUbuntu_20.04/ /" | sudo tee /etc/apt/sources.list.d/obs-elaunch.list

Then the development package can be installed with:

sudo apt install libpaho-mqtt-c1-dev

Can you please check if everything is okay? Then this information could be added to the readme.

nandlab avatar Mar 10 '22 22:03 nandlab

I've created a debian branch as requested. I'll take a look at the PR once you've created it.

icraggs avatar Mar 14 '22 15:03 icraggs

Here it is: #1208

nandlab avatar Mar 14 '22 20:03 nandlab

Hi,

I'm a maintainer of paho.mqtt.c package in Debian and Ubuntu.

Versions in distribution repositories:

  • Debian testing: 1.3.12
  • Debian 12 bookworm: 1.3.12
  • Debian 11 bullseye: 1.3.8
  • Ubuntu 22.04 Jammy Jellyfish: 1.3.9
  • Ubuntu 23.04 Lunar Lobster: 1.3.9
  • Ubuntu 23.10 Mantic Minotaur: 1.3.12

The latest packages for Debian, Raspbian and Ubuntu LTS you can find at https://repos.iqrf.org/.

Roman3349 avatar Oct 08 '23 11:10 Roman3349

Hi, while I wrote this issue, paho.mqtt.c was not yet in my distribution. Is there a plan to package paho.mqtt.cpp?

nandlab avatar Oct 08 '23 12:10 nandlab

paho.mqtt.cpp is packaged in Debian: https://tracker.debian.org/pkg/paho.mqtt.cpp

matthiasklein avatar Oct 08 '23 13:10 matthiasklein

It might be a good idea to add versions in the distribution repositories to the read me.

[![Packaging status](https://repology.org/badge/vertical-allrepos/paho.mqtt.c.svg)](https://repology.org/project/paho.mqtt.c/versions)

Packaging status

Roman3349 avatar Oct 08 '23 19:10 Roman3349