/srv/irclogs.ubuntu.com/2012/10/08/#ubuntu-motu.txt

dholbachgood morning06:35
gesergood morning dholbach07:04
dholbachhi geser07:04
=== akher0n is now known as akheron
Laneyhey08:15
Laneydholbach: aren't you abroad somewhere?!08:15
dholbachhey Laney08:16
dholbachI'm at work :)08:16
Laney:P08:20
yolandahi, can i get some help with a package? i'm having a problem with postgresql dependencies08:48
yolandai have a bug reported for that: https://bugs.launchpad.net/ubuntu/+source/openerp6.1/+bug/106141808:49
ubottuLaunchpad bug 1061418 in openerp6.1 (Ubuntu) "PostgreSQL database installed but not configured." [High,In progress]08:49
yolandayes, ubottu, that's it08:49
yolandai have the problem that i need to execute a command to create a postgresql user08:50
yolandabut as postgres is listed as recommended, it's installed after the openerp package, so the command isn't valid if postgres isn't already there08:50
yolandawe wanted to list postgres as recommends because if people chosee remote postgres connection, the package isn't needed, but it's needed with local connection... so i'm lost at this point08:51
yolandahi, can i get some help with that bug? https://bugs.launchpad.net/ubuntu/+source/openerp6.1/+bug/106141808:58
ubottuLaunchpad bug 1061418 in openerp6.1 (Ubuntu) "PostgreSQL database installed but not configured." [High,In progress]08:58
geseryou can't really do much about it. you could provide a script to help the admin to set up the database (be it either local or remote)09:01
yolandageser, at the moment it configures correctly postgres, but only if postgres is installed on the system, can i force the installation before openerp package?09:04
DavieyIt sounds to me suitable Recommends on postgresql not being set, or on the correct package..  but i haven't checked.09:05
Laneyyolanda: if you want to use stuff in your maintainer scripts, you need to have it as Depends09:06
Laneys/maintainer scripts/postinst/09:06
yolandaLaney, i have it as recommends, so i should change to depends09:07
Laneythat's how you guarantee to have it available at the right time09:07
yolandabut for some cases postgres isn't needed, so that was my doubt09:08
Laneywell, then why do you always need to run postgres stuff in the postinst?09:08
yolandaLaney, the thing is that i let the user to choose between local and remote installation09:08
yolandaif the installation is remote, postgres isn't needed09:08
yolandabut it installation is local, it's needed and i need to run an script09:08
Laneyperhaps you should print an informational message to the user if you can't run the setup then09:09
Laneyor some other solution like have openerp-local openerp-remote packages with different scripts09:09
Davieydoing a [ -f /usr/sbin/postgres ] setupdb() .. seems OK .. but cleaner might be openerp-standalone .. which is a meta-like-package (depends on current stuff, and postgres) with the maintainerscript to do the db setup?09:10
yolandaLaney, but i already have the package split in two, between openerp-core that provides only the package and openerp services, and openerp-full, that configures the database connection and leaves openerp ready to run09:10
yolandaopenerp-core is supposed to be used by advanced users, and openerp-full for general users09:11
Daviey(then full needs Depends?)09:11
Laneyso perhaps -core could automatically do the remote configuaration, then -full reconfigures this to be local?09:12
yolandaDaviey, Laney, the question between remote and local is on the full package, at the core we still don't know about the type of connection09:12
Laneywe're suggesting making some assumptions09:13
Laneythat the user can override09:13
Laney(but not at package installation time)09:14
yolandaLaney, don't understand09:15
yolandacan i address you to the source code for the package so you can check what i've done and if you detect something that can be improved?09:15
Laneyyolanda: I'm saying that if you want to make it unconditional then you need the Depends, and then this raises some questions about the local/remote split09:18
Laneyyou should consider what you think is the best approach based on this09:18
yolandaLaney, i'm tempted to just add a depends, but it's one of my first packages, so i can't have a clear opinion on it09:19
cjwatsonOr a conditional self-trigger might be possible, but it's kind of complex09:19
cjwatson(And runs the risk of an orphaned trigger if postgres never gets installed, so I think on reflection that's probably not a good idea)09:20
yolandaok ,so simplest way is to just add a Depends, and the worse consequence there is that postgres is installed and not used, right?09:22
Laneythen users who don't need it won't be able to uninstall it09:23
Davieywell -full is the full shebang.  So not necessarily a problem09:24
geseryolanda: what's the difference between -core and -full? just the automatic database setup?09:24
LaneyI'm not saying that it is or isn't, just presenting the facts09:24
yolandageser, full configures the postgres user, and adjusts settings in openerp configuration file09:25
Laneyso -core is essentially the remote configuration anyway?09:25
semvozgood evening09:25
yolandaLaney, no, core just installs the openerp source code in the right places, and installs the openerp daemon09:31
yolandathen, advanced users could configure openerp manually09:31
yolandabut full is intented to be for basic users, so they just get openerp ready to go09:32
yolandai think a depends make sense, because normally basic users will choose local configuration09:32
semvozhmm10:31
=== Guest35492 is now known as Kiall
=== emma is now known as em
aramicahg, ping13:13
TheLordOfTimeanyone here on bugcontrol want to remind me of how we handle bugs against EOL-release packages in general, for packages which don't fall into a specific workflow?14:29
TheLordOfTime(i'm not getting answers in -bugs, but i know there's bugcontrollers in this channel :P)14:29
cjwatsonTheLordOfTime: unless there's some particular reason why the bug is specific to that release, there's likely nothing special; if it's not been closed it probably still exists14:41
TheLordOfTimecjwatson, all i'm seeing is crap in 10.10, but since this is in a server package, hallyn already answered.14:42
cjwatsonTheLordOfTime: in the case of something that's basically a support request or in some other way not well-formed as a bug, it might be a good time to encourage the reporter to recheck14:42
TheLordOfTimetypically my response is to say "Please test in $nonEOLRelease to confirm if the bug exists"14:42
cjwatsonTheLordOfTime: but if it's a well-formed bug report, that just wastes the reporter's time and makes us look foolish14:42
cjwatsonTheLordOfTime: it's the number one thing my friends complain about when they've filed bugs in Ubuntu14:42
TheLordOfTimecjwatson, tell me about it14:43
TheLordOfTimei see that in nginx packages, and i rage about it :P14:43
cjwatsonnot that their bugs don't get fixed, but that somebody who didn't understand their bug came along, marked their bug incomplete, and asked them if it still existed, even though there was a perfectly good reproduction recipe in the bug14:43
cjwatsonso yeah, try to make an effort to actually understand the bug before essentially auto-posting to it14:43
TheLordOfTimecjwatson, if you're curious, https://bugs.launchpad.net/ubuntu/+source/php5/+bug/744371 is the bug, but hallyn's given me a method of how to handle it14:43
ubottuLaunchpad bug 744371 in php5 (Ubuntu) "PHP5-FPM doesn't always restart on 10.10" [Medium,Confirmed]14:43
cjwatsonI'm not curious :)14:44
TheLordOfTimecjwatson, with no response since 2011-09-08, i'm assuming its not been tested in later releases :P14:44
TheLordOfTimeand that its just fallen off the radar14:44
cjwatsonthat's in general an unreasonable assumption14:44
cjwatsonhow about actually testing14:45
TheLordOfTimecjwatson, works in 12.0414:45
TheLordOfTimeand worked in 11.04 when i ran that14:45
TheLordOfTime11.10 too, but in 11.04 and 11.10 i dont have any existing testbeds14:45
TheLordOfTimesince those systems were retired in favor of Precise14:45
cjwatsonthen your setup apparently doesn't match, since hallyn reported that this was still the case in natty14:46
cjwatsona good test would involve a system that could reproduce the bug being upgraded and now no longer reproducing the bug14:46
cjwatsonrather than one that could never reproduce it in the first place14:46
TheLordOfTimecjwatson, ah, i see that now, hallyn didnt mention that :P14:48
* TheLordOfTime yawns14:48
TheLordOfTimebeing tired results in minor oversights like that14:48
TheLordOfTimealthough, natty's EOL this month, i'd like to see it tested in 11.10 :P14:48
=== Ursinha_ is now known as Ursinha
=== soren_ is now known as soren
=== Ursinha_ is now known as Ursinha

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!