/srv/irclogs.ubuntu.com/2016/05/27/#ubuntu-devel.txt

=== JanC is now known as Guest50625
=== JanC_ is now known as JanC
cjwatsonwgrant,mwhudson: 0 5,11,17,23 * * *00:41
mwhudsonyummy cron syntax00:42
mwhudsonevery 6 hours, at a wild guess one hour offset from when gina runs?00:42
cjwatsongina is 05 4,10,16,22 * * *00:43
cjwatsonso close enough, yes00:43
Unit193mwhudson: Is 42 */3 * * * any more fun? :300:45
mwhudsonUnit193: no it's all terrible00:45
mwhudsonapart from @daily, @hourly etc i can remember what those mean :)00:45
Unit193Or @reboot in that case.00:46
=== juliank is now known as Guest27344
=== juliank_ is now known as juliank
raymod2Does anyone know how to send a drag-n-drop event to another application programatically?01:42
raymod2I'm trying to send multiple *.kml files to google earth to be displayed on the same map.  But when I use g_app_info_launch_default_for_uri() the 2nd and subsequent files are rejected and google earth emits an error saying that an instance is already open.01:43
dobeythat's not DnD; seems like a bug in google earth that it doesn't support taking multiple kml files as command line args01:45
raymod2dobey - well the reason I am looking into DnD is because I can drag and drop additional *.kml files into the google earth window01:47
raymod2So I thought maybe my application can somehow send DnD events to a running instance of Google Earth to get it to do what I want.01:48
raymod2(rather than g_app_info_launch_default_for_uri)01:48
dobeywell i'm not sure what you're trying to do exactly. why are you using g_app_info_launch_for_uri()?01:49
raymod2That's how I send the first *.kml file to Google Earth.  It launches a new window and the KML is displayed properly.01:50
dobeywhat happens if you run "google-earth foo.kml bar.kml" ?01:50
dobeyfaking DnD is not the right answer here. it's certainly possible, but quite ugly and would be very disturbing for any user of your app01:51
raymod2Hmmm, it says cann't open file for reading.01:52
dobeywell, where foo.kml and bar.kml are two of the URIs you're trying to pass to google earth01:52
dobeyand google-earth is whatever the actual command for running google earth is01:53
dobeybut i don't think you want to run g_app_info_launch() anyway01:53
raymod2I hadn't tried opening a *.kml directly from a terminal prompt.  It doesn't work that way.01:53
dobeywhat doesn't work that way?01:53
raymod2It only seems to work with g_app_info_launch_default_for_uri().01:54
raymod2When I pass the *.kml on the command line Google Earth launches but then displays a dialog saying it can't open the file for reading.01:54
raymod2Just running "google-earth foo.kml" fails every time.01:55
dobeywell, what does "xdg-open foo.kml" do then?01:55
raymod2Yes, that works.01:55
dobeyand what happens if you do that while google earth is running?01:56
raymod2That tries to launch a new instance of Google Earth which outputs an error about another instance running - then the new instance crashes.01:57
raymod2"Google Earth appears to be running already. Please kill the existing process, or delete /home/dan/.googleearth/instance-running-lock if this is an error."01:57
dobeyso then google earth is broken and doesn't support any rpc to tell it to open another file i guess01:58
raymod2sounds like it.... but what about my DnD idea?01:59
raymod2I don't think Google cares about Linux so I suppose I need to find some hack to work around this.02:01
dobeywell i don't know what you're app is doing exactly, but i would suggest not relying on google earth being installed02:02
raymod2Well, it might be too much work to write a Google Earth clone from scratch!02:03
raymod2And how is it you don't know what my app is doing exactly?  I said what it is trying to do.  Load multiple *.kml files into Google Earth and display them simultaneously.  Do you know what a KML is?02:04
dobeyi know what a kml is. i don't know why you're writing an app to load kml files into google earth, when google earth already internally has support for loading kml files02:04
raymod2Also, why do you keep saying I shouldn't use g_app_info_launch_default_for_uri() for this?  That seems like exactly what this API is for.02:04
raymod2dobey, my app generates the KML files.  I want to display them without writing Google Earth from scratch.02:05
dobeybecause you want to pass multilpe URIs, not run N instances of google earth (or whatever mapping app might be installed)02:05
=== yuning-afk is now known as yuning
dobeyi presume you are using gtk+ or gnome libs?02:06
raymod2Well, I want to add these *.kml files at different times.  Not all at once.02:06
raymod2Yes, I am using GTK+ which of course gives me access to glib APIs.02:06
dobeyyou might want to look at using libchamplain, which provides a map widget, and i think has support for loading kml data02:07
raymod2That sounds like it will be a degraded user experience.  I've already got this working in Windows and OSX.  I'm just trying to port my application to Linux.02:08
raymod2I thought this would be easy since I am using GTK+.  Boy was I wrong.02:09
raymod2(this issue is one of many!)02:09
raymod2...but it seems to be the last roadblock02:09
raymod2Why do you think DnD is a bad idea?  It seems to be my only hope.02:14
dobeybecause having the mouse move randomly across the screen is never good02:15
dobeyand becasue it only increases the dependency on google earth existing02:16
raymod2I wasn't suggesting taking control of the mouse.  Surely there is an ABI for this.02:16
dobeyhow else would DnD work?02:16
raymod2How does the file manager send the DnD to the open application?  It doesn't need a user and a mouse to do this.02:17
dobeyyou have to initiate a drag, move the mouse to the other window, and then drop02:17
dobeyi don't think what you are calling DnD, is DnD02:18
raymod2DnD is just a form of interprocess communication.  The details of mouse pointers and mouse clicks is just a user input method that directs the application to what the user wants.  Then the application initiates the actual DnD somehow programmatically.02:19
raymod2Presumably the window manager plays a part in all this.02:19
dobeyDnD is not "just a form of IPC"02:20
raymod2My application accepts DnD events so I am not ignorant to how it works.  I need to send one rather than receive one.02:21
raymod2Does anyone else have anything to add?  I don't think dobey can help with this.02:27
RAOFraymod2: It *is* possible to send DnD events programattically, but this means you'll need to be implementing (one or more of) the (three) X11 DnD protocols.04:10
tjaaltonanyone using apt-mirror to mirror trusty? it's giving weird errors here..06:35
tjaaltonlooks like the skel-directory was corrupt06:42
sarnoldtjaalton: can you pastebin something? there were problems with the archive mirrors ~38 hours that might have caused trouble on downstream mirrors.. that problem should have been resolved 'everywhere' by now though06:47
tjaaltonsarnold: nah this was there for some time now, I'll let it sync the mirror before checking again. at least the skel-directory looks better now06:49
wgrantskel-directory?06:49
tjaaltonI think it's a local cache for apt-mirror06:49
sarnoldtjaalton: btw, skel-directory? my (not atp-mirror based mirror) doesn't have anything matching '*skel*dir*' ..)06:49
sarnoldahh06:49
wgrantAh06:49
wgrantYeah, not an actual thing.06:49
tjaaltononce it's in a consistent state the files are copied to the proper place06:49
tjaaltonone thing I noticed though is that we're not generating Contents files like debian?06:50
wgrantDebian moved their Contents files a while ago, and we haven't followed suit.06:50
tjaaltonright06:50
tjaaltonok06:50
tjaaltonis it planned?06:50
wgrantSpecifically, Debian's are now per-component.06:50
wgrantWe have no specific plans to follow that change.06:51
wgrantBut we're also not explicitly not.06:51
tjaaltonokay06:51
wgrantThere's just no pressing need to do that work, as far as we can tell.06:51
tjaaltonwhat about doing .xz files?06:52
tjaaltonPackages06:53
wgrantxenial added xz and dropped bz2.06:53
wgranthttp://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/06:53
tjaaltonah, indeed06:53
seb128slangasek, what's the status of https://launchpad.net/ubuntu/+source/command-not-found/0.3ubuntu16.04.1 ? there is no SRU bug so it looks like nobody in the SRU team is going to copy that over to updates, should a new upload be done? or the SRU team convinced to copy it without associated bug?06:58
=== athairus is now known as afkthairus
caribouIf I need to force an update of a package (kexec-tools) when new kdump-tools is installed, is a versionned Depends: sufficient or do I also need to add a Breaks: ?10:16
rbasakcaribou: a versioned Breaks is sufficient I think, if a newer version of kexec-tools is available. A Depends would additionally force both packages to be installed.10:25
caribourbasak: I'm currently using only a versionned depends which works correctly10:26
caribourbasak: just curious to know if the Breaks is better10:26
rbasakI don't think you need the Breaks, at least not for that specific requirement.10:28
rbasakAre you familiar with https://wiki.debian.org/PackageTransition? It should cover most cases.10:28
caribourbasak: that's what I tought also10:34
caribourbasak: I think I read this one recently; I went through so much of the Debian documentation lately that I'm a bit lost in what I read or not10:34
caribourbasak: thanks; I read part of it earlier but now it outlines another change in kexec-tools that needs to go in.10:37
caribourbasak: so you are correct; according to that, only a Depends: is sufficient10:37
=== hikiko is now known as hikiko|ln
=== hikiko|ln is now known as hikiko
brendandcan anyone think why there might be a clock skew from the host on a adt-virt-qemu created vm?12:28
brendandfor some reason it seems to be a few hours behind the host time12:40
=== mterry_ is now known as mterry
caribouIs it good practice to use distribution-specific variables (like $dist.Depends} in debian/control to avoid delta b/w Ubuntu and Debian ?13:27
caribouI have one kexec-tools dependancy that is specific to an Ubuntu delta that I'm getting rid of, but I'd like to avoid a delta in the depending package13:28
caribousorry for all those questions, but I _really_ want weed out as much delta as possible b/w kdump-tools & kexec-tools13:29
=== bladernr` is now known as bladernr
Odd_BlokeI'm trying to add an upstart job (on trusty) between networking coming up and cloud-init running; cloud-init-nonet has "stop on static-network-up" and cloud-init has "start on ... and stopped cloud-init-nonet"; if I set "start on stopping cloud-init-nonet" will my job block cloud-init running?13:42
Odd_Blokesmoser: (You might be able to help me with ^)13:42
smoserprobably not13:43
Odd_Blokesmoser: Do you know of a way of doing it?13:43
smoserlooking13:45
smoserxnox, ^ ?13:46
Odd_Blokexnox is on a boat this week, I believe.13:46
smoserhm.13:46
smoserOdd_Bloke, starting should work13:48
smoser(man starting)13:48
smoserinit(8) will wait for all services started by this event to be running,13:48
smoserand maybe stopping too13:48
smoseras it has similar text.13:48
smoserso yes, i think you're right13:49
smoseri'd give it a try with a task that does sleep 9013:49
Odd_BlokeOK, I'll try putting a sleep in and see if things block as... that.13:49
Odd_Bloke^_^13:49
Odd_Blokesmoser: Ah, http://upstart.ubuntu.com/cookbook/#task also has some relevant text.13:50
=== mnepton is now known as mneptok
Odd_Blokesmoser: Yep, "start on starting cloud-init" and "task" blocks cloud-init from starting until the "script" block is done.  Thanks for the help!13:55
Odd_Blokesmoser: (And without "task" it doesn't block)13:59
smoseryou could have probalby done it without task and a pre-start14:01
smoserbut task is probably right14:01
smoserif it is somethign that shoudl run to completion and be done14:01
smoserlike sleep 9014:01
smoser:)14:01
=== nacc_ is now known as nacc
naccslangasek: general question for you -- historically (and currently), do syncs occur from any release of Debian or primarily current testing, unstable and experimental? How exactly does experimental work? Are publishes in experimental considered part of the history of unstable (but a place to 'test' things for unstable?) I ask because the changelog entries for releases in each refer to the other series,15:21
naccso I'm trying to decide how best to handle them in the importer15:22
naccsigh, /me googles and maybe finds the relevant answers15:22
infinitynacc: autosyncs happen from unstable.  Manual syncs can happen from any of the three.15:35
naccinfinity: got it15:35
infinitynacc: A manual sync from experimental, however, will *not* track experimental, so manual syncing is required from thereon until unstable has a higher version.15:36
infinity(Perhaps a misfeature, but one we've lived with for a decade)15:36
naccinfinity: ah sure, that makes some sense, at least15:36
naccinfinity: luckily i'm not too worried about the process, i'm just trying to recreate the history in git :)15:36
naccinfinity: and our 'parent verification' doesn't work with debian's process yet, so i'm just trying to get my head around it15:37
infinitynacc: As for the Debian history of a package, that's muddier, as it's maintainer dependant.  Some people scrub experimental from history when uploading to unstable, some people don't.15:37
naccinfinity: yeah, that's what i'm noticing :)15:37
naccinfinity: up until now, we were only importing 'sid' explicitly ... but that led to us not finding syncs directly from experimental, if they never got pulled into sid at any time, so i'm adding experimental as a first step, but i'm realizing they are more intertwined than the ubuntu notion of series, so our existing code doens't dtrt15:38
infinitynacc: And to make it more exciting, some people will have revisions in there that have never existed in the Debian archive.  So, attempting to create a commit/tag for that revision won't work out too well. :P15:38
naccinfinity: yeah we've seen that a few times already :)15:39
naccinfinity: we only go of spph right now for creating tags15:39
naccinfinity:  we just do some sanity checks off the changelog entries15:39
rlaagernacc: By any chance, are you working on version control for all packages in the archive, with imports from Debian?15:41
infinityI suspect he's only working on a small subset he cares about.15:42
infinityUnless he's decided to do LP dev work and is actually making git package imports a thing for everyone.15:42
naccrlaager: it works for any package15:43
naccinfinity: starting small, but there's no reason it can't be used by others :)15:43
naccthere are lots of corner cases :)15:43
cjwatsonwhen I was doing version tracking in debbugs I decided that the correct thing to do was to infer the history from changelogs15:43
infinitynacc: You might want to poke cjwatson/wgrant and see if this overlaps with any future plans they had.15:43
naccinfinity: there are probably better ways to this fully w/in LP, my tool just takes the spph and applies an algorithm rbasak has devised15:44
naccinfinity: ack, will do!15:44
infinitycjwatson: That works better for debbugs than it does for attempting to actually break uploads into git commits, though.15:44
cjwatsonit might be a useful component of what we need to do; there are several other pieces15:44
cjwatsoninfinity: the git case is more complicated, but knowing which versions are parented to which other versions is still useful, I think15:44
nacccjwatson: yeah, we are treating the spph as "authoritative" and orphan'ing when things don't match that15:45
nacccjwatson: so everything will get tag, but not everythign will have a full 'git' history necessarily15:45
cjwatsonthe spph doesn't tell you the parent version, unless you parse the changelog15:45
nacccjwatson: right, in our algorithm, 'parent' is the previously published version15:45
nacccjwatson: we verify it against chagnelog, and handle some specific cases where they don't agree15:45
cjwatsonmm, which is sort of OK for a single distribution but doesn't deal with merges excellently15:45
nacccjwatson: rbasak is probably better at explaining the thoughts behind the algorithm, but let me share the doc with you15:46
* rbasak is otp15:47
cjwatsonnacc: ok, I don't really have time for an extended discussion right now :)15:47
cjwatsonwas just drive-bying15:47
nacccjwatson: np! i'm not doing it justice15:47
nacccjwatson: i haven't hit a merge yet where the algorithm gets confused, but i've only tested a small set of packages15:48
nacctbh, the issues we've hit so far have all been with just the normal history being ... unexpected :)15:48
naccrbasak: if/when you are off the phone, would appreciate a minute of your time15:52
rbasakack15:52
slangaseknacc: syncs can happen from any Debian suite, but autosyncs all happen from a single place (unstable, with I think only one historical exception for an LTS).  Syncs from experimental can be done individually (as we did last cycle for a few php packages).  Whether it's part of the "history" of unstable or not is entirely package-dependent; you can infer some of this from debian/changelog15:57
naccslangasek: thanks15:58
slangasekseb128: command-not-found> gah, sorry, seems this fell off my radar.  publishing it now (Friday or not)15:58
seb128slangasek, thanks15:58
rbasakUnfortunately debian/changelog misses history some times, and I'd prefer the git history to show what was actually published and available to users rather than what the changelog shows.16:03
rbasakThat makes it a little difficult to decide what the parent of a particular upload is. I think there's a fundamental dissonance between how the archive is organised and what I think git history should show. So I think it's necessary to do some heuristics to do a reasonable job in a bunch of common edge cases.16:05
rbasaknacc: ping. Hangout?16:05
slangasekrbasak: we're talking about a separate branch (unstable vs. experimental); unless you have an actual git repo, you can't infer anything about the merge topology /except/ by looking at debian/changelog16:12
rbasakslangasek: for an Ubuntu merge, we're doing something a little odd, but I think it works.16:12
slangasekhmm16:12
rbasakA merge ends up with two parents. One of them is the claimed parent in debian/changelog16:12
rbasakThe other is what was previously in the pocket.16:13
rbasakI think.16:13
naccyeah16:13
slangasekright, that doesn't sound odd to me at all, that sounds correct ;)16:13
slangasekand consistent with the prior art on this in UDD16:13
rbasakBut except for the merge case, we're picking one parent.16:13
rbasakI favour picking the one in LP publishing history, because that's what users saw. It'd be confusing for it not to match I think, for example when working out why something happened from the history.16:14
rbasakEven though sometimes for example an Ubuntu uploader will not leave a deleted SRU proposed verification-failed entry in the changelog in an upload that supsersedes it.16:15
slangaseknot sure I understand, "except for the merge case"16:15
rbasakLet me take an example. In sid, the maintainer uploads version A, there is an NMU of A.1, and then the maintainer uploads B.16:15
rbasakSometimes when he uploads B, A.1 isn't in debian/changelog.16:15
rbasakIf we rely on debian/changelog to determine the parent, then A.1 will be tagged but otherwise unreachable, and not in our imported history.16:16
rbasak(of the sid branch tip)16:16
slangaseker, right, yes16:17
slangasekin that case it's a single branch (unstable) and the history should match the upload history16:17
rbasakOK. I think we agree :)16:17
slangasekbut unstable vs. experimental are different branches, just as unstable and Ubuntu devel series are different branches, and for *that*, you only have the changelog to hint you about the merge topology16:17
rbasakBut, experimental could jump ahead. An experimental upload could be based on a newer unstable, or on the thing that was previously in unstable.16:19
naccrbasak: https://launchpad.net/debian/+source/exim4/+publishinghistory?batch=75&memo=150&start=150 is the one i'm looking at now16:19
mapreriLaney: can you prod dep11-generator for scribus/xenial-proposed? /cc ximion19:23
=== afkthairus is now known as athairus
ximionit really is time that I give Laney his immutable suites, so he doesn't have an excuse other than ENOTIME to switch to asgen...19:25
* mapreri -eparse ximion's message, but guess it was not address to him anyway19:27
ximionappstream-generator is the new thing which doesn't have some of the flaws dep11gen has19:31
worralphwhen building debian packages is there a way to check for unpackaged files under debian/tmp?20:45
cjwatsondh_install --fail-missing is the usual approach20:46
worralphcjwatson: isnt fail missing the default and it only fails if you specified the file in *.install? i want to have the same behaviour as rpm which is something like unpackaged files20:57
worralphcjwatson: thanks i figured out i need to override dh_install21:03
dobey--fail-missing isn't the default no21:06
Unit193Not even --list-missing..21:07
dobeyfiles listed in *.install which don't exist in the install path, do fail by default, but that is not the same as --fail-missing21:08
worralphthanks21:33
=== DropItLikeItsHot is now known as AfroThundr

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