miniflux / v2

Minimalist and opinionated feed reader
https://miniflux.app
Apache License 2.0
6.89k stars 721 forks source link

Unpacking .deb File Results In etc/miniflux.conf file not an absolute pathname. #727

Closed GraysonPeddie closed 4 years ago

GraysonPeddie commented 4 years ago
root@newsreader:/# apt install ./miniflux_2.0.22_amd64.deb 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'miniflux' instead of './miniflux_2.0.22_amd64.deb'
The following NEW packages will be installed:
  miniflux
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3,842 kB of archives.
After this operation, 13.0 MB of additional disk space will be used.
Get:1 /miniflux_2.0.22_amd64.deb miniflux amd64 2.0.22 [3,842 kB]
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package miniflux.
(Reading database ... 12038 files and directories currently installed.)
Preparing to unpack /miniflux_2.0.22_amd64.deb ...
dpkg: error processing archive /miniflux_2.0.22_amd64.deb (--unpack):
 conffile name 'etc/miniflux.conf' is not an absolute pathname
Errors were encountered while processing:
 /miniflux_2.0.22_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@newsreader:/# cat /etc/debian_version 
bullseye/sid
root@newsreader:/# apt policy dpkg
dpkg:
  Installed: 1.20.5
...
root@newsreader:/# apt policy apt
apt:
  Installed: 2.1.7

I'm testing Miniflux in a Linux container (LXC) and dpkg won't proceed unless /etc/miniflux.conf becomes an absolute path name instead of etc/miniflux.conf.

Update as of 6:37 PM EDT:

I found a problem after I do a dpkg-deb -R:

root@newsreader:/miniflux-issue# cat DEBIAN/conffiles 
etc/miniflux.conf
/etc/miniflux.conf

The first line is a duplicate of the second line without the leading forward slash.

Update as of 11:43 PM:

Once I change the above conffiles file to this:

root@newsreader:/miniflux-issue# cat DEBIAN/conffiles 
/etc/miniflux.conf

...and do a dpkg-deb --build miniflux.deb, the package installs just fine.

fguillot commented 4 years ago

It should be fixed by this commit https://github.com/miniflux/deb-package/commit/0f436ea7a14c33043c5abdc5785d4e7a7e0651a5