Page MenuHomeFreeBSD

emulators/linux_base-ubuntu: Add port
Needs ReviewPublic

Authored by trasz on Jun 16 2021, 2:22 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 30, 4:35 AM
Unknown Object (File)
Tue, Apr 30, 4:35 AM
Unknown Object (File)
Tue, Apr 30, 4:35 AM
Unknown Object (File)
Mon, Apr 29, 9:05 PM
Unknown Object (File)
Fri, Apr 26, 3:26 AM
Unknown Object (File)
Dec 25 2023, 3:03 AM
Unknown Object (File)
Dec 23 2023, 1:35 AM
Unknown Object (File)
Nov 12 2023, 9:07 PM

Details

Reviewers
freebsd_darkain.com
Group Reviewers
Linux Emulation
Summary

This is somewhat similar to emulators/linux_base-c7, except:

  1. It's from Ubuntu Focal
  2. It's one port instead of many small ones
  3. It installs under /usr/local/compat/linux, not /compat/linux

Obviously it needs some adjusting for various mounts, changing
the compat.linux.emul_path etc; I'll do that later on.

Note that this is not a proper chroot or jail. Everything
normally configured by the package triggers is missing, because
we don't execute them, only unpack. I think this shouldn't cause
any problems, but if it does, it's to be addresssed at install
time.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 39957
Build 36846: arc lint + arc unit

Event Timeline

trasz requested review of this revision.Jun 16 2021, 2:22 PM

Note that this is mostly a prototype at this stage; still, any feedback is welcome.

jrtc27 added inline comments.
emulators/linux_base-ubuntu/Makefile
12

amd64 (and i386) are in archive.ubuntu.com/ubuntu

emulators/linux_base-ubuntu/Makefile
12

Thanks! Do you know if it's safe to assume that the package set, ie the list of packages, their versions, and the package file names (apart from the "arm64" part) will stay the same between arm64 and amd64?

emulators/linux_base-ubuntu/Makefile
12

In Ubuntu the versions should be for releases. In Debian the versions almost are in releases, except for when there are binNMUs for rebuilds and you can get skew, but Ubuntu doesn't do binNMUs, it just does no-change source uploads so everything's always in sync.

For the list of essential and required packages I expect they're the same between aarch64 and amd64, though it'd be worth verifying.

emulators/linux_base-ubuntu/Makefile
3

Hmm, including GUI stuff seems like it'd be more likely to diverge between architectures. gnome-software is also a strange choice?

398

Other arches?

401

You probably want to error if the target doesn't exist, otherwise things will silently break in future versions

emulators/linux_base-ubuntu/Makefile
3

I'm afraid we really need the GUI part; most of the ports that would make use of this are graphical apps.

As for "gnome-software" - I'm open to suggestions. Tbh I've already had to add some libraries by hand, and remove a few others.

398

Neither i386 nor aarch64 seem to require this kind of fix.

401

Shouldn't it error out as it is, given it's a makefile?