[00:13] !backports | mika [00:13] mika: If new updated Ubuntu packages are built for an application, then they may go into Ubuntu Backports. See https://help.ubuntu.com/community/UbuntuBackports - See also !packaging [00:13] Yes, that's what I was about to say. [01:34] Does the passwd executable change the ownership of any file? cuz it's capability list seems to list: CAP_CHOWN as one of the capabilities [01:38] It's entirely possible that it does so when it creates backups and copies things around. Though why it doesn't create with the permissions it wants then, I don't know. [01:38] (I haven't checked, though, the CAP may be entirely unnecessary) [01:39] infinity, no. THe cap is necessary. I tried removing the cap and change a passwd, it says Authentication token manipulation error [01:39] How do I investigate this? As in how do I find out which file it's modifying? [01:39] strace it. [01:39] Or read the source. [01:40] But stracing is the simpler way to quickly find the opens/creates/renames/chowns. [01:41] infinity, ok [02:17] infinity, I unable to change passwords if I run passwd using strace. Would you know why? [02:17] infinity, running from the terminal normally, am able to change the password, though. [02:22] Are you doing it as root? [02:22] stracing suid binaries doesn't work so well. [02:23] infinity, oh no. I completely forgot that part. I'll do it now. [02:27] infinity, found it. It chowns /etc/nshadow. Thank you very much === Amaranth_ is now known as Amaranth === bregma_ is now known as bregma === Amaranth_ is now known as Amaranth [07:55] ScottK: thanks (and also to jbicha who isn't here anymore :)) [09:12] hmm. weren't there bzr branches for ppa packages similar to UDD? whats the url scheme for those? [09:15] james_w: i guess you know :) ? === tkamppeter_ is now known as tkamppeter [10:26] asac: I never heard of such a thing [10:30] maxb: kk [10:46] infinity: Sync's don't seem to provide karma.. so there is no risk of gaining too much :) [10:48] Daviey: If there isn't a bug for syncs not providing karma, please file one. [10:48] StevenK: that would imply we care about karma :) [10:49] Well, we as in the LP team do. [11:04] when will there be a fglrx update? who is in charge? [11:05] maybe a update fixes it [11:05] repos have version 8.889, amd has version 8.892 released [14:38] StevenK: I want karma every time I perform queue manipulation. [14:38] StevenK: But more seriously, I want every queue change audited. [19:34] Hi, what package is reponsible for the distro upgrade dialog - is it update-notifier? [19:35] update-manager i should think. [19:36] ah, ok [19:36] http://linux.fjfi.cvut.cz/~zub/Screenshot-Ubuntu%2011.10%20Upgrade%20Available.png [19:36] seems it ignores http proxy, so I'm looking if there's a bug reported for this already [19:38] try setting it in /etc/apt/apt.conf.d/ [19:38] it is set, come on [19:38] aptitude works ok [19:38] ah [19:38] * hyperair shrugs [19:38] and it's set in http_proxy, and even in the gnome thing, whatever that does [19:38] hyperair: sorry :) [19:40] in that window, it's trying to fetch a web page with some info about the upgrade - I think... so it shouldn't be using apt's proxy, but http_proxy or whatever else the gnom proxy setting changes [19:40] but anyway as far as I know, all that's needed was set at that box, web works, apt works [19:47] zub: please file a bug against update-manager, yes [19:47] has this patch "DM-CRYPT: Scale to multiple CPUs v3" http://lkml.org/lkml/2010/10/10/44 been applied to any versions of Ubuntu? [19:47] slangasek: ok, thanks for info [19:48] I'm also filing/commenting on some unity bugs [19:48] I've been using it for 1 day and found several issues I believe to be bugs :-( [19:49] penguin_03: there's no reason we would have picked such a patch unless it's included in the upstream kernel we're shipping [19:49] do the newer kernels have any parallel dm-crypt support? [19:50] no idea [19:56] penguin_03: That patch is in the Oneiric kernel. [19:56] dajhorn, thanks [19:57] penguin_03: Welcome. === yofel_ is now known as yofel [20:01] slangasek: https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.1/+bug/876959 ... he's right that the dbgsym packages for the version of mysql 5.1 in lucid-updates aren't on ddebs.ubuntu.com. Any ideas? [20:01] Launchpad bug 876959 in mysql-dfsg-5.1 (Ubuntu) "no mysql-server-5.1-dbgsym for security/updates repositorires" [Undecided,New] [20:01] though they are available for the highest version in lucid-security [20:01] SpamapS: ICMP redirect pitti [20:02] in general the ddeb archive is a mess because there's no LP-driven reference counting; but I'm never clear on what bugs are present at any given time [20:02] pitti: https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.1/+bug/876959 ... he's right that the dbgsym packages for the version of mysql 5.1 in lucid-updates aren't on ddbes.ubuntu.com. Any ideas? [20:02] Launchpad bug 876959 in mysql-dfsg-5.1 (Ubuntu) "no mysql-server-5.1-dbgsym for security/updates repositorires" [Undecided,New] [20:02] slangasek: I've had mostly failure when trying to make use of it. :-/ [20:03] partial success... but almost always some piece missing [20:03] slangasek: so there's no LP project that is specific to the dbgsym repo? [20:03] was going to redirect the bug to that [20:04] ah, I don't know; my point was about soyuz not knowing about ddebs [20:04] oh right [20:11] slangasek: so, the PHP upstreams want us to include PHP 5.4 in 12.04 [20:11] slangasek: maybe I'll make the condition that their build process stops smoking crack for 3 months before we do that. ;) [20:11] heh [20:12] good luck, it's a lifelong addict [20:14] Like taking the weed from snoop [20:14] it wouldn't be PHP if it didn't have the rock [20:35] can anyone point me a simple .dsc to build a deb package? [20:39] .dsc files are generated by the dpkg-dev toolchain from a source tree; you won't get anywhere at all trying to write a .dsc by hand [20:41] i'd like to assist in development of a project/application, and i know only python. any advice on where to start? [20:44] oh god…. i have a folder with 1 executable and 1 .desktop file. i compressed them in a tar.gz. how do i make a deb package out of it… that should be so simple but all the freaking guides i find shows the tons of useless stuff that i dont need…! [20:45] dh_make should get you most of the way there; or I'm sure if you put the .tar.gz somewhere public then somebody could give you the files you need under debian/ [20:46] (I would, but need to deal with children's bedtime ...) [20:46] luist_: there is a good video tutorial by a german guy about deb files for py projects [20:46] marw: link? [20:46] luist_: dh_make will indeed build you a pretty good debian/ dir [20:46] luist_: you're in luck, i saved it. http://showmedo.com/videotutorials/video?name=linuxJensMakingDeb [20:46] python packaging can actually be a fairly complex case and is more than you need if it's just a single executable [20:47] (because of all the complexities around supporting multiple python versions) === Quintasan_ is now known as Quintasan [20:47] And the infelicitous profileration of methods of doing so [20:47] *proliferation [20:48] yes, though that's getting better [20:48] luist_: you probably jus need to run that, and then list the files you want installed in debian/install like executable_file /usr/bin then exec.desktop /usr/share/applications [20:48] (it did involve the creation of a third method, but the previous two are now deprecated and their use is dropping) [20:48] Sadly, despite my best efforts, I have yet to eliminate Debian etch at work, so I'm doomed to live with the variety for a while longer :-) [20:48] yep, what SpamapS said [20:49] *etch*? [20:49] SpamapS: ok nice! but what am i doing wrong here: http://pastie.org/2742190 the dir names seems to be right [20:49] I know, I know [20:49] * cjwatson passes maxb an archaeologist's hat [20:49] cd hinfo-0.1; dh_make [20:49] indeed [20:49] oh [20:50] (actually you may need to 'mv hinfo-0.1.tar.gz hinfo_0.1.orig.tar.gz' first) [20:50] * SpamapS recalls similar happy days learning to package his first real C application.. pipemeter.. some 10 years ago :) [20:51] The one thing to bear in mind about dh_make is that it writes an informative *template* - it might just work even if you don't customize what it emits at all, but I'd strongly recommend deleting all the bits you don't need and ensuring you understand everything you keep [20:51] SpamapS: ook! whats exactly is this debian/install [20:51] 'man dh_install' will tell you [20:51] cjwatson: ok :P [20:52] many of the debian/ files are declarative instructions for the dh_ program [20:52] but briefly, it's just a declarative way of installing specific files to specific locations, especially useful if your project doesn't already have 'make install' or similar [20:52] if you have a Makefile that understand 'make', and DESTDIR=foo 'make install' .. it generally works IIRC [20:52] maxb: they're all .ex so they just sit there [20:53] cruft, but thats ok, he's not trying to get included in the distro ;) [20:53] SpamapS: Agreed, they don't harm the functionality of building the package, but they do obfuscate the new packager's understanding if they don't take the time to delete as appropriate [20:54] thats one reason we started pkgme ... trying to be smarter about building a real package, not just a templated one [20:54] * SpamapS sorely wishes he could raise contributing to pkgme on his priority list [20:54] i just tried this: /work/HardwareInfo/hinfo-0.1$ dh_make -f ./hinfo-0.1.tar.gz and i have no idea what happened rofl [20:54] just dh_make, you shouldn't need options [20:55] cjwatson: well its not like i see any difference here :T [20:55] cjwatson: is there any default folder where packages should be built, like with rpms? [20:55] no, that's rpm brain-damage :) [20:55] cjwatson: yep :( [20:55] anywhere under your home directory is just fine [20:56] cjwatson: well /work/... doesnt seem like my home dir right ;) [20:56] or anywhere you can write to [20:56] ok [20:56] as I say, if you're in a rush, it's fine to put the tar.gz somewhere and it would probably take an experienced packager five minutes. it depends whether your goal is to make a package, or to learn how to do it [20:57] cjwatson: today: make a package next week: learn how to do it to provide an update :T [20:57] * cjwatson nods [20:57] yes it would take less than 5 minutes for me to make an rpm… but im not really in the mood of working on a weekend -.- [20:57] (note, then, that dh_make is one way to create the initial files, but you don't use it to update to new versions, and if you try you'll get confused) [20:58] cjwatson: well as long as it have a version, i can update right? [20:58] the basic idea of rpm and debian packaging is much the same; install files into a temporary directory, then bundle it up into a package with some metadata attached [20:58] debian packaging is split out into several files rather than using a single .spec file, that's all really [20:59] (and sure, lots of tools and so on, but at the basic level ...) [21:00] well what exaclty should i do after running dh_make… plus i dont now what im doing until now: prepare Debian packaging for an original source archive sounds a bit abstract for me [21:00] the bare minimum for a Debian package is (a) debian/rules (which can be a copy of /usr/share/doc/debhelper/examples/rules.tiny) (b) debian/control with some metadata about your package (c) debian/changelog with version history in a specified format (d) if you want it to be accepted into a public repository anywhere, debian/copyright [21:00] there are usually a few other files as well but that's the guts [21:01] cjwatson: do i create these inside my folder? [21:01] then 'debuild' builds source + binary packages [21:01] yes [21:01] dh_make should have done that for you [21:01] cjwatson: no it didnt [21:01] did it produce any output at all? [21:01] cjwatson: but now a lot of things make sense.. that would replace the .spec right [21:01] indeed [21:01] cjwatson: nop it didnt [21:02] blink [21:02] cjwatson: what about hinfo_0.1.orig.tar.gz ? [21:02] cjwatson: my bad it gave me output [21:02] luist_: Do you use Bazaar? If so, check out the trivial example package https://code.launchpad.net/~maxb/+junk/example-package [21:03] um, introducing more tools may not be the correct response to a confused person :) [21:03] but you can just look at it on the web [21:03] or just browse it, there are only 6 files [21:04] yep, that's a good place to start [21:04] In fact, go here: http://bazaar.launchpad.net/~maxb/+junk/example-package/revision/1 then click "expand all" [21:05] luist_: pastebin the output? [21:06] cjwatson: oh i just used --createorig and it worked now [21:06] cjwatson: :) [21:06] I'd have renamed hinfo-0.1.tar.gz to hinfo_0.1.orig.tar.gz, but whatever works [21:09] cjwatson: http://pastie.org/2742277 [21:09] cjwatson: theres no debian/install :T [21:11] that's ok, create it [21:11] cjwatson: did with the line: HardwareInfo /usr/bin [21:12] cjwatson: or it should be just usr/bin ? [21:13] I have a feeling either might work, but usr/bin definitely will [21:15] either will work [21:16] cjwatson: ok also added: hinfo.desktop etc/xdg/autostart [21:16] cjwatson: now what :) [21:17] run 'debuild', and if it gives you any errors then fix them up. repeat. [21:17] (until successful.) [21:17] if it completes successfully, run 'debc' to show what the resulting package looks like. [21:24] cjwatson: oh god: http://pastie.org/2742328 [21:25] you'll need to edit debian/changelog then. it should be self-explanatory; if it isn't, paste it [21:25] cjwatson: wasnt it generated by dh_make rofl [21:25] where it apparently says " -- root", it should be something like (example from one of my packages): [21:25] -- Colin Watson Wed, 19 Oct 2011 22:53:40 +0100 [21:26] please don't use "rofl" as punctuation, it sets my teeth on edge :) [21:26] it can't autodetect everything - it generates a template for you to edit, hopefully fairly close to usable but it probably does need a few edits to work [21:27] (it's a long time since I actually used dh_make myself, sorry, I've been in this game long enough that I just do it by hand) [21:29] cjwatson: ok :) btw this is not self-explanatory at all… the line thats giving me the warning has the same syntax from the example u gave me: -- Max Bowsher <_@maxb.eu> Sat, 22 Oct 2011 21:58:42 +0100 [21:30] the error output you pasted disagrees; it says that the line reads " -- root" [21:30] The format is quite strict, including the number of spaces in each place, and the date format [21:31] There is a tool, called "dch" for adding new changelog entries, such that you never need to type those lines manually [21:31] I'm surprised dh_make gets it wrong by default though :-( [21:31] cjwatson: well i changed to -- SEE-MG <_@anything.com> Sat, 22 Oct 2011 19:27:23 +0100 [21:32] cjwatson: but same error [21:32] The *two* spaces between the email and the date are mandatory [21:32] maxb: oh [21:32] oh meep, bug 875705 [21:32] Launchpad bug 875705 in dh-make (Ubuntu) "dh_make in Oneiric outpus wrong content to changelog" [High,Confirmed] https://launchpad.net/bugs/875705 [21:32] sigh [21:33] outpus! irta octopus initially :-) [21:35] errr… hinfo-0.1/debian/control at line 5: line with unknown format (not field-colon-value) http://pastie.org/2742358 [21:35] hah [21:35] yeah, same bug [21:35] 'export DEBFULLNAME="Your Full Name"; export DEBEMAIL=your@email.address' [21:35] rm -rf debian and start again [21:36] sorry - I'll look into getting this fixed reasonably urgently [21:36] o.O [21:37] looks like it's because LOGNAME isn't set, perhaps a desktop-level change? [21:38] I bet this is actually a lightdm bug [21:39] cjwatson: ok.. going to install these now: Could not find a signing program (pgp or gpg)! [21:39] cjwatson: i can feel im almost there [21:39] you can ignore that [21:40] cjwatson: really? [21:40] http://pastie.org/2742381 [21:41] it won't have cryptographically-signed the package but it will have generated one, if it got that far [21:41] you can use 'debuild -uc -us' to stop it trying [21:43] ok good [21:43] cjwatson: oh god i have a deb package!! [21:46] cjwatson: thanks a lot :) [21:46] excellent, sorry about that roadblock [21:47] I think I have a fix, just will need to test it a bit and do the paperwork for a stable update [21:47] cjwatson: its ok… ive learnt a lot here [21:47] (http://paste.ubuntu.com/716397/) [21:54] fix uploaded to precise, doing the writeup for oneiric-proposed now [21:54] hm, I use lightdm yet have $LOGNAME set [21:54] something in your shell startup scripts? [21:54] not knowingly [21:54] or even your shell [21:54] gnome-panel/xmonad instead of unity [21:54] lightdm/unity here ... and no $LOGNAME [21:54] the bug seemed fairly clear when I looked at the lightdm source [21:55] yeah, I checked on another unity laptop and it didn't have it [21:55] zsh must set it [21:55] it does [21:56] ./Src/params.c:703: setsparam("LOGNAME", ztrdup((str = getlogin()) && *str ? str : cached_username)); [21:57] luverly [22:02] Hi, all. I'm packaging a driver module that was removed from ubuntu ages ago. Someone forgot to remove the man page from the ubuntu 'manpages' package when the driver was removed from ubuntu, so my new package (which contains an updated man page) now clashes with 'manpages', and dpkg won't install it. What is the best way to avoid the conflict? [22:06] you could give the man page a slightly different name; perhaps append a short string to the section number [22:07] (called a "section extension" - see e.g. the "3pm" pages documenting perl modules) [22:07] luist_: OK, I've uploaded a dh-make fix to oneiric-proposed as well now (waiting for review) and forwarded the patch to Debian [22:08] I'm considering that. Is there an officially blessed (by debian/ubuntu) way to handle this? [22:08] luist_: so the next person shouldn't have the same problem, hopefully [22:08] foresto: not that I know of, but I maintain man-db so I guess my advice is about the best approximation to that you'll get ;-) [22:09] Thanks, cjwatson. I've filed a bug on the dangling man page, too. [22:10] right, and if that gets fixed then you could rename the page in your package and add Breaks/Replaces on manpages; but until then (and for <= oneiric) I'd definitely advise working around the file conflict [22:10] are the pages basically the same between manpages and your package? is there a problem with people getting the manpages version if they have that installed? [22:10] oh, you said updated, hmm [22:10] there probably isn't an ideal short-term solution [22:11] cjwatson: :) [22:11] I suppose you could dpkg-divert away manpages' version, but that feels rather heavy-handed to me [22:12] Yeah, it's the sk98lin driver, and the one in manpages is ancient. Options have changed since then. [22:15] ooi, what would be the downsides to having the new package declare a Replaces: manpages ? [22:16] Or, would that all go horribly wrong the first time manpages was updated after the custom package was installed? [22:28] maxb: I think we did make that work in dpkg a while back (dapper, maybe) [22:28] maxb: but even so, I kind of take the attitude that anything I have to look up in dpkg source to conclusively determine its behaviour may not be a good idea :-) [22:28] I think it's best to avoid file conflicts wherever possible [22:30] hi guys !!! [22:31] I did see the note in the debian policy about using Replaces: when a package takes over a file from another package, but it looked to me like it was intended for use when a new package takes over the duties of an old one. That's not really what's going on here. [22:32] agateau: are you here ? [22:36] foresto: it is used for single files moving between packages too. I prefer to only use it consensually though (i.e. when the file is actually moved, not just to slam something over the top of an existing package that still ships the file). [22:36] the definition of Replaces is a little confusing as it does double duty depending on whether the packages also Conflict or not. [22:36] Yes, that usage was hinted as well. Thanks for making sure I didn't miss it. [23:13] Okay, so I have the man page in a subsection now (4opt), but of course, it doesn't show up unless the user runs "man -a sk98lin" or "man 4opt sk98lin". Anyone know if there's a subsection that would override section 4 as the default? [23:13] An appropriate subsection, that is. [23:16] and thanks, cjwatson. [23:17] the order seems to be set by /etc/manpath.config [23:22] Thanks, penguiin42. Hm... None of the sections preceding 4 really apply, but since it's just a temporary workaround until the ubuntu manpages bug is fixed, maybe I could put the new man page in section 8. [23:23] (It is a network module after all, and there are plenty of network-admin-related things in section 8.) [23:40] foresto: section 8 is "system management commands"; a network module doesn't sound like it belongs. [23:40] (cf. man-pages(7)) [23:42] slangasek: Yes, note my comment two lines up: None of the sections preceding 4 really apply. [23:44] IMHO, it's more important to avoid giving the user bad instructions on the use of his kernel driver than it is to adhere perfectly to the section categories, and since this is only a temporary workaround and only necessary due to a bug in the stock manpages, I think abusing section 8 a little is warranted. [23:46] In other words, I'd rather annoy someone for bending the man section rules than really screw someone by leading them to render their system unbootable. [23:46] foresto: Why not just fix the manpage shipped in manpages? [23:46] foresto: well, if you're just putting it in a section where it doesn't belong as a workaround, rationalizing which section is less bad than the others to abuse is unnecessary :) [23:47] to someone who cares about the sections, it'll be in the wrong section; to someone who doesn't, any section will do [23:48] slangasek: heh... point taken. I'm just trying to do this as well as I can. :) [23:49] infinity: The bug is already filed. I don't have the power to alter the official manpages package, and I don't think anyone has the power to retroactively do it on packages that have already "shipped". [23:49] Well, we can push updates, if it matters deeply. [23:50] But you could just dpkg-divert the manpages' copy out of the way too. [23:50] Your suggestion would make sense if my package was not going to be released until manpages is fixed. I'm releasing in a PPA though. Today. [23:50] We talked about dpkg-divert a couple hours ago. cjwatson didn't like the idea. [23:51] He just said "that feels heavy-handed". [23:51] Yea. [23:51] It's still more correct than throwing the manpage in the wrong section to force it to have priority. :) [23:51] I'm pretty sure he didn't suggest that either. :P [23:52] Actually, he suggested using a subsection. [23:52] Right. [23:52] A subsection to the existing section doesn't solve the problem. [23:52] But then you disliked that because it won't sort the way you want. [23:52] No. [23:53] Because it leaves the average user with bad instructions on configuring rather delicate part of his system. [23:55] It's a NIC driver, not a nuclear reactor. [23:55] But yeah, having the right info is nice. [23:55] dpkg-divert still sounds like the right solution to me for a third-party package that wants to overwrite files without overwriting. [23:55] Which is, in the end, what you're after. [23:56] It's very possibly the user's only convenient connection to the net, which means a misconfiguration would leave him unable to easily find out how to fix it. [23:56] To be fair, I do see your point. [23:57] dpkg-divert seems heavy-handed to me too, but I'll consider it. [23:58] Well, it's the "right" solution to the problem. [23:58] Having manpages in the wrong section thwarts people like me who read by section intentionally. [23:59] No wonder you're pushing so hard for it. :) [23:59] For instance, I'm used to typing "man 2 open", and if I ever read manpages for kernel modules, I'd probably instictively read "man 4 sk98lin". [23:59] So, I'd still get the wrong info if you shove it in section 8.