[09:43] <jdbrowne> Hello, why debian packages must be built as root? (or with fakeroot ...)
[10:03] <jdbrowne> There are a number of targets in the default debian/rules generated by dh_make, how do I know which ones are mandatory and which ones are not? I guess "clean", "install" and "binary" are mandatory but I may be missing something.
[10:14] <joaopinto> jdbrowne, debian packages must not and should not be build as root
[10:16] <jdbrowne> Ok, why does the dpkg-buildpackage has the option "-r gain-root-command"? there must be some use case I do not see
[10:17] <joaopinto> no idea, never needed it
[10:21] <jdbrowne> ok
[10:24] <james_w> it defaults to fakeroot now
[10:25] <james_w> "root" access is needed for certain parts of the build
[10:25] <james_w> as for what is mandatory, check debian policy
[10:28] <jdbrowne> james_w: for my information, can you give example of parts of the build which need to be root?
[10:28] <james_w> that's also in debian policy I believe
[10:28] <jdbrowne> ok thx
[10:32] <joaopinto> jdbrowne, "root" is required for the "binary" rules, because you want the archive files to be root owned, that is why fakeroot is sufficient, there is no need for real root
[10:33] <jdbrowne> Ok thx, I am reading the debian policy, see ya in a while :)
[10:33] <joaopinto> see you tomorrow :D
[11:02] <jdbrowne> To my question :  which target are required in a debian/rules, the answer is in the debian policy : http://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules
[11:02] <jdbrowne> "At a minimum, required targets are the ones called by dpkg-buildpackage, namely, clean, binary, binary-arch, binary-indep, and build."
[11:20] <jdbrowne> I am reading about the optional target "get-orig-source" in the debian/rules. This is powerful, this is a built-in mechanism that makes it possible to streamline package out of sources without having to teach the upstream developpers how to make packages. Packages can be done by some else without refering/disturbing/interfacing with the developers.
[11:24] <joaopinto> jdbrowne, except when you have patches or library changes ;)
[11:28] <jdbrowne> yes, in our process, this can be done through the bug tracking system, bit by bit
[15:05] <jdbrowne> life is good, I have a nice little package for my script. There are now minimal debian/control, debian/rules and a debian/myscript.install.
[15:05] <jdbrowne> There is a step that seems unneeded: when I checkout my sources, I would like to be able to execute dpkg-buildpackage but dpkg-buildpackage insists on having a directory name formatted like myscript-<version> and also insist on having an orig.tar.gz.
[15:06] <jdbrowne> What are the tools/technique I can use to simply build a package after a checkout?
[16:33] <gianni> ciao a tutti
[20:03] <mirak> hi
[20:43] <grant__> Hello
[21:08] <maxb> jdbrowne: It does not insist, it merely warns. You may safely ignore.