/srv/irclogs.ubuntu.com/2017/05/15/#launchpad.txt

=== chihchun_afk is now known as chihchun
vadi2How can I run the `source` command in a PPA? I'm trying to add Qt 5.6 via https://launchpad.net/~beineri/+archive/ubuntu/opt-qt562-trusty/+packages and that requires me to source a script to setup some environment variables before any of the Qt commands are found.05:14
wgrantvadi2: You'll need to adjust your debian/rules to set any required environment variables.05:15
vadi2oh, set them manually instead of using the script?05:16
wgrantvadi2: You can use any means to set them from within debian/rules, but it's not possible to run anything custom before debian/rules is invoked (eg. source in the containing shell).05:17
carakaWhen I use the beineri qt PPAs, I'm doing it inside a docker build container, so I can use a RUN command to source the script that sets the path correctly05:17
vadi2Yeah I'm doing it in a Launchpad build here and it just dies with "/bin/sh: 1: source: not found"05:19
carakaif you are doing it at launchpad, wgrant is your man05:19
wgrantvadi2: /bin/sh is dash, not bash, on Ubuntu.05:19
vadi2So I think I'll have to replicate what the script is doing instead of using source05:19
wgrantsource is a bashism.05:20
vadi2All I know is that qmake is not found and running source on qt56-env.sh makes it work in Travis05:20
wgrantYou also can't even use "." in a Makefile like you might in a shell script, because the naïve approach would just set the environment variables in the subshell for that one line.05:21
wgrantIf there's a build command that needs the makefile set, prefixing that line with ". qt56-env.sh && " or whatever might work.05:21
wgrantYou can experiment with this locally; Launchpad does nothing special here.05:21
vadi2okay! I'll try that05:22
vadi2Perhaps it would have worked but "/bin/sh: 7: /opt/qt56/bin/qt56-env.sh: [[: not found" suggests that script has the said "bashism" you speak of05:37
vadi2I have to wonder how do people get Qt 5.6 on Ubuntu 14.04 in a PPA build then05:38
wgrantvadi2: They could just set the environment variables manually in debian/rules, but you might have more like talking to KDE types.05:47
vadi2I'll look further. Appreciate your prompt help today!06:17
=== md_5- is now known as md_5
=== JanC_ is now known as JanC
=== geser_ is now known as geser
cjwatsonahoneybun: use git clone git+ssh://aaronhoneycutt@git.launchpad.net/... then, or https://help.launchpad.net/Code/Git#Configuring_Git to abbreviate that; you can also configure the default username for connections to git.launchpad.net in ~/.ssh/config07:27
=== tasdomas` is now known as tasdomas
=== BradCrittenden is now known as bac
=== chihchun is now known as chihchun_afk
=== dannf` is now known as dannf
mapreriNow, why did sinzui unassigned himself from so many "Fix released" bugs and caused such (imho inappropriate) mail flood?15:18
mapreri(and also if they are not "Fix released" they are all either "Invalid" or "Won't fix" so anyway "closed")15:18
ahoneybuncjwatson: I have nothing about config in ~/.ssh19:12
cjwatsonahoneybun: Sure, but you could if you wanted20:31
=== JanC_ is now known as JanC
ahoneybuncjwatson: http://pastebin.ubuntu.com/24583149/21:37
ahoneybunhttp://pastebin.ubuntu.com/24583150/21:37
ahoneybunthat one21:37
naccahoneybun: but you're not using the lp: insteadof21:41
naccahoneybun: so it's using (ssh is) your username (aaron)21:41
ahoneybunoh username on the machine21:41
naccahoneybun: i think it'd work if you did lp:~kubuntu-packagers/kubuntu-packaging/+git/kubuntu-settings21:41
ahoneybun\o/21:42
ahoneybunthanks nacc21:42
naccahoneybun: np21:49
cjwatsonright, and you could also put this in ~/.ssh/config in order for plain git+ssh://git.launchpad.net/... to work:22:07
cjwatsonHost git.launchpad.net22:07
cjwatson        User aaronhoneycutt22:07
cjwatson(creating that file if it doesn't already exist)22:07
nacccjwatson: good point :)22:08

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