Hello everyone, Here's the situation. I am responsible for maintaining a potato box running public services, but I don't have root. I need to basically create a list of commands, send them to root, and have him execute them. He won't install anything superfluous to running the machin (like dpkg-devel stuff). I have a woody machine on my desk, on which I do have root. Postfix recently announced a patch to close a DOS whole in the smtpd, so I need to compile a new copy. I'm worried that compiling it on my woody system will link against woody libs, and so won't run on the potato system.
My question is how to properly compile a .deb for a potato system (or even just the smtpd binary) on a woody system. What I have done: tried to "apt-get source postfix" on woody -got the woody version (0.0.2001sometheingerother) tried to "apt-get source postfix=0.0.19991231.pl11-1" to get the potato version -couldn't find it. added deb-src and deb lines in my /etc/apt/sources.list, and tried the above again. -still couldn't find it. realized that apt-get source doesn't require root, so went to the potato system, apt-getted source, and scped it over to my woody box. tried to compile, just for fun. (used dpkg-buildpackage) -failed, didn't have ldap.a tried to compile again, just to be pedantic (using make) -failed. same spot. (no suprise there) tried to apt-get install ldap-dev -no such package. Allright, I'm kinda stuck. I have very little experience compiling .debs (actually, none beyond make-kpkg). I have heard about "apt-get build-deps", but am worried that on my woody system, it will get the wrong versions. Can this be fixed through some voodoo in the /etc/apt/preferences file? What was I doing wrong that I couldn't get the 0.0.19991231.pl11-1 sources for postfix on my woody box? How would I find out what package might contain the ldap libraries that I need? Could I just compile it statically linked and not worry about woody vs. potato lib versions? (this seems like the wrong(tm) way to do it) The package listing ({dpkg -p,apt-cache show} postfix) shows binary dependencies, but not what versions of source libraries and so on it was built against. How would I find this stuff out? Finally, I would like to do this well enough that I could send the .deb to the postfix package maintainer to add to the potato release as a security update. He's kinda busy and focused on woody devel, and since it's mostly a small bug doesn't want to fix it at the moment. I'd like to help, since I'm going to be doing it anyways, but is that ok? Thanks for any advice, -ben p.s. My primary goal is just to get smtpd compiled. All the .deb stuff is mostly side benefits. My boss, understandably, is hoping I get this bug squashed quickly. p.p.s. The patch in question is on the web as well as the postfix-users mailing list. See www.postfix.org for more details. -- Ben Hartshorne ...Discarding smoothly, as we disembark, [EMAIL PROTECTED] All thoughts that held us wiser for a moment ben.hartshorne.net Up there, alone, in the impartial dark. -M. Oliver My PGP key is at /pgp.txt. Please encrypt all communications.
pgpYyLEIVNaQ6.pgp
Description: PGP signature