makob
(Jakob Butler)
July 8, 2020, 1:24pm
1
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
rlkoshak
(Rich Koshak)
July 8, 2020, 2:32pm
2
@Benjy , tagging you since you are the packaging guru.
2 Likes
Benjy
(Ben Clark)
July 8, 2020, 4:35pm
3
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
Benjy
(Ben Clark)
July 8, 2020, 4:48pm
4
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
makob
(Jakob Butler)
July 8, 2020, 6:05pm
5
Wow - that was quick! Many thanks!
Best regards,
Jakob
1 Like