/srv/irclogs.ubuntu.com/2018/06/03/#ubuntu-motu.txt

zcotHi. I'm stuck, from information overload. I've read way too many articles, guides and tutorials in the past few weeks. -wanting to get involved, but I'm just stuck. The packaging guides seems broken, I guess? I'm hoping someone can nudge me out of this stalemate. Is there any functioning guide to package a Hello World type of project where there is no upstream? Anybody up to chat for a few minutes or direct me to an appropriate place?02:20
tsimonq2zcot: Hey there, still around?03:11
zcottsimonq2: yep. Hi.03:11
tsimonq2zcot: So, you're wanting to get involved in Ubuntu Development, or you want to just learn about packaging for something else?03:11
tsimonq2Either way, I'm willing to point you in the right direction. :)03:12
tsimonq2(Because if it's the former of the two, this is absolutely the right place.)03:13
zcotWell, I've done hobby programming for years. And just looking to get deeper into the debian/ubuntu system. I have done a simple program and figured I'd just run that through the process to learn about it.03:14
tsimonq2Sure. Programming isn't exactly packaging; it's different in both spots.03:16
tsimonq2zcot: Got a link to your program anywhere?03:16
tsimonq2(Or is it just something you have locally?)03:17
zcotMaybe I just try to learn how to do a ppa? probably with a botched packaging attempt? lol. -since I'm not getting the info right, I keep getting bad version or attempts that just fail with some bzr plugin or something.03:17
tsimonq2The package guide needs some tidying up because you don't need Bazaar to do anything with a PPA. :)03:17
zcotI do have it on github: https://github.com/zcot/list-apt-installs03:18
zcotyea, I'm kinda questioning myself about that.. there's bzr, git, cvs, I mean I see that there's various tools to integrate with launchpad. I'm scratching my head about it.. at the fork of these things.03:19
tsimonq2zcot: Do you have some packaging yet?03:21
zcotI did actually "build a .deb". and it did turn around and install correctly with the package manager. But I don't understand it.. I didn't have any make file in it. I just put a 'install' file in /debian and copying things.03:21
tsimonq2Oh.03:22
zcottsimonq2: no, not really. I've played with it in various ways a bunch of times. using debian dh_make, or trying through bzr plugin.. or found a guide where you just create /debian and add 4 files.03:23
tsimonq2zcot: Here's what I would do if I were you (and I'm willing to help). Use dh_make in a fresh directory, after putting your source code in a .tar.gz file. Then, use https://www.debian.org/doc/debian-policy/ to understand and sort through things.03:24
tsimonq2I usually just rm debian/*{ex,EX} debian/README.*03:25
tsimonq2That leaves (pretty much) the core files that you can tweak.03:25
zcotso, the idea is to do an out-of-tree situation. it's not about actual building in the source?03:25
tsimonq2Right.03:25
tsimonq2So, you tar up your source, then dh_make will prompt you for that tar.03:25
zcotok, so that's been confusing to me all along.03:26
tsimonq2Maybe this might have been confusing you... there's two different types of "main" packages. You *can* do the debian packaging with the tarball, but that assumes that you're shipping the upstream right into these sources.03:27
tsimonq2If you want to do other packaging for other distros, it's recommended to separate it.03:27
tsimonq2Separating it is the method which is typically used and the one that I'm recommending you use.03:27
tsimonq2zcot: When you have your packaging, mind throwing it somewhere so I can take a look?03:29
zcottsimonq2: ok. let me ask. when i tar up the source. what actually is that? that would be pre-configure state? correct? in my case, only cmake configuration file(and docs and such).. no binary/makefiles/object, etc?03:29
tsimonq2zcot: `git clone https://github.com/zcot/list-apt-installs.git && tar cvf list-apt-installs.tar list-apt-installs` :)03:30
zcotright there. ok. ;)03:30
zcottsimonq2: so, then I'll need to understand the .. probably.. /debian/rules file.03:35
tsimonq2zcot: So, try taking a peek at the debian/rules file03:39
tsimonq2Let me find you a few examples real quick03:39
zcotI can do an attempt with the /debian stuff as far as I understand it, which I think is ok, except for probably version, maybe (native) or (quilt) thing. But that's just info, so the action stuff though. I got nothing. the cmake file needs to be called. the /usr/local/docs stuff. /man.03:40
zcotyea, that would be great, because I only see some macro thing maybe from dh_make which is.. I have no clue even. O_O03:40
tsimonq2(native) or (quilt) is what I described earlier with the tarball. Native is baked in with the source and Quilt is with a separate tar.03:40
tsimonq2zcot: Here's a cmake-based package I maintain in Debian: https://salsa.debian.org/qt-kde-team/extras/vc/blob/master/debian/rules03:41
tsimonq2Feel free to take whatever you'd like from there.03:41
zcotyea.. lol O_O03:41
zcotOk.03:42
tsimonq2It's a bit complex, but once you get the moving parts and what they do, it's easy. :)03:42
tsimonq2When in doubt, consult the Debian Policy Manual. :D03:42
zcotAlright, so I just gave up really on the /debian stuff before I committed to github. But I'll go ahead with that part, and I think with all the reading and guides I have I should be able to get really close anyway. ;)03:44
zcottsimonq2: Thank you. I appreciate it.03:48
tsimonq2zcot: No problem, anytime. :)03:49
* tsimonq2 goes to bed, ping with any more questions if you have them. :)03:59
zcotHi tsimonq2, I made an attempt at a package and. there were a couple warnings and errors, but i do end up with a .deb. and the orig.tar.gz source, and debian.tar.xz required and control stuff, and the .dsc lists both of those packages but the .deb only installs the /usr/share/doc stuff so that's not right. But it was kinda cool anyway. lol. I don't end up with any diff around that package. had to rename /debian to /DEBIAN or vice-versa and the local23:18
zcotdirectory ends up being some weird recursive debian debian stack of things.. I have no clue what I'm doing really. Anyway, I'll keep plugging away.23:18

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