Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

pkg: paho-mqtt: added missing requirement #18997

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

OlegHahm
Copy link
Member

Paho won't compile on platforms where an Integer is smaller than 32 bit.

Contribution description

This PR adds the corresponding requirement to the package.

Testing procedure

Build paho_mqtt example application and check if it still building for a 32 bit platform. (It won't build for a 16 bit platform even without this PR because of LWIP having the same requirement.)

Take a look at https://github.com/eclipse/paho.mqtt.embedded-c/blob/master/MQTTPacket/src/MQTTPacket.c#L93

Issues/PRs references

#18982 relies on this PR.

Paho won't compile on platforms where an Integer is smaller than 32 bit.
@github-actions github-actions bot added Area: network Area: Networking Area: pkg Area: External package ports labels Nov 30, 2022
@OlegHahm OlegHahm requested a review from benpicco November 30, 2022 11:50
@OlegHahm OlegHahm added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Nov 30, 2022
@benpicco benpicco enabled auto-merge November 30, 2022 12:36
@riot-ci
Copy link

riot-ci commented Nov 30, 2022

Murdock results

✔️ PASSED

6f7710a pkg: paho-mqtt: added missing requirement

Success Failures Total Runtime
117858 0 117858 01h:57m:41s

Artifacts

@benpicco benpicco merged commit 7d8601e into RIOT-OS:master Nov 30, 2022
@OlegHahm OlegHahm deleted the pr/add_32bit_requirement_to_paho branch November 30, 2022 15:28
bors bot added a commit that referenced this pull request Dec 11, 2022
18962: pkg/lwip: Force loglevel when using log module r=maribu a=yarrick



18999: Paho: Allow building for 8 and 16 bit platforms r=maribu a=OlegHahm

### Contribution description

Providing a patch to Paho upstream which uses fixed size integers (int32_t) instead of plain int whenever it is used to represent a size of an object.

This patch will allow to build the Paho package for platforms where an integer has a width of less than 32 bit.

This patch is also provided as a PR to the upstream version of Paho (eclipse-paho/paho.mqtt.embedded-c#238) but unfortunately the upstream seems to be unmaintained.

### Testing procedure

Build for a 8 or 16 bit platform that has enough memory for the example, e.g., https://api.riot-os.org/group__boards__atxmega-a1u-xpro.html:
BUILD_IN_DOCKER=1 BOARD=atxmega-a1u-xpro make clean all

Without this PR this build will fail, with the patches applied it will succeed.

### Issues/PRs references

This PR makes #18997 obsolete and thus reverts the change.


19034: boards/nucleo-l496zg: doc improvement r=maribu a=krzysztof-cabaj

### Contribution description

This PR adds to nucleo-l496zg documentation MCU table - similar to those, for example for, Nucleo F103RB, F302R8 or F446RE.

### Testing procedure

```
make doc
xdg-open doc/doxygen/html/group__boards__nucleo-l496zg.html
```

### Issues/PRs references

None

Co-authored-by: Erik Ekman <eekman@google.com>
Co-authored-by: Oleg Hahm <oleg@hobbykeller.org>
Co-authored-by: krzysztof-cabaj <kcabaj@gmail.com>
@kaspar030 kaspar030 added this to the Release 2023.01 milestone Jan 19, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Area: network Area: Networking Area: pkg Area: External package ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants