Azure / iot-identity-service

Source of the Azure IoT Identity Service and related services.
MIT License
37 stars 45 forks source link

Add support for Debian 12 #610

Closed damonbarry closed 2 months ago

damonbarry commented 2 months ago

@arsing any thoughts on the packages workflow failures for debian 12 armhf and aarch64?

arsing commented 2 months ago

(nvm my previous comment, I can't read.)

I don't know where /usr/bin/arm-linux-gnueabihf-pkg-config comes from on Debian 11. It seems to not belong to any package but seems to appear automatically if pkg-config is installed while armhf architecture is enabled.

$ dpkg --add-architecture armhf && apt update -y && apt install -y pkg-config

...

$ ls -l /usr/bin/arm-linux-gnueabihf-pkg-config

lrwxrwxrwx 1 root root 34 Apr 23 21:27 /usr/bin/arm-linux-gnueabihf-pkg-config -> /usr/share/pkg-config-crosswrapper

$ dpkg -S /usr/bin/arm-linux-gnueabihf-pkg-config

dpkg-query: no path found matching pattern /usr/bin/arm-linux-gnueabihf-pkg-config

... and in fact, installing pkg-config:armhf will uninstall the pkg-config:amd64 one, ie they're not coinstallable.

On Debian 12 it requires installing pkg-config:armhf explicitly and it is even coninstallable with pkg-config:amd64.

$ dpkg --add-architecture armhf && apt update -y && apt install -y pkg-config

...

$ ls -l /usr/bin/arm-linux-gnueabihf-pkg-config

ls: cannot access '/usr/bin/arm-linux-gnueabihf-pkg-config': No such file or directory

$ apt install -y pkg-config:armhf

...

$ ls -l /usr/bin/arm-linux-gnueabihf-pkg-config

lrwxrwxrwx 1 root root 7 Jan 22  2023 /usr/bin/arm-linux-gnueabihf-pkg-config -> pkgconf

$ dpkg -S /usr/bin/arm-linux-gnueabihf-pkg-config

pkgconf:armhf: /usr/bin/arm-linux-gnueabihf-pkg-config

Same thing for aarch64.