[pkg-go] Bug#831982: influxdb: Get rid of warning message during installation

Vincent Blut vincent.debian at free.fr
Wed Jul 20 23:05:23 UTC 2016


Package: influxdb
Version: 0.13.0+dfsg1-2
Severity: minor
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi Alexandre,

During influxdb installation, the following warning is displayed:

[…]
Warning: The home dir /var/lib/influxdb you specified can't be accessed: 
No such file or directory
[…]

The root cause is pretty obvious, adduser tries to set influxdb user
home before it ever exist. There are many ways to fix that issue, for 
example we could create the necessary directory before calling adduser 
in the post-installation script, removing the “--no-create-home” from 
adduser call, etc. In the attached patches, you’ll see that I chose 
another solution that involves using debhelper’s facilities.

Additionaly, you’ll find patches (0003* and 0004*) handling 
/var/log/influxdb creation using the same method.

Thanks for maintaining influxdb!

Cheers,
Vincent


- -- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages influxdb depends on:
ii  adduser              3.115
ii  init-system-helpers  1.36
ii  libc6                2.23-1

influxdb recommends no packages.

influxdb suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXkAOpAAoJEIqc7nZacaeAYiQQAMuwZOKZY/EvumpLIOsoi7+s
6guiSUOJ9yT3+ZHW6iIsgNO/gRz9TI2Z0n3R30ILhf/3vZfMSloNoJyzrrjNy66a
wCpt6ojtbTGDLfEc30fKP6Rp1Gm9OTryLY7f8Abg4A8pGthnsFcfsGLrVhI82GLA
6eru7lKadQjDSdr+RVtgbwqgJmDTR4IdK4ti1Cwyh5zG6NOXO7MD0LJnoNmG1++i
sFvbGkBFu5wiLR2AJSvE7Yy0ofBKn7kFP+zo6LDyNGIlNQH9xlEvzVnhzYD9ycbi
wT2AN6W8i34gdI/4v8d8sJPWpQJXdWQLNEk+K1vbhaSoC5/+SYG+lmMx4wqiitRz
/IT12zNpK3h3yN6lJB4CqPkv7paCYrg/H+CpnmE+6KpdZN+f3gohxEfrnCnnj+Dc
P8gDaoqU8AZHXpGqOBHYywnIe6OPKiYUCMFRjyFbX38eJlq7HY6A8e0PNourSr3I
nhtu3mhHYs6KwJEV7m5TdHM9ADtvb9iHIhghHWE6Mc20x+MyKTZWnOzWFtX6cggm
e4nziyyusZrHcnM5LXyWMxm7fFOMnj37vawsZe8VmPqbtXQbEFexM/9wxPswAgLD
jLX646dOjGMH4BDlxvnjRuHLSpC+kmhD3arERxwtTnrt/IPseKtOtzakCEYEsLXK
/NcueVOoAzvSHaUpE+70
=/rqP
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-d-influxdb.dirs-Add-var-log-influxdb.patch
Type: text/x-diff
Size: 481 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20160721/bad984c0/attachment-0004.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-d-influxdb.postinst-Use-debhelper-facility-to-create.patch
Type: text/x-diff
Size: 862 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20160721/bad984c0/attachment-0005.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-d-influxdb.dirs-Create-var-lib-influxdb-using-debhel.patch
Type: text/x-diff
Size: 535 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20160721/bad984c0/attachment-0006.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-d-influxdb.postinst-Let-debhelper-facility-handle-di.patch
Type: text/x-diff
Size: 853 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-go-maintainers/attachments/20160721/bad984c0/attachment-0007.patch>


More information about the Pkg-go-maintainers mailing list