/srv/irclogs.ubuntu.com/2019/06/09/#ubuntu-devel.txt

TJ-When using sbuild, and a package with source/format "3.0 (git)" do we have to manually add 'git' as a Build-Depends ?09:49
alkisgcyphermox: hi, while developing ltsp-next, I noticed that in 19.04 initramfs, ./etc/dhcp/dhclient-enter-hooks.d/config writes:14:38
alkisgecho "IPV4DNS0=$new_domain_name_servers" >> /run/net-$interface.conf14:38
alkisgI.e. all DNS servers (in my case 3) in IPV4DNS0; this makes netplan show some errors14:38
alkisgSorry for not filing a bug report as it's a little complicated where the issue is (dhclient or netplan) and I'm not using netplan; just thought I'd ping here even if it's lost14:39
=== transfusion3 is now known as transfusion
cjwatsonTJ-: I really wouldn't use source format 3.0 (git).  It was experimental and never got much adoption16:10
cjwatsonTJ-: Pretty much everyone is using 3.0 (quilt) for your sort of use case, often with the quilt patches actually being automatically generated from git commits (using gbp pq or git-dpm or possibly others)16:12
TJ-cjwatson: hmmm, can you tell me what I should use for working from pure git from upstream? When it was set to quilt I was getting failures due to missing tarball, and couldn't figure out the correct process to create it!16:12
cjwatsonI just did :)16:12
cjwatsonOh, missing tarball16:13
TJ-cjwatson: but the debian/ directory isn't done with that, and I've made no changes to the upstream, I'm just trying to get the initial package correct!16:13
cjwatsonDo upstream not make releases?16:13
TJ-cjwatson: no, and no tags in git either16:13
cjwatsonWell then you do need to produce one, but that's not really a Debian question16:14
cjwatsonNo make dist or equivalent?16:14
TJ-cjwatson: its network-manager-wireguard https://github.com/max-moser/network-manager-wireguard16:14
cjwatsonI am not going to look16:14
cjwatsonOther things to do16:14
TJ-cjwatson: from what I can tell he copied the build system from network-manager-openvpn16:14
cjwatsonI know nothing of the specifics16:14
cjwatsonYou basically just want a tarball that has say network-manager-wireguard/ at the top level16:15
TJ-I can't find any docs on how to deal with this when there is no upstream release/tarbal/tags16:15
cjwatsonExact naming doesn't really matter16:15
cjwatsonYou could try git archive16:15
TJ-right, actually, I did use that (!!) last night but that a long time after I'd switched from quilt to git... maybe I should switch back!16:15
cjwatsonBut is it an autoconfy upstream?  It probably has a perfectly good make dist if so16:16
cjwatsonAnyway, as long as it's a tarball that pretty much unpacks to what you get from git, it should do16:17
cjwatson(except for the .git itself)16:17
TJ-My main problem though as been the debhelper autoreconf invocation is NOT calling intltoolize and as result (in sbuild) config.status rails due to missing po/Makefile.in.in - intltool is a build-dep and I've been into the schroot chroot and checked the intltoolize is there16:17
TJ-Yes, it has an autogen.sh, and configure.ac16:17
cjwatsonIf there's an autogen.sh then you should tell dh_autoreconf to run that16:17
cjwatsondh_autoreconf -- ./autogen.sh16:18
cjwatsonIn an override_dh_autoreconf rule16:18
TJ-If I build locally, calling ./autogen.sh it's fine (because that specifically calls intltoolize ) but couldn't figure out why dh_autoreconf wasn't doing likewise, from its man-page it implied it would do that for me :)16:18
TJ-ahhhh, specific call?16:18
TJ-thanks16:18
cjwatsonman dh_autoreconf says no such thing16:18
cjwatsonIt says that it calls autoreconf -f -i16:18
cjwatsonWhich is not necessarily the same thing as a custom autogen.sh if a package has one of those16:19
TJ-it does16:19
cjwatsonSee the bit under OPTIONS starting with "program -- params"16:19
cjwatsongrub2 uses "dh_autoreconf -- ./autogen.sh" in its debian/rules because the autogen.sh is a specialised custom thing16:20
TJ-it says "export LIBTOOLIZE = true" - I thought that would include the intltoolize :)16:20
cjwatsonEr no16:20
cjwatsonNot even a little bit16:20
TJ-cjwatson: OK, now it makes sense !16:20
TJ-let me try your override command, there is already one in place but not with that on it16:20
cjwatsonautoreconf(1) doesn't have any integration for intltoolize16:20
cjwatsonSo no simple environment variable setting will do what you're looking for16:21
TJ-cjwatson: thanks, it's been a weekend of confusion heaped on confusion so far16:21
cjwatson(Also, slightly confusingly, "export LIBTOOLIZE = true" actually means "run 'true' instead of 'libtoolize'", i.e. *disable* libtoolize)16:21
TJ-cjwatson: yeah, I got that nuance16:22
TJ-I was surprise it wasn't 'false' :)16:22
cjwatsonI imagine that would cause autoreconf to run false and then bail out because its exit code is non-zero16:22
TJ-I thought likewise ... return codes do turn binary/bool results on their head :)16:23
cjwatsonLots of ways to fail, only one way to succeed16:23
cjwatsonis perhaps an easy way to remember it16:23
TJ-indeed, and I've failed in every way possible this weekend!16:23
TJ-In my shell scripts I do a lot of if $VAR; then ... and setting VAR to /bin/true or /bin/false16:24
cjwatsonSure, I use that sort of idiom as well16:25
cjwatson(Though I omit the path prefix)16:25
TJ-cjwatson: I don't trust myself not to have at some time created a true or false somewhere else in the PATH :P16:26
TJ-well, it sees the change in debian/rules :D " checking build system type... Invalid configuration `./autogen.sh': machine `./autogen.sh' not recognized"16:29
cjwatsonWhat exactly did you type in debian/rules?16:31
cjwatsonOh, blah, sorry, I meant dh_autoreconf ./autogen.sh16:32
cjwatsonDrop the --16:32
cjwatsonI was confused by an unrelated thing in grub2's code16:33
TJ-aha! thanks, I dropped into the chroot and noticed in config.log "$ ./configure --enable-maintainer-mode ./autogen.sh"16:35
TJ-cjwatson: thanks - I've got past the packaging errors now, on to the upstream problems :)16:41
cjwatsonCool16:41
=== blaze` is now known as blaze
TJ-sbuild on/for 18.04, getting a Lintian warning "appstream-metadata-in-legacy-location usr/share/appdata/..." -- but looking at "dpkg -S" seems like that is the place for appdata. Do I need to change this or figure out how to add a lintian override (I've seem people talk about those but never done one) ?19:07
TJ-20:06 <TJ-> grrr, asked in the wrong channel and only just realised!19:07
alkisgTJ-: https://lintian.debian.org/tags/appstream-metadata-in-legacy-location.html19:15
alkisgAll lintian tags have excellent documentation19:16
TJ-alkisg: thanks19:19
alkisgnp19:19

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