|
[18:52] <sadmac2> Keybuk: howgoezit? |
|
[18:55] <Keybuk> sadmac2: slowly |
|
[18:56] <sadmac2> Keybuk: what are you up against? |
|
[18:57] <Keybuk> lack of time |
|
[18:57] <sadmac2> what still needs doing? |
|
[18:59] <Keybuk> all of the ipc work |
|
[19:01] <sadmac2> anything you could hand off? I have plenty of time right now. |
|
[19:02] <Keybuk> not unless you've already figured out how to write bindings with libnih-dbus? :) |
|
[19:03] <sadmac2> is it difficult to pick up? |
|
[19:03] <Keybuk> not especially |
|
[19:03] <sadmac2> well then I may as well give it a shot |
|
[19:05] <sadmac2> where should I pull from? |
|
[19:06] <Keybuk> trunk |
|
[19:06] <Keybuk> of both upstart and libnih |
|
[19:06] <Keybuk> there's various notes in the irc logs of what we want to end up with |
|
[19:07] <Keybuk> also will need a signed copy of http://upstart.ubuntu.com/wiki/CopyrightAssignment |
|
[19:07] <Keybuk> assuming you're at RH now, probably by line manager or someone authorative? |
|
[19:07] <sadmac2> interesting point. hmm... |
|
[19:22] <Keybuk> http://bazaar.launchpad.net/~keybuk/upstart/trunk/revision/scott%40netsplit.com-20080508182154-90pnmwt4j18ryzhk?start_revid=scott%40netsplit.com-20080508182154-90pnmwt4j18ryzhk |
|
[19:22] <Keybuk> \o/ |
|
[19:23] <Keybuk> ^ big milestone push |
|
[19:23] <sadmac2> Keybuk: aand launchpad is being slow |
|
[19:23] <sadmac2> ok |
|
[19:24] * sadmac2 goes to rebase or whatever you bzr people call it |
|
[19:26] <Keybuk> "update" :) |
|
[19:26] <Keybuk> (or pull if you branched instead of checked out) |
|
[19:26] <sadmac2> Keybuk: I did "merge" and that seemed to get it |
|
[19:26] <Keybuk> that works too |
|
[19:27] <sadmac2> what's the difference between branch and checkout? |
|
[19:27] <Keybuk> a branch is your own personal branch |
|
[19:27] <Keybuk> any changes you make remain on your machine until you push them somewhere |
|
[19:27] <Keybuk> a checkout is exactly like that, but any changes you make are pushed back to where you branched from |
|
[19:27] <Keybuk> ie. it's the subversion/cvs model of working |
|
[19:28] <Keybuk> whereas branch is the distributed model |
|
[19:28] <sadmac2> ah |
|
[19:28] * sadmac2 likes branch |
|
[19:28] <Keybuk> the nice thing being that if the push fails, the commit need not |
|
[19:28] <Keybuk> so you can work centrally, and get on a plane, and carry on committing |
|
[19:28] <Keybuk> when you have a connection again, you just merge in everyone else's changes, and push and rebind |
|
[19:28] <Keybuk> I don't tend to checkout much myself |
|
[19:29] <Keybuk> I tend to use branch/pull/push |
|
[19:29] <Keybuk> even if I'm the only person with write access to the pull/push location |
|
[19:29] <Keybuk> since then I can stage pushes |
|
[19:29] <sadmac2> yes. I'm young enough and avant garde enough that git marks the vast majority of my version control experience. |
|
[19:29] <Keybuk> heh |
|
[19:29] <Keybuk> I dislike git strongly |
|
[19:29] <Keybuk> well |
|
[19:29] <Keybuk> it appears to dislike me strongly |
|
[19:29] <Keybuk> it vastly overcomplicates things which should be simple |
|
[19:30] <sadmac2> I havent' found such |
|
[19:30] <sadmac2> you should try this 'eg' thing though. people seem to like it |
|
[19:32] * Jc2k has had a bad git experience today |
|
[19:32] <Keybuk> eg? |
|
[19:33] <sadmac2> Keybuk: "easy git." Its a little wrapper layer that's got a lot of people very pleased |
|
[19:33] <sadmac2> Jc2k: what was it? |
|
[19:33] * Jc2k won't be ready to try playing with git again for a while |
|
[19:33] <Keybuk> sadmac2: but bzr already does everything I need without any wrappers ;) |
|
[19:33] <Jc2k> the amount of effort to add a new repository |
|
[19:33] <Keybuk> and I know where the author lives, and haven't popped round to stab him in the face |
|
[19:33] <Keybuk> this, to me, is a great achievement in revision control systems ;) |
|
[19:34] <Jc2k> with bzr i just pushed to sftp (also a location http can see) |
|
[19:34] <Keybuk> "Hi Scott, my name's Brian, I'm one of the authors of subver*ARRRRGH MY EYEE!!!!*" |
|
[19:34] <sadmac2> Keybuk: as originally intended, it wouldn't be fair to compare git and bzr, any more than it would be fair to compare sysvinit and libnih |
|
[19:34] <Jc2k> with git, i have to run git-update-this and add hooks so that git-update-that gets called every commit and... |
|
[19:34] <sadmac2> git was a filesystem. it was never meant to be left on its own |
|
[19:34] <sadmac2> this has become far less true |
|
[19:34] <sadmac2> Jc2k: don't use webdav |
|
[19:34] <Keybuk> sadmac2: git was always intended to be a revision control system ;) |
|
[19:35] <sadmac2> Jc2k: stick to the custom daemon |
|
[19:35] <sadmac2> Keybuk: it was not intended to be interacted with by the user directly |
|
[19:35] <Keybuk> sadmac2: sure it was |
|
[19:35] <Keybuk> where the user == Linus |
|
[19:35] <Jc2k> sadmac2: i was meant to be quickly throwing some repos up so that the upstream debian maintainer of my ubuntu synce packages got some fixes |
|
[19:35] <Keybuk> but then other people realised that Linus is quite, quite mad |
|
[19:35] <Keybuk> and wrapped it with friendlier things |
|
[19:35] <Jc2k> sadmac2: it took 4 attempts before he could finally access them. |
|
[19:36] <Keybuk> and claimed that it was never intended to be unwrapped in the first place |
|
[19:36] <sadmac2> Jc2k: using which method? webdav or git-daemon? |
|
[19:37] <Keybuk> git reminds me a lot of arch |
|
[19:37] <Keybuk> I think it's the first distributed revision control system that people try |
|
[19:37] <Jc2k> sadmac2: does bog standard http really qualify as webdav? but yes, webdav. because i excpected it to be as simple as bzr. |
|
[19:38] <Keybuk> and they fall in love with the idea of DVCS so much, and think it's so awesome, that they'll apologise for any user interface problems |
|
[19:38] <sadmac2> Jc2k: webdav is not the way to do it. |
|
[19:38] <sadmac2> Jc2k: use the git-daemon |
|
[19:38] <Keybuk> what hg and bzr have shown is that you can do DVCS, and still have a simple client that largely does the right thing |
|
[19:38] <Jc2k> sadmac2: i started working to set that up |
|
[19:38] <Keybuk> without exposing its inner workings |
|
[19:39] <Keybuk> it's still distributed, it's still awesome, but it feels less like having a spike pushed through your testicles |
|
[19:40] <Jc2k> sadmac2: if i use git-daemon, do i still have to log on to the server, create a new repo, poke things into its hooks, ln it to /var/cache/git and such? |
|
[19:41] <sadmac2> log on/create I believe still apply. The rest shouldn't |
|
[19:41] <Jc2k> so i'll still be using bzr when i quickly want to share a branch. |
|
[19:42] <Keybuk> bzr push sftp://hostname/home/scott/public_html/some-branch |
|
[19:42] <Keybuk> ;) |
|
[19:42] <sadmac2> Jc2k: remember: 1 git repo => many branches |
|
[19:42] <Jc2k> Keybuk: doesn't it support ~ these days? |
|
[19:42] <Keybuk> yeah probably |
|
[19:42] <sadmac2> Jc2k: its a once-per-project operation, not once-per-branch |
|
[19:42] <Keybuk> sadmac2: ssh hostname bzr init-repo public_html/bzr |
|
[19:42] <Keybuk> bzr push sftp://hostname/home/scott/public_html/bzr/some-branch |
|
[19:43] <Keybuk> (in fact, you can probably just init-repo the sftp url ;p) |
|
[19:43] <sadmac2> Jc2k: and if you quickly want to share a branch, why on the server? Just share it off your own damn box like it was designed for |
|
[19:43] <Jc2k> sadmac2: generally behind NAT |
|
[19:43] <sadmac2> Jc2k: good point |
|
[19:44] <sadmac2> that is one area where bzr is just better. Git's almost TOO distributed. The idea of ANY centralization was an afterthought. hence the trouble. |
|
[19:44] <Keybuk> I've never seen anywhere that git is more distributed than bzr? |
|
[19:44] <Keybuk> bzr's repository model was just designed from scratch to be flexible |
|
[19:45] <Keybuk> any bzr repository is a branch someone can take |
|
[19:45] <Keybuk> bzr branch ~someoneelse/work/foo -- will take a branch from their last committed change |
|
[19:45] <sadmac2> Keybuk: well its more a mindset question than anything. The idea of a central git repo just didn't occur to anyone until late in the game |
|
[19:46] <Keybuk> hell, the only difference between bzr branch and cp -a is that bzr branch doesn't take the .o files with it ;) |
|
[19:46] <Jc2k> and the level of integration from bzr-svn astounds me |
|
[19:46] <sadmac2> Remember, Linus doesn't even necessarily think there should be a single convergence point. |
|
[19:46] <Jc2k> i'm a little surprised there isn't a bzr-git, but i don't think there is someone who wants to use both |
|
[19:47] <Keybuk> there is? |
|
[19:47] <suihkulokki> sadmac2: is there actually any project where developers push/pull biderectionally from each others? there allways seems to be a central repository in projects ive been at. |
|
[19:47] <Jc2k> Keybuk: but its not like bzr-svn, is it? last time i looked it wasn't as feature complete.. |
|
[19:47] <suihkulokki> s/any project/any git project/ |
|
[19:47] <Keybuk> it's not as complete, no? |
|
[19:48] <sadmac2> suihkulokki: Red Hat does it that way internally. When you pull in here, usually its coming directly from a folder in someone's NFS home |
|
[19:49] <suihkulokki> sadmac2: we tried to do that to a relatively small project and the repo was messed in not time.. |
|
[19:51] <sadmac2> suihkulokki: we've been doing it without issues for all of IT for awhile now |
|
[19:52] <Keybuk> heh, we just don't use revision control ;) |
|
[19:53] <Keybuk> the debian archive system is kinda like a primitive rcs in of itself |
|
[19:54] <sadmac2> One claim bzr made that's bugged me: They said on their webpage "bzr never commits a merge automatically, which is safer if it breaks things" |
|
[19:54] <sadmac2> WHO CARES? |
|
[19:54] <sadmac2> Without autocommit: git reset HEAD With autocommit: git reset HEAD^ |
|
[19:55] <sadmac2> the workflow is nearly identical |
|
[19:55] <Keybuk> sadmac2: it's just the CVS model |
|
[19:55] <Keybuk> bzr merge ... bzr commit |
|
[19:55] <Keybuk> svn follows the same pattern |
|
[19:56] <Keybuk> anyhoo, skating time |
|
[19:56] <Keybuk> bbl |
|
[19:56] <sadmac2> Keybuk: I'm not saying its worse, its totally fine. but they go screaming for 20 minutes "git is unsafe because it does this!" |
|
[21:17] <sadmac2> Keybuk: so basically these NihDBusInterface[] arrays need to be populated with whatever self-evident handlers |
|
[21:17] <sadmac2> (which in turn need to exist) |
|
[21:20] <sadmac2> Which is the real Keybuk ? |
|
[21:29] <Keybuk> well, that pretty much confirms that it's just FreeNode that this hotel hates |
|
[21:30] <sadmac2> heh |
|
[21:31] <sadmac2> Keybuk: so what I'm gathering from the source here is that we have manager_interfaces[] and job_class_interfaces[] which need to be populated with appropriate handlers |
|
[21:31] <Keybuk> pretty much |
|
[21:31] <Keybuk> the handlers are all autogenerated though |
|
[21:31] <sadmac2> ah yes. the magical mystery python script |
|
[21:32] <Keybuk> crap, wrong button |
|
[21:32] <sadmac2> heh |
|
[21:32] <Keybuk> sadmac2: did you get the trunk libnih and upstart to build ok? |
|
[21:33] <sadmac2> Keybuk: haven't built 'em. I'll want to build them under F9 at home I think |
|
[21:33] <sadmac2> (Work box is RHEL 5) |
|
[21:33] <Keybuk> ah right |
|
[21:34] <Keybuk> wanted to see whether it worked ok |
|
[21:34] <Keybuk> I added some compiler flags ;) |
|
[21:34] <sadmac2> meh. I have a compiler. I can build it for the sake of building it |
|
[21:34] <sadmac2> lets do this |
|
[21:34] <Keybuk> :) |
|
[21:34] <Keybuk> add CPPFLAGS=-DDEBUG |
|
[21:35] <sadmac2> ../libnih/nihify |
|
[21:35] <Keybuk> yeah, well |
|
[21:35] <Keybuk> configure libnih |
|
[21:35] <Keybuk> then nihify upstart |
|
[21:35] <Keybuk> then configure and build upstart |
|
[21:37] <sadmac2> aaand stopped |
|
[21:37] <sadmac2> Autoconf version 2.61 |
|
[21:37] <sadmac2> :( |
|
[21:37] <sadmac2> don't have that in 5 |
|
[21:38] <Keybuk> heh |
|
[21:38] <Keybuk> why's the work box so out of date? |
|
[21:38] <sadmac2> Keybuk: its RHEL. |
|
[21:38] <sadmac2> The customers seem to prefer things this way |
|
[21:39] <sadmac2> ...I could grab the f9 package out of koji.... |
|
[21:39] <Keybuk> that's the latest release of RHEL?! :) |
|
[21:39] <Keybuk> what is it?! Debian?! :p |
|
[21:40] <AlexExtreme> RHEL releases are eons apart |
|
[21:40] <Keybuk> how do you build stuff on there? |
|
[21:41] <sadmac2> Keybuk: anything we're shipping builds with the versions available. Anything customers want to build themselves isn't within our direct support ring and they need to talk to the people that wrote it. |
|
[21:44] <Keybuk> yeah, but how do you develop for fedora on RHEL? |
|
[21:45] <sadmac2> Keybuk: I don't. I've been in sysadmin positions until... well two weeks from now |
|
[21:45] <sadmac2> the fedora stuff has been free time |
|
[21:46] <sadmac2> (which I have a lot of since the department I'm in now doesn't have much work for me) |
|
[21:46] <Keybuk> ahh right |
|
[21:46] <Keybuk> work != RH |
|
[21:46] <Keybuk> ? |
|
[21:46] <sadmac2> Keybuk: also ssh |
|
[21:46] <sadmac2> Keybuk: yeah, I work at RH. I was an IT release engineer, now I'm engineering operations. |
|
[21:46] <Keybuk> oh, got you |
|
[21:47] <sadmac2> the former was mostly scripting, the latter consisted of lifting heavy objects and bolting them to high places. |
|
[21:48] <Keybuk> :-) |
|
[21:51] <sadmac2> I have to go dig up the 0.3.9 source so I can remember what all this stuff did |
|
[21:53] <Keybuk> which stuff? :) |
|
[21:53] <sadmac2> jusw what messages need to be responded to. |
|
[21:53] <sadmac2> s/jusw/just |
|
[21:54] <Keybuk> most of it probably won't be a 1:1 mapping |
|
[21:55] <sadmac2> yeah. |
|
[21:55] <sadmac2> Where is the script that does the autogenerating? |
|
[21:56] <Keybuk> in libnih |
|
[21:56] <sadmac2> ahh. was looking for green in ls |
|
[22:12] <sadmac2> ahh, and my favoritest part about RHEL 5 |
|
[22:12] <sadmac2> Python 2.4.3 |
|
[22:17] <sadmac2> Keybuk: Your script keeps saying "Name may ot be null" |
|
[22:17] <sadmac2> where do I put the name? I tried an attribute, I tried a tag... |
|
[22:19] <sadmac2> nvm. I get it now |
|
[22:59] <Keybuk> it's just d-bus introspect format as input |
|
[23:00] <sadmac2> ah |
|
[23:00] * sadmac2 should RTFM on dbus |
|
[23:01] <Keybuk> heh |
|
[23:01] <Keybuk> I wish there was a d-bus style guide |
|
[23:01] <Keybuk> like what should the primary interface be? |
|
[23:02] <Keybuk> if it's /com/ubuntu/Upstart |
|
[23:02] <Keybuk> should the interface be com.ubuntu.Upstart |
|
[23:02] <Keybuk> or com.ubuntu.Upstart.Manager |
|
[23:02] <Keybuk> or com.ubuntu.Upstart.Server |
|
[23:02] <Keybuk> etc. |
|
[23:03] <sadmac2> if either of the later two, what would the first then mean? |
|
[23:04] <Keybuk> you'd just have one? |
|
[23:04] <Keybuk> davidz services seem to use Manager |
|
[23:04] <Keybuk> hughsie services seem to just use the dotted version of the path |
|
[23:05] <sadmac2> It just seems to me that if com.ubuntu.Upstart is a valid option it should either be it, or it should be something with some sort of ownership relation to com.ubuntu.Upstart.{Manager,Server,whatever} |
|
[23:06] <Keybuk> how do you mean? |
|
[23:06] <Keybuk> as in you get from one to the other? |
|
[23:07] <sadmac2> when I see com.ubuntu.Upstart.Manager, the relationship, to me, reads com.ubuntu.Upstart HAS A Manager |
|
[23:08] <sadmac2> if something can HAVE A other thing, that implies that there is something doing the having, which suggests one could interact with com.ubuntu.Upstart directly |
|
[23:09] <sadmac2> so what interface does com.ubuntu.Upstart present? and if none, why? |
|
[23:10] <Keybuk> yeah that's my thinking too |
|
[23:10] <Keybuk> the /com/ubuntu/Upstart object should have the com.ubuntu.Upstart interface |
|
[23:10] <Keybuk> which allows you to do things like get jobs (com.ubuntu.Upstart.Job interface), etc. |
|
[23:12] <sadmac2> plus Server kind of nods at an implementation detail, and Manager is a -er classname, which I have pages of angry rants about |
|
[23:13] <Keybuk> ok, no -ers :p |
|
[23:13] <sadmac2> Its fun to program in java when you have that disposition :) |
|
[23:13] <sadmac2> BufferedStreamReader *shudder* |
|
[23:19] <Keybuk> ;) |
|
[23:22] <Keybuk> make[2]: Entering directory `/home/scott/co/upstart/init' |
|
[23:22] <Keybuk> ../nih/nih-dbus-tool \ --mode=object --prefix=control --output=com.ubuntu.Upstart_object.c ../dbus/com.ubuntu.Upstart.xml |
|
[23:23] <Keybuk> schweet |
|
[23:23] <Keybuk> actually I should s/_object// for those |
|
[23:24] <Keybuk> that was only for the test suite |
|
[23:24] <sadmac2> yea |
|
[23:25] <sadmac2> anything in that Upstart file yet? |
|
[23:30] <Keybuk> not yet |
|
[23:32] <sadmac2> hm. I'll see if I can populate it tonight |
|
[23:32] <sadmac2> local lug meeting is in 1/2 hour downstairs. I'll probably be going to that. |
|
[23:40] <sadmac2> Keybuk: did you ever integrate that RPM patch I sent? |
|
[23:51] <Keybuk> err, which patch was that |
|
[23:51] <Keybuk> I thought I did |
|
[23:51] <sadmac2> Keybuk: it just added code to where you were ignoring .dpkg files to ignore some of rpm's weird things |
|
[23:51] <Keybuk> hmm, not on this PC |
|
[23:51] <Keybuk> let me commit that now |
|
[23:52] <sadmac2> Keybuk: I don't know where it would be in the new design |
|
[23:52] <sadmac2> Keybuk: I can't find even the dpkg stuff |
|
[23:52] <Keybuk> same place |
|
[23:53] <Keybuk> what was the ;[abcdefABCDEF0123456789] thing fabout? |
|
[23:54] <sadmac2> Keybuk: when rpm first puts a file down on the system, it puts it into place with a ;<some hex> appended to it. Then when everything is laid out, it moves them to the right name |
|
[23:54] <sadmac2> Keybuk: its an atomicity thing |
|
[23:54] <ion_> keybuk: I find com.ubuntu.Upstart nice. |
|
[23:54] <Keybuk> ah right |
|
[23:55] <ion_> So just ignore files with semicolons in addition to files with dots? |
|
[23:55] <Keybuk> ion_: we don't ignore files with dots anymore |
|
[23:56] <sadmac2> ion_: its ignoring files with ;<hex num>. I was able to match the pattern fairly simply |
|
[23:56] <Keybuk> the matching is somewhat smarter |
|
[23:56] <ion_> Oh, ok. |
|
[23:56] <Keybuk> wing-commander upstart% dbus-send --system --dest=com.ubuntu.Upstart --type=method_call --print-reply /com/ubuntu/Upstart com.ubuntu.Upstart.GetJobByName string:"foo" |
|
[23:56] <Keybuk> method return sender=:1.1567 -> dest=:1.1571 reply_serial=2 object path "/com/ubuntu/Upstart/jobs/foo" |
|
[23:56] <Keybuk> \o/ |
|
[23:56] <ion_> Btw, now that Fedora is going the Upstart way, will Red Hat follow? Sorry for my ignorance, but i have no idea how Fedora and Red Hat relate to each other nowadays. |
|
[23:56] <sadmac2> This calls for an image macro |
|
[23:57] <sadmac2> ion_: The rule was "Every 3rd fedora release becomes a RHEL" which would have meant f9 -> RHEL 6, but customers aren't really demanding a new version, so we'll probably wait. |
|
[23:57] <sadmac2> ion_: but yes, the next RHEL fork will almost certainly pick up Upstart |
|
[23:57] <ion_> Alright, nice. |
|
[23:57] <Keybuk> when is f9 out? |
|
[23:58] <sadmac2> Keybuk: days. there may be a gold version floating about now |
|
[23:58] <Keybuk> cool |
|
[23:59] <sadmac2> Not topical, but: |
|
[23:59] <sadmac2> http://people.fedoraproject.org/~sadmac/hula.jpg |
|
[23:59] <sadmac2> And now to LUG. l8r |
|
|