/srv/irclogs.ubuntu.com/2016/01/18/#launchpad.txt

=== geser_ is now known as geser
toan_hi, I am creating a build recipe, and that I store the build dependency (debian folder) in a different branch of the dev branch.... ie) dev branch hello/trunk, control files would be in hello/recipe... I want to know if that's acceptable... or is there a better way?16:53
toan_so, when i build the package, its a matter of merging the dev branch and the recipe branch16:54
cjwatsonThat sounds like the kind of thing you can do with "nest" or maybe "nest-part" depending on the exact layout16:55
cjwatsonThe directory has to end up being called "debian" and at the top level of the source tree at the point when the source package is built by the recipe build, but it's up to you how you get it there16:55
toan_cjwatson, yeah you're right, but is it good practice to store the recipe in another branch of the project, or should i create another project just to save the control files16:55
cjwatsonPersonally I strongly prefer having full-source branches, so my packaging branches are descendants of the upstream branch and contain the full upstream source code, and I merge when new upstream releases happen.  But there are various schools of thought on this.16:56
cjwatsonCreating another project seems overkill.16:57
toan_cjwatson, i see that some people create another project for the control files, that's why I am asking16:57
cjwatsonAnother project in the technical Launchpad sense, or are you using that term loosely?  URLs would help.16:58
toan_well, if you look at project enlightenment-svn, some build dependencies are stored in another project... The files are not stored in the same project or in a different branch17:00
dobeyhaving a branch that contains the contents of debian/ under the same project is fine17:00
cjwatsonWhich particular recipe are you talking about?  lp:enlightenment-svn has 23 recipes, I'm not looking through them all17:01
cjwatsonURLs please :-)17:01
toan_dobey, thanks for the comfirmation, it just makes more sense to do that,,,17:01
toan_cjwatson, hang on17:02
toan_https://code.launchpad.net/~hannes-janetzek/+recipe/e20-daily17:02
toan_in there, he pulls in the debian control folder from ubuntu17:03
cjwatsonUh ... not as far as I can see17:03
toan_enlightenment-svn is his personal repo17:04
cjwatsonEverything in that recipe comes from the same project17:04
toan_but lp:enlightenment-svn is Ubuntu's17:04
dobeyno17:04
cjwatsonNo it's not17:04
toan_i though everything that starts with lp: is from Ubuntu17:04
toan_Ubuntu repo17:04
cjwatsonNo17:04
cjwatsonlp: is just an abbreviation for bzr+ssh://bazaar.launchpad.net/ or https://bazaar.launchpad.net/ depending on what the client can do17:05
cjwatsonIt just means it's hosted on Launchpad17:05
dobeythat is a project that person created for building daily packages of enlightenment for ubuntu on launchpad17:05
cjwatsonlp:enlightenment-svn is shorthand for https://code.launchpad.net/~enlightenment-git/enlightenment-svn/packaging17:05
cjwatsonAnd it's totally user-owned17:05
cjwatsonThe two branches in use in that recipe are lp:~hannes-janetzek/enlightenment-svn/e20-git and lp:enlightenment-svn, which are two different branches attached to the same project17:06
toan_sorry for my ignorance, how do you know this:  lp:enlightenment-svn is shorthand for https://code.launchpad.net/~enlightenment-git/enlightenment-svn/packaging17:06
toan_the relationship17:07
jelmertoan_: bzr info lp:enligtenment-svn17:07
cjwatsonGo to https://code.launchpad.net/enlightenment-svn and you'll see a link which goes there17:07
toan_do you have to search the site to findout17:07
toan_oh17:07
cjwatsonOr what jelmer said, or https://code.launchpad.net/+branch/enlightenment-svn takes you straight there17:07
cjwatson(you can always replace lp: with https://code.launchpad.net/+branch/ to find out what it expands to using only a browser)17:08
cjwatsonAnyway, in general, lp:<project name> is whatever the maintainer of that project has designated to be the development focus branch for that project17:08
cjwatsonIt usually has nothing much to do with Ubuntu17:09
toan_oh17:09
cjwatsonYou would normally expect lp:~<user>/<project>/<branch> to be branched off lp:<project>, or at least to be closely related, but it's not actually mandatory17:10
toan_cjwatson, to have a lp:project, one has to register the project with launchpad right?17:10
toan_b/c I have only been creating personal branches,17:11
cjwatsonYes17:11
toan_ok, that's what I haven't gotten into yet, only experimenting with personal/user branches17:12
cjwatsonBut if it's based on an existing project's code, you should push branches to that project (lp:~your-username/project/branch-name) rather than creating a new project, which would be clutter17:12
roadmrhm, how does one create e.g. lp:ubuntu/xenial/checkbox? I tried pushing directly and got an error. The dput went through OK, so it's not critical, just curious17:12
cjwatsonroadmr: one doesn't17:12
cjwatsonroadmr: creating the default branch there is a privileged op, but the importer is currently disabled because it's mostly too broken to live, see https://lists.ubuntu.com/archives/ubuntu-devel/2015-November/039010.html17:13
cjwatsonroadmr: basically those branches tended to work until somebody actually tried to use them17:14
roadmrcjwatson: ah, I was thinking something like that, yes.17:15
roadmrcjwatson: no biggie, as I said the dput went through just fine so I'm all sorted out.17:15
federico3hi17:15
roadmrthanks :)17:15
federico3is there a way to encrypt/hide/restrict some files uploaded to launchpad?17:16
dobeywhy would you do that? launchpad isn't a generic storage service17:17
dobeyif you want private projects/etc… you can get a commercial support contract17:18
dobeyhttps://launchpad.net/+tour/join-launchpad#commercial17:18
federico3a bug (which should be public) contains some files uploaded by an users that might contain sensitive data17:19
dobeyverify there is no sensitive data; if there is, then it shouldn't be made public17:20
dobeythere's no way to encrypt/restrict existing attachments. they could be deleted. comments can possibly be hidden17:21
dobeybut the original description will always remain in history i think, even if edited17:21
federico3the description is ok17:22
toan_cjwatson, i am writing a recipe to build wireshark from my dev project, it can not find the branch, can you help please:  https://code.launchpad.net/~tpham3783/+recipe/wireshark-daily17:23
toan_cjwatson, the error was "https://code.launchpad.net/~tpham3783/+recipe/wireshark-daily"17:23
toan_"bzr: ERROR: Not a branch: "bzr+ssh://bazaar.launchpad.net/~tpham3783/wireshark/trunk/"."17:24
dobeytoan_: you have to wait for import to finish17:25
cjwatsonYou can see the import progress on https://code.launchpad.net/~tpham3783/wireshark/trunk17:25
cjwatsonIIRC for big branches it takes several passes.  Wait for "Recent revisions" to say something useful17:26
toan_my bad17:28
federico3thanks dobey17:32
=== mwhudson is now known as Guest86296
=== Guest86296 is now known as mwhudson
=== mwhudson is now known as Guest65934
=== Guest65934 is now known as mwhudson
toan_my project built successfully when building it locally and with option --allow-fallback-to-native21:54
toan_however, it failed to build on the launchpad server, how do i fix it21:54
toan_hi, the auto launchpad build does not create 32bit binaries for vivid, what can I do not make 32bit vivid?22:32
toan_cjwatson, !22:33
cjwatsontoan_: when you're asking about a failure, please link to it22:33
toan_https://code.launchpad.net/~tpham3783/+recipe/hello-github-daily22:34
toan_there's no installer for 32bit vivid22:34
cjwatsontoan_: you've marked your package as architecture-independent22:34
toan_yeah22:35
cjwatsonArchitecture: all22:35
cjwatsonthat means it's only built on one architecture, and that build is published for use on all architectures22:35
toan_its all right now22:35
toan_it is set to all right now22:35
cjwatsonif you want it to be built separately on each architecture - which you should, because this contains compiled code - then that should be "Architecture: any"22:36
toan_hmm, thanks, let me try that,,22:36
cjwatson"Architecture: all" is for things like packages consisting solely of interpreted code or data or whatever22:36
cjwatsonhttps://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Architecture22:36
toan_cjwatson, gotcha!22:37
tewardcjwatson: so, "all" for things like a set of python scripts that aren't arch-specific (like, utility scripts or such), or Bash scripts or such, then is "all"?22:39
toan_cjwatson, i feel like launchpad should store/integrate packaging to the website interface, that we we dont have to merge packaging info to the dev branch22:39
* teward wants to make sure that his understanding matches the definitions :)22:39
tewards/definitions/real meaning of each/22:39
cjwatsonteward: yes22:39
toan_we=way22:39
cjwatsontoan_: perhaps, but that's a huge project22:39
cjwatsonrealistically not likely to happen22:39
toan_it would be alot easier, i think, we can just create a package, purely from the website interface, everything stored in there too, no need to merge22:40
cjwatsonlike I say: perhaps, but that's a huge project, and not likely to happen22:40
cjwatsonany interesting package needs to be maintained over time as well22:41
toan_cjwatson, can you help me, what's this error: https://launchpadlibrarian.net/234548913/upload_1058815_log.txt22:43
tewardtoan_: you can't upload an identical-versioned tarball with different contents22:43
cjwatsonthat means that your recipe doesn't include the revision of the packaging branch in its version number22:43
teward^22:43
cjwatsonthe first line should probably be something like: # bzr-builder version 0.4 deb-version {debupstream-base}+bzr{revno}-0+{revno:packaging}22:46
toan_thanks22:46
cjwatsonadjust to taste22:46
cjwatsonand see https://help.launchpad.net/Packaging/SourceBuilds/Recipes22:46
cjwatson(esp near the end)22:46
cjwatsonanyway, got to deal with kids' bathtime now22:47
dobeyi usually use {debupstream}+r{revno}.{revno:packaging}22:47
toan_cjwatson, thanks alot, i have have i386-32bit for vivid :-)22:48
toan_have=now22:48
dobeybtw, vivid will be EOL in 2 weeks22:49
toan_cjwatson, the project at https://code.launchpad.net/~tpham3783/hello-github/trunk does not have any affilication with the "Hello, Github" project, how do i remove that?22:52
toan_in other words, it is just a personal test branch, somehow launchpad thinks its affilicated with the "hello-github" project22:53
dobeyis it not that project's code?22:58
toan_no23:05
toan_it is not, i created a dummy project, but someone, i am not sure launchpad linked with hello-github23:05
wgranttoan_: The hello-github project already existed, and you pushed your branch into it.23:06
wgrantYou didn't create a new project.23:06
dobeyright23:06
toan_no, i created a personal project under, ~tpham3783/hello-github, then push some files from my dev machine onto the server23:07
toan_sorry, i did not push, i imported from github23:08
dobeyno, that isn't a project23:08
dobeythat is a branch23:08
toan_branch?23:08
toan_i have two branches, ~tpham3783/hello-github/trunk and .../master23:09
dobeyyes, https://launchpad.net/hello-github is a project23:09
dobeysomeone else created and owns that project23:09
dobeyyou created an import of unrelated code into a branch under that project namespace23:09
toan_this is a bit confusing, so I can not have my own project with arbitrary names?23:10
dobeyyou can't have your own project with an arbitrary name, when someone else already has a project with that name23:10
dobeybut otherwise, yes you can create any project with an arbitrary name which doesn't already exist23:11
wgrantThe key thing is that projects are namespaced globally.23:11
wgrantMy "hello-github" project and your "hello-github" project are the same project.23:11
dobeybut a project is not a branch; though a project may have branches23:11
wgrantSo anyone can have branches within the main project.23:11
wgrantSo they're listed together, rather than spread across the site.23:11
toan_wgrant, gotcha, so if i just want to update load sources of unrelated project, i must make it unique, i think it will only be visible to me, (under my username space)23:12
toan_update=upload23:13
xnoxtoan_, all code in launchpad is public =)23:13
xnoxand open source, that's terms of service for personal accounts.23:13
xnoxtoan_, so yes everything in https://code.launchpad.net/~tpham3783  is yours. And for any project in launchpad, you can make lp:~tpham3783/$project/$name_of_your_fork_or_branch23:14
toan_wgrant, so how do i unlink my "hello-github" with the "hello-github" main project?23:14
xnoxtoan_, however, they can be viewed both under https://code.launchpad.net/~tpham3783 (along with other code by you) and https://code.launchpad.net/$project (along with branches by other people, but for this project)23:15
xnoxtoan_, in bzr there are lp:~/+junk/$branch branches, that is under "project" +junk aka un-affiliated to anything.23:15
xnoxtoan_, but then it's not related to any projects, and one cannot do branch merge proposals, etc.23:16
wgranttoan_: You need to pick a different name for the project, register it at https://launchpad.net/projects/+new, then transfer the branches over using their "Change details" link.23:16
toan_xnox, that clears up a bit, I should have used +junk since I did not want it be affliate with any other projects23:17
wgrantOr, as xnox suggests, you can make them not related to any project ("+junk") by selecting Personal on "Change details".23:17
toan_wgrant, thank you, this whole launchpad dev. is really new to me, i have always been a git user, and did not care about launchpad until I realize I needed it for auto. distribution23:18
wgranttoan_: The main problem that people have is that LP has overarching global projects, and multiple people can own code within them. GitHub's closest analogue is the "network" of repos that were forked from each other, but it's much less explicit.23:22
toan_wgrant, thanks, that's a good description.... a general sense, instead of having a button for me a fork a project; i just create one and mark it's affilication to the parent (main) project23:25
toan_and that's merge requests are implimented, from the affiliation network23:26
wgranttoan_: You create a Bazaar branch or Git repo within the existing project.23:26
wgrantGitHub's top-level object is the Git repository, because they primarily focus on Git repositories.23:27
wgrantBut LP does all sorts of things, so the top level object is the project, which can contain numerous Git repositories.23:27
toan_wgrant, can i have namespace in my personal (+junk) project?23:28
toan_so i can have something like, ~tpham3783/+junk/project1/test_branch123:28
cjwatsonAfraid not.23:28
cjwatsonIt will be easier once Git recipes exist, though.23:28
toan_likewise, +junk/project2/test_branch223:28
cjwatsonBecause then you'll have the branch namespace within every repository, and can use it to build recipes.23:29
toan_cjwatson, git recipes???? can you give me a link to read about it23:29
toan_when will that happen?23:30
cjwatsonIf a branch is actually associated with an LP project, it should be in ~tpham3783/that-project-name/blah, not +junk23:30
cjwatsontoan_: I can't give you a link because I'm still finishing it :-)23:30
cjwatsontoan_: Probably only a week or two out at this point23:30
toan_it will be available on the site for everyone right?23:30
cjwatsonYes23:31
wgrantHowever, creating a project is easy.23:32
wgrantIf you want to do anything non-trivial then you quite possibly just want to create a project.23:32
toan_bzr does not have a concept of a project, correct?  b/c in git when you clone, you clone the project23:35
toan_with bzr, you use bzr branch to clone a branch23:35
wgrantNeither VCS has the concept of a project.23:35
toan_that's weird23:35
wgrantIn bzr branch clone a branch, in git you clone a repository.23:36
toan_wgrant, that's correct,,,,, i think git is still better23:36
wgrantIt's actually Git's model that's weird, but if Git's the first VCS you've used then you might disagree.23:36
toan_i used svn before, but git is way better23:37
toan_now, bzr is a bit different23:37
toan_how would you do this with bzr, git checkout -b "bugtest" # create a new branch from the master branch, which can be merged back later23:38
toan_since it does not have a concept of multiple branches from the same repo... i dont understand how it would work23:39
wgranttoan_: I have a directory like ~/src/project/trunk. If I want to create a new branch, from ~/src/project I just "bzr branch trunk some-feature".23:40
wgrantBazaar by default has one directory per branch.23:40
wgrantBut it also supports having multiple branches in one directory, if you want to work that way.23:40
wgrantBoth models are supported.23:40
toan_wgrant, once the git-recipe does out, does that mean that LP will also support git, along with bzr?23:42
toan_does=goes23:42
wgranttoan_: LP already supports Git repositories and several common features on top of them. Recipes are the next feature that will support Git.23:43
tewardwgrant: no LP GUI interface for git yet?23:44
tewardor at least, not easily accessible?23:44
toan_wgrant, I mean use git to push and create repo on LP23:44
tewardLP already supports Git repositories and several common features on top of them23:44
wgranttoan_: That works fine today.23:44
wgrantteward: Which bit of UI are you missing?23:44
toan_really?  b/c all i know is the git import feature,23:44
tewardwgrant: basically, finding a list of Git repos attributed to a given user23:45
toan_wgrant, so i can just add a git remote and push directly to LP?  can you give me a writeup reference please, cuz i haven't seen anything like that23:45
tewardalso haven't checked recently, hence the question if a GUI interface has been made available23:45
teward(having my own GitLab means I can just drop crap there heh)23:45
teward(hence not keeping too close an eye on Git support on LP)23:46
wgrantteward: https://launchpad.net/~wgrant/+git23:49
wgranthttps://code.launchpad.net/turnip23:49
wgrantetc23:49
wgranttoan_: https://help.launchpad.net/Code/Git23:49
tewardah, nice, +git was what i was seeking, cool.23:49
wgrantteward: There's an obscure link on https://code.launchpad.net/~wgrant23:50
wgrantFor projects it's easy, since we just show whichever VCS the project has set as its primary VCS.23:50
wgrantBut for people we don't have that luxury.23:50
tewardahhh, there's the obscure link23:54
tewardwgrant: thanks, that's actually what I was looking for heh23:57
tewardi'll have to make some scripts to help me create gitrepos on lp going forward; so used to my GitLab instance, i'll need maintainer scripts for anything else xD23:57
tewards/maintainer/utility/23:57

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