Compiling system for Ubuntu
Dan Kegel
dank at kegel.com
Sat Sep 12 19:32:24 UTC 2020
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 <moorrafi at hotmail.com> 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
> Ubuntu-devel-discuss at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20200912/a4a6a5cf/attachment.html>
More information about the Ubuntu-devel-discuss
mailing list