Here's the rough recipe for building ubuntu 18.04's systemd (well, or anything, really):
Start a clean ubuntu 18.04 system (perhaps with lxd), then: sudo apt update sudo apt dist-upgrade sudo apt install devscripts sudo apt build-dep systemd apt source systemd cd systemd-237 debuild -b -uc -us cd .. That takes 20 minutes or so to run, and should generate a handful of .deb's in the parent directory, including systemd. You can then compare the results with the system's systemd package, e.g. mkdir tmp cd tmp apt download systemd cd .. sudo apt install diffoscope diffoscope tmp/systemd_237-3ubuntu10.42_amd64.deb systemd_237-3ubuntu10.42_amd64.deb In my case, there were quite a few differences, not sure why. Nevertheless, I blindly did sudo dpkg -i systemd_237-3ubuntu10.42_amd64.deb to install the result over the system's systemd, and the container did not explode and catch fire :-) You should be able to apply your patch immediately before the debuild step. - Dan - Dan On Sat, Sep 12, 2020 at 10:14 AM rafi Moor <[email protected]> wrote: > > > > > Hello, > > > > I’m trying here after getting no answers in Ubuntu forums. > > > > I have hard time compiling some Ubuntu packages from source. > > I now try to compile systemd. On Ubunu 18.04 I've used apt source to get > the source that is supposed to include Ubunu patches. After compilation, I > replace libsystemd-shared-237.so with the one I've compiled. Programs that > are linked with this shared object complain about reference to undefined > symbol sd_bus_enqueue_for_read. using readelf I can see that the original > library has this symbol but the new one doesn't. I've tried to apply > CVE-2020-1712-2.patch but then the compilation fails on missing function > bus_message_ref_queued(). This function is included in systemd version 246 > but not in 237 which is the version on Ubuntu 18.04. > > How can I compile systemd so that I get files identical to those of Ubuntu > 18.04? > > Thanks > Rafi > -- > Ubuntu-devel-discuss mailing list > [email protected] > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss >
-- Ubuntu-devel-discuss mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
