Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 379861

Summary: net-irc/quassel: improve init script so that IPv6 installations actually work
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Tomáš Chvátal (RETIRED) <scarabeus>
Status: RESOLVED FIXED    
Severity: normal CC: patrick, sputnick
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch

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.