Openhab2 2.5.6-2 debian package issues

Hi,

It seems the openhab2 Debian package (openhab2_2.5.6-2.deb) cannot be installed on Debian systems with newer versions of dpkg (version 1.20.5, at least) because the “conffiles” control file have a number of files without absolute paths.

The dpkg change that prevents installation is this one.

I can manually fix this by extracting the deb-file, fixing the “conffiles”, repackage the deb and then install it.

I’m not proficient with gradle, but I suppose an eventual fix is needed in https://github.com/openhab/openhab-linuxpkg ?

Thanks,
Jakob

1 Like

@Benjy, tagging you since you are the packaging guru.

2 Likes

Thanks both,

There is indeed a bug in the packaging, which has been taking advantage of the fact that older DPKG versions add back the initial / if it’s missing:

Configuration files set directly e.g.

configurationFile('/etc/default/openhab')

Work correctly, however configuration files set inside an iteration do not as the leading slash is missing in the string:

eachFile { details ->
            def pkgPath = details.path - 'conf'
            details.path = pkgPath
            configurationFile(details.path)
          }

Created openhab-linuxpkg/#177 to track but the fix should be simple enough. I will keep you updated.

2 Likes

All fixed! The next snapshot and any future release should contain it.

I did an initial test, but it’ll be good to see if a repository install works for you too.

4 Likes

Wow - that was quick! Many thanks! :slight_smile:

Best regards,
Jakob

1 Like