/srv/irclogs.ubuntu.com/2016/05/16/#launchpad.txt

karstensragei recall i resource i was following to test ppa's on sbuild chroots01:50
karstensragei have an library which depends on another library both are ppa's01:51
karstensrageso how to get the chroot to know about the first one01:51
karstensragecant find the resource anymore01:51
maprericjwatson: btw, is this main/debug suite documented somewhere?  I couldn't find it in https://help.launchpad.net/Packaging/PPA/*08:02
cjwatsonkarstensrage: Easiest way is to use a recent version of sbuild that has the --extra-repository and --extra-repository-key options.08:23
cjwatsonmapreri: Possibly not.  I'm not quite sure where to put it; none of the existing pages there seem to be a very good fit.08:24
maprericjwatson: imho https://help.launchpad.net/Packaging/PPA/InstallingSoftware is the best place within /Packaging/PPA/08:25
mapreribut yeah, probably not great and that page is already quite long.08:25
cjwatsonI don't want to risk confusing novice users further, really08:35
=== JanC is now known as Guest47278
=== JanC_ is now known as JanC
karstensragecjwatson, Version: 1.0-115:00
cjwatsonkarstensrage: That is not a credible version of sbuild15:00
karstensrageoh sorry15:00
karstensragesbuild --version15:01
karstensragesbuild (Debian sbuild) 0.62.6 (07 Dec 2011)15:01
cjwatsonkarstensrage: mm, it's much easier with 0.66.0 or newer.  If you can't upgrade to that then it's easiest to just edit /etc/apt/sources.list temporarily15:01
karstensragecjwatson, am i correct in my interpretation that what your suggesting requires the ppa of the dependent library to already exist in launchpad?15:04
cjwatsonkarstensrage: I don't think so, but perhaps you could clarify your terms15:06
cjwatsonmaybe some concrete examples would help15:06
karstensragesure15:06
cjwatsonyou said "both are PPAs" so I'm not sure why this is an issue15:06
karstensragewell i meant both WILL be PPA's15:06
karstensragethey are not yet15:06
karstensragei mean they are, but there are updates15:07
cjwatsonso, apt in the chroot needs to be able to resolve the build-dependencies of whatever you're building15:07
karstensrageyeah15:07
cjwatsonyou can achieve that by pointing it at a PPA containing those build-dependencies if they aren't in the primary archive, or just by building a temporary local archive and pointing it at that15:08
karstensragewith .66?15:08
cjwatsonmodern sbuild has --extra-package which makes this much less hassle, but you don't have that15:08
cjwatsonwith an older sbuild you can just edit /etc/apt/sources.list to point it wherever15:08
karstensragebut i have to modify that /etc/apt/sources.list in the chroot right?15:09
cjwatsongiven chroots it's probably easiest to have it on the network; PPAs will fulfil that for you and deal with the mechanics of building a repository, but it's perfectly possible to run apt-ftparchive over a local directory and slap that on a local web server15:09
cjwatsonwith your version of sbuild you'd either have to modify /etc/apt/sources.list in the chroot or just preinstall the relevant build-depended-on library packages in the chroot, yes15:10
cjwatsontaking care to clean things up afterwards15:10
karstensragecan i update my sbuild?15:11
cjwatsonall things are possible15:11
cjwatsonI don't know how fiddly installing xenial's version of sbuild on precise is going to be15:11
cjwatsonit doesn't sound like something I would want to do for fun15:12
cjwatsonthere are some complicated interactions with libdpkg-perl15:12
cjwatsonyou could try the backport in https://launchpad.net/~launchpad/+archive/ubuntu/buildd-staging/+packages, which has --extra-package and --extra-repository but not --extra-repository-key15:13
cjwatsonso you could use that and not try to install from a PPA; instead, use --extra-package a few times to point to all the depended-on library .debs you've built locally15:14
cjwatsonbut disclaimer, I've only used that package in the context of Launchpad builders15:15
karstensragehmmm15:21
karstensrageok15:21
karstensrageoh hmm15:22
karstensragemy next question seems perfect for you15:22
karstensragehow do you handle the idea that nothing changes really in the changelog but the naming.. and since its linear only the last change actually is taken as the name15:23
karstensrageso for example... https://launchpad.net/~launchpad/+archive/ubuntu/buildd-staging/+sourcepub/6082554/+listing-archive-extra15:24
karstensragethe name is either sbuild - 0.65.2-1ubuntu2~ubuntu12.04.1~ppa8  or sbuild - 0.65.2-1ubuntu2~ubuntu14.04.1~ppa815:24
karstensrageso its the same entry with different name and the time is 1 minute later15:28
cjwatsonkarstensrage: the name is just "sbuild"; the other bit is the version15:32
cjwatsonkarstensrage: and I normally just edit it directly with dch, it's not especially hard to do so, but you can automate that locally if you like15:33
karstensrageyeah i wrote a python script to template that out with jinja215:40
karstensragehm ok15:40
cjwatsontemplating seems rather too likely to end up dropping old entries15:41
cjwatsonbut depends how you do it I'm sure15:41
karstensragei just template the last entry15:43
karstensragethis is the ppa i would add to my precise packaging machine to get all your newer stuff  ppa:launchpad/ppa  ?15:48
karstensragecjwatson?15:49
cjwatsonkarstensrage: the one I pointed you at earlier was ppa:launchpad/buildd-staging, not ppa:launchpad/ppa15:51
cjwatsonppa:launchpad/ppa has a whole pile of random other stuff you probably don't want15:51
karstensrageoh ok, i was a little confused cause that page doesnt have the technical details about this ppa with the  stuff for adding15:54
karstensragesorry15:54
cjwatsonright, drop /+packages from the URL for that15:56
karstensragewoo16:01
karstensragesbuild --version16:01
karstensragesbuild (Debian sbuild) 0.65.2 (24 Mar 2015)16:01
karstensragethanks cjwatson16:02
cjwatsonnp16:20
karstensragehmm i use the --extra-package=mylib.deb and it doesnt seem to find it or use it17:50
karstensragethere is no reference to it in the build17:51
karstensrageother than having it on the command line17:51
nacckarstensrage: does it make any difference if you provide the full path?17:52
karstensrageill try that17:53
nacckarstensrage: i've used --extra-package in some of my scripting, but i've always passed in full-paths it seems :)17:53
nacckarstensrage: was 'mylib.deb' was in . ?17:53
naccerr, without one of those was's :)17:53
karstensrageyes17:53
karstensrageit was in .17:54
cjwatsonI believe relative paths should work, but you do still have to build-depend on something that causes it to be installed17:56
cjwatson--extra-package makes it available for resolution; it doesn't forcibly install it17:56
nacccjwatson: ah yes, good point :)17:56
karstensragewell build-depends lists it17:58
karstensragethis all in debian-testing17:58
karstensrageits been ported to xenial17:58
karstensrageim working on testing things for backports to precise and trusty17:59
karstensrageit works flawlessly but they wont take my word for it17:59
karstensragehmm still doesnt work18:00
karstensragethe .deb im using has the right thing in it, but how does it resolve the right thing?18:01
nacckarstensrage: iirc, --extra-package just creates a side repository with whatever you specified in it18:04
nacckarstensrage: you could pass -pnever and debug what is going on in it?18:05
karstensragenot sure what -pnever is18:10
karstensrageim doing -D to see if anything shows18:11
karstensragenope18:21
karstensrageseems like it doesnt pass in the extra-package18:21
dobeyis it the newest version available versus what is in other archives being used?18:26
karstensragei updated to .6618:28
karstensragesorry .65.218:29
karstensragewith cjwatson's help18:29
nacckarstensrage: -p is the purge mode18:33
nacckarstensrage: if you tell it never, it'll leave your sbuild env around, so you can schroot over to it and see what it sees18:33
karstensrageqh18:34
karstensrageah18:34
nacckarstensrage: i think dobey meant, though, for the package in question, is your version > the version in the archives?18:34
karstensragethe version in the archives?18:37
karstensragesorry18:37
dobeywell what isn't working exactly?18:37
dobeyyou haven't described what isn't working, only complained that it isn't18:38
karstensragei am trying to sbuild my library on precise18:38
karstensragemy library is dependent on another library that builds on precise fine18:38
cjwatsonI think nobody is going to be able to help you meaningfully unless you post your source package and the build log somewhere18:38
karstensragebut the chroot doesnt have that 2nd library18:38
dobeyand the full sbuild command18:39
cjwatsonwithout all that information that you have, anyone else is going to be wasting their time making guesses and playing infinity-questions18:39
cjwatsonindeed, that too18:39
dobeyso it's failing to satisfy the depends during the build?18:39
karstensrageyes18:42
dobeyplease pastebin the log and the sbuild command you used to run sbuild with then18:47
karstensrageok18:52
karstensragei get a build.gz and a build.summary19:09
karstensragewhich would you like19:09
karstensragehttp://pastebin.com/XfP3BTNn19:13
karstensragethere is the command at the top and the paste of19:13
karstensragelibpam-ufpidentity_1.0-1_i386-20160516-1142.build19:13
dobeykarstensrage: as i suspected. you can't pass only the -dev package. you'd need to pass the libufpdidentity1 or whatever .deb also with --extra-deb. any additional packages which are required to satisfy the depends must *all* be passed with --extra-deb args19:18
dobeyof course the -dev can't be installed when the binary package it depends on isn't available19:18
karstensrage--extra-package?19:21
dobeyyes19:22
karstensragetrying again with three --extra-package19:22
karstensrageits slowed down since this morning19:27
karstensragetakes quite a while19:27
* karstensrage will have another cappuccino19:27
karstensragewoot19:36
karstensragesuccess19:37
karstensragethank you so much dobey, and nacc and cjwatson19:37
karstensragethats cool19:37
karstensrageso i had no idea thats how the .deb's worked...i figured if the file needed was in the particular .deb, that would be all that was needed. sorry for the confusion19:38
=== blr_ is now known as blr

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