/srv/irclogs.ubuntu.com/2015/07/08/#launchpad.txt

tytelhello! i'm running into some issue with a ppa build. hoping to find some help :)06:28
tyteli have a ppa that works fine when i build it on my machine, but when i build it on the ubuntu servers, i sometimes get "Illegal instruction (core dumped)"06:28
tytelit's weird, some of the builds work fine.06:29
tyteland per build the errors are consistent. That is, either I always get "Illegal Instruction" or it works all the time06:30
wgranttytel: "per build"?06:32
wgrantSurely it either fails once or it doesn't fail at all.06:32
geseron which architectures do you get this error?06:32
wgrantHow can it fail consistently?06:32
wgrantA failure should terminate the build...06:32
tytelwgrant: what i mean is it's not like an intermittent seg fault06:34
tyteleach build i download either works all the time, or none of the time06:35
wgranttytel: I still don't understand what you mean. Can you give specific examples?06:35
tytelgeser: i386 though I've had two people test it on amd64 and one worked and one didn't06:35
wgrantOh.06:36
wgrantSo the build isn't failing, but it breaks when you run the executable?06:36
tytelwgrant: yes06:36
wgrantSounds like your build process is erroneously tailoring the code it generates to the CPU it's built on.06:36
wgranteg. it builds on a machine that supports AVX, so it uses AVX in the generated object code.06:37
wgrantWell-behaved build systems shouldn't do that, for this sort of reason :)06:37
wgrantThey should build for the lowest reasonable denominatorr.06:37
tytelwgrant: I found a -march=native in the Makefile. Is that the problem?06:37
wgranttytel: That's the one, yep.06:37
wgrantDrop that and all will be good.06:37
wgrantWell, unless it does other mischief.06:37
tytelwgrant: thanks, should it be set to something else or just totally dropped?06:38
wgranttytel: The defaults are sensible, so dropping it should be fine.06:38
tytelok thanks06:38
wgrantmarch=native never makes sense for anything that is going to be distributed.06:38
wgrantIf I built it on my Haswell machine, it won't run on anything earlier than Haswell.06:38
tytelwgrant: the Makefiles were autogenerated :/06:39
tyteli was just along for the rid06:39
tytele06:39
wgranttytel: Hopefully whatever generates them has an option.06:40
tytelwgrant: thanks again for the quick help06:44
wgrantHopefully it's just that one option!06:45
tytelwgrant: this one worked! hopefully that fixed it :)07:12
wgranttytel: Excellent.07:15
wgranttytel: Note that the PPA build farm runs on a couple of different generations of servers, so it could just have been luck this time.07:16
tytelwgrant: ok thanks for the heads up.07:16
Madkisshi folks08:12
MadkissI have a problem with launchpad ppas. My ppa has a backported version of php (5.4) for Trusty. Obviously, Trusty itself has newer packages of php.08:13
MadkissWhen I try to build packages for PHP 5.4, the builders will not automatically choose the php 5.4 from the same repo, but use the nwer packages from the official repository instead08:13
Madkisshow can I add something like apt preferences to a PPA?08:14
maxbYou cannot08:14
MadkissSo I'll have to build php 5.4 with an epoch?!08:15
maxbOptions are an epoch or changed binary package names08:15
MadkissOkay, thanks.08:15
mapreriMadkiss: as: builder always pick up the higher version available of everything.08:19
MadkissYeah, well.08:19
MadkissIf I can make it work with an epoch, I guess that'll have to do for now.08:20
dobeyMadkiss: don't use an epoch13:28
dobeyMadkiss: if you are building something else that requires php 5.4, then in its build-depends you should specify that it requires 5.4 and not 5.5 or whatever13:28
dobeyie "php (>= 5.4), php (<< 5.5)" or similar13:29
dobeyor fix the thing to work with the new php13:29
dobeynot sure why you want to use an old insecure version really13:29
Madkissdobey: well. profit. ;)13:43
dobeyi didn't realize that deploying versions of software with known exploits meant profit ;)13:52
Laneydepends who for16:03
jeroen___Hello. I have a question about gpg signing in Launchpad.16:25
jeroen___I'm trying to understand the difference between how maintainers sign packages on launchpad and on debian sid.16:26
jeroen___When I upload a package to launchpad I only sign the source package. When a user installs the package from launchpad, he has to first import my gpg key. But what I don't understand is how Launchpad can sign the *binary* build of the package on my behalf. I only signed the source package?16:29
dobeyjeroen___: no, the binaries are signed with a different key, not yours16:30
jeroen___So why does the user have to import my gpg key to install the packages?16:30
dobeyjeroen___: a new gpg key for your ppa is created when you first create the ppa. binaries are signed with that key16:30
dobeythe user doesn't have to import your key. the key for the PPA has to be imported16:30
maxbYour signature on the source package enables Launchpad to trust that you uploaded it. Launchpad's signature on the repository enables the user's computer to trust the package was produced by Launchpad on your behalf.16:32
jeroen___aha so this key is not on the gpg keyserver at all? How is the user supposed to authenticate this key?16:32
maxbLaunchpad uploads the keys it generates to the keyservers.16:32
dobey"sudo add-apt-repository ppa:owner/ppa" automatically imports the key16:32
maxbThe user's means of authentication is to get the key fingerprint from your PPA page on https://launchpad.net/16:33
cjwatsonSimilarly, on Debian, users don't trust your signature directly, they trust the signature on the archive.16:33
cjwatsonIt's just that Launchpad has lots more archives.16:33
jeroen___Yes but on debian all binary packages are signed with the master key that is included with the distro.16:34
cjwatsonBinary packages aren't signed, the whole archive is.16:34
jeroen___Yes sorry16:34
cjwatsonAnyway, it makes sense to sign each archive separately.16:34
cjwatsonRather than just having a sort of amorphous expanding cloud of trust.16:35
dobeyindeed16:35
cjwatsonThis way e.g. a malicious proxy can't substitute a different PPA for the one you thought you were using.16:35
jeroen___The part that is unclear to me is how the user/client can safely import this autogenerated key from my ppa that is supposed to represent me but wasn't really made by me.16:36
cjwatsonMost users won't know you any better than the Launchpad-generated key16:37
cjwatsonThe initial setup (perhaps unfortunately, but better than nothing) relies on HTTPS to launchpad.net16:37
jeroen___I know, but I want to understand the chain of trust here16:37
cjwatsonSo they have to trust the integrity of Launchpad, which is the case anyway since Launchpad is doing the builds16:38
dobeyjeroen___: as i said, when one runs "sudo add-apt-repository" to add a ppa from launchpad, it imports the key as well16:38
dobeyjeroen___: that's how the client "safely" imports the key16:39
cjwatsonIt's correct for Launchpad to sign the archive containing the binaries that it produced; if you want to think of it this way, that signature certifies that the only sources that make up that repository were put there by somebody with authority to upload to it16:39
cjwatsonBut also the integrity of the other parts of the archive that didn't come directly from you16:39
Robeohai17:00
jeroen___mmkay17:02
Robecjwatson: I noticed that the source branches in https://code.launchpad.net/ubuntu/+source/curl seem to contain applied patch series17:04
Robeis this the code imported by the build bot after the source tree has been prepared for building?17:04
dobeyRobe: the archive builders don't build from the bzr imported branches, no17:24
dobeybut yes, i think the branch importer does import with patches applied17:24
Robethanks17:25
RobeRhonda is currently explaining dpkg v3 to me in another channel ;)17:25
dobeysource format 3.0 you mean?17:26
Robeyesh17:26
cjwatsonRobe: those are auto-imports, yeah, also frequently broken and heading towards deprecation in favour of something git-based, so don't get too used to them19:12
Robecjwatson: thanks!19:33
Robecjwatson: these repos are just for documentation purposes - the authoritative source sources (!) are still the uploaded tarballs containing the upstream releases and maintainer changes, right?19:38
=== kostja_o1ipov is now known as kostja_osipov
=== mwhudson_ is now known as mwhudson
=== mwhudson is now known as Guest82160
=== Guest82160 is now known as mwhudson
mordredlifeless: it's possible it woudl be more productive for me to ask you this here23:38
mordredlifeless: this is all related to the private team swift-private23:38
mordredhttp://paste.openstack.org/show/356693/23:38
mordredwe have not used the team in almost 5 years :)23:38

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