/srv/irclogs.ubuntu.com/2013/12/19/#ubuntu-motu.txt

seanzGreetings humans.00:54
seanzCan someone explain the difference between a source and a binary Debian package?00:54
seanzI get the literal difference, but I don't get what each is used for exactly.00:54
=== freeflying_away is now known as freeflying
achiangseanz: a source package is used to create a binary package. a binary package is the thing you actually install with apt-get02:11
achiangseanz: a single source package can create multiple binary packages02:11
Unit193Unless he's talking about a binary blob package?02:11
achiangoh... maybe. not sure02:11
highvoltageachiang: basically a source package is what a packager works with. it's a directory with source code and binaries and a debian directory containing scripts and metadata. a binary package is a .deb file that contains the results of a built source package07:18
dholbachgood morning08:10
=== ara_ is now known as ara
achianghighvoltage: yes, i was trying to explain that to whoever asked about the difference yesterday :)15:59
highvoltageachiang: cool16:03
seanzachiang: Thanks for the info. I'm trying to nail down what *exactly* I need to create. I'm packaging up a Java war file, essentially, but I want to "do it right" and probably build a source package and have that properly compiled to a binary package.16:13
seanzhighvoltage: Thanks as well for your info.16:13
=== j_f-f_ is now known as j_f-f
=== e11bits_ is now known as e11bits
seanzSo would you all recommend I build a source package, or compile my war file separately and skip straight to the binary package?18:07
seanzachiang, highvoltage: ^ ^ ^18:08
highvoltageseanz: if you build a package only containing a war package, then you can't upload it to debian or ubuntu18:36
highvoltageseanz: you'll need a source package if you'd ever want to upload it to ubuntu or a PPA18:37
seanzhighvoltage: That makes sense, but when I actually have both, and the changes file and the description file, I'm actually uploading them all at once, aren't I? Or am I solely uploading the source file?18:55
seanzOr source package.18:55
highvoltageseanz: you would upload the source package19:25
seanzhighvoltage: So if I were also going to set up an apt server, would I want to set it up such that it automatically builds from source packages?19:26
seanz...and let that generate the binary .deb upon upload?19:26
highvoltageseanz: depends what you want to do or what the point of that server is. if it's a build server, then you probably want that. if you just want an apt repository, it's fine having binary only or source only or both19:29
seanzhighvoltage: Thanks for answering my questions. Technically, I could probably get away with having just an apt repository, but I'm thinking the most versatile way would be to have a build server.19:31
seanzI'm thinking that would keep the packaging process the most straightforward and unchanging.19:31
highvoltageseanz: easiest really is to upload to a PPA19:31
highvoltagehttps://help.launchpad.net/Packaging/PPA19:32
seanzhighvoltage: Ok, checking the link.19:32
highvoltagemight be better getting aquanted with that before investing in building your own build infrastructure19:32
highvoltageand the process of uploading there is very similar to uploading to debian/ubuntu, so you get a good start on how things work if you follow that19:32
seanzhighvoltage: Good point, though the server we're building is for internal use only. I could potentially use a PPA for testing first.19:32
highvoltageseanz: *nod*19:33
mfischafter I make a divert in the preinst, I should be able to drop a file on top of where the original was, right?19:42
mfischI'm either making a silly mistake or have forgotten how to do this19:42
mfischfor example: dpkg-divert --package foo --add --rename /usr/foo.orig /usr/foo and then in my install file I drop in a new /usr/foo19:43
mfisch(in my example I forgot the --divert arg but I have it in the preinst)19:43

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