Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 493354 - net-dns/rbldnsd: configuration file uses bash arrays
Summary: net-dns/rbldnsd: configuration file uses bash arrays
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michael Orlitzky
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-05 02:34 UTC by Michael Orlitzky
Modified: 2013-12-12 03:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Orlitzky gentoo-dev 2013-12-05 02:34:27 UTC
I made this change in the last revision, but have recently learned that it isn't allowed:

  http://gentoo.2317880.n4.nabble.com/rfc-bash-arrays-in-OpenRC-td20125.html

The bash arrays can probably be reverted to a whitespace separated string, although we might lose support for paths with spaces in them. Hopefully a better solution can be found.
Comment 1 Michael Orlitzky gentoo-dev 2013-12-12 03:28:09 UTC
  12 Dec 2013; Michael Orlitzky <mjo@gentoo.org> +files/confd-0.997a,
  +files/initd-0.997a, +files/rbldnsd-0.997a-robust-ipv6-test-support.patch,
  +rbldnsd-0.997a.ebuild:
  Version bump fixing bugs #485536 and #493354 in the process.

We are back to whitespace-separated strings, e.g.,

  ZONES="badguys.example.com:ip4set:badguys.example.com
         spammers.example.net:ip4tset:spammers.example.net"

In the init file I've removed the array operation in favor of,

    start-stop-daemon --start --quiet --pidfile /run/rbldnsd.pid \
	--exec /usr/sbin/rbldnsd -- \
	-r /var/db/rbldnsd \
	-p /run/rbldnsd.pid \
	$(for x in ${LISTEN}; do echo "-b ${x}"; done) \
	${OPTIONS} \
	${ZONES}