Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379861 - net-irc/quassel: improve init script so that IPv6 installations actually work
Summary: net-irc/quassel: improve init script so that IPv6 installations actually work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tomáš Chvátal (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-19 11:35 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2011-08-19 11:44 UTC (History)
2 users (show)

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


Attachments
Patch (quassel-init.patch,1.24 KB, text/plain)
2011-08-19 11:35 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2011-08-19 11:35:28 UTC
Created attachment 283891 [details]
Patch

The current init scripts re-writes the default LISTEN and PORT values when there is no real reason to do so: if the user leaves them unset, just don't pass any to quassel and use defaults.

This is important for LISTEN because Quassel's real default is "0.0.0.0, [::]" while the default that gets forced by the init script is 0.0.0.0 only, meaning that it won't listen on IPv6 sockets at all.

The attached patch makes use of ${:+} to avoid passing --listen and --port when the variables are unset. While port was unnecessary it looked nicer of the two were handled the same way.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2011-08-19 11:44:40 UTC
Okay this was committed.