Skip to content

u/leothrix

In this archive from Apr 2014 to Nov 2023

12
posts
132
comments
2
media
1k
score

Top posts

How should we address poor PKGBUILDs?

Not going into specific cases here, as I want to focus on the problem and not people or packages. I've seen a few cases (and tried to correct a few) where PKGBUILDs on the AUR are pretty bad. Wrong dependencies, mostly-correct ExecStarts on systemd units, or other problems that, when brought to the...

26 points26 comments
Open on Reddit

Top comments

I've coded against the systemd dbus APIs, written probably hundreds of unit files, and worked heavily in the guts of systemd-journald, so I think I can offer some perspective from the technical side.

systemd, like any technical solution, has good and bad parts. systemd in particular is so polarizing because, aside from the kernel itself, it's probably the most pervasive part of the system, and thus effects so many people. Lots of people cite its additional complexity, but it's a double-edged sword: more complexity means more things can break, but you can also do much more with it.

The following bullets are mostly compared against SysV init since it's the only related init system that reached the level of adoption that systemd has (yes, I know s6/openrc/daemontools are useful, too). Some of the high-level benefits of systemd I'd note are:

  • Real process management. In SysV init scripts, there's little if any standardization around a) how PIDs are managed, b) how process signaling happens, c) zombie/orphaned processes are handled, and d) how processes are kept alive. systemd gave us a system flexible enough and powerful enough to take any daemon and make it stay up, stay tracked, and easier to manage. I'd lump making cgroups/resource constraints easier to use into this category as well.
  • Dependencies. This is one of those two-edged swords, but the positive is that we can finally express things like, "If my backup drive isn't mounted, don't run my backup software".
  • Programmability. systemd actually exposes an API that you can query for unit state, logs, and so on (along with a configurable permission model). This isn't immediately useful for end-users, but it's essential if we want to write higher-level interfaces that can interop with hosts.

There's tradeoffs, though.

I'd note that I was initially pretty anti-systemd, but I've accepted it as the best solution we've got and tried to help steer it towards the type of tool I'd like to use with upstream bug reports/issues. As backwards as the public development of systemd can be at times, open source development can be pretty harsh and I do hope that they succeed in making both systemd and the environment they develop it in better.

89 points
  • More generally, that next cool open source project that I'm not aware of yet

This one is actually probably much better for Arch than most other distros out there. The absurdly low barrier to entry with PKGBUILDs and the AUR means that new projects can be packaged and shared extremely easily. I've actually installed stuff that I thought would be too esoteric by hand and then later found them on the AUR; it's amazing how broad and active the repository is.

27 points

I mention these primarily because I'd love to see them come to Arch, not necessarily as criticisms:

  • Delta RPMs on distros like CentOS/Fedora are very nice when performing large upgrades.
  • Out-of-the-box mandatory access control (MAC). Yes, you can bolt something like grsec on Arch, but without native awareness in pacman packages, the usefulness of AppArmor/SELinux is extremely limited.
  • Native rollback/snapshot support in package management. Nix/guix are exceptionally nice in this regard.

In terms of available packages, the native repositores + AUR have been better for me breadth-wise than any other distribution, and writing a 50-line shell script to amend the packages I need has been great.

15 points

IMO, in order of noticeability:

  • The package manager. It's the central distinction to the extent that it's how families of distros are categorized.
  • Init system/service manager. This is kind of an obvious one with systemd taking so much heat, but the way you manage daemons on a system is hugely important. If you were to rip out pacman and replace it with apt-get, most packages you installed would presume SysV-style init rather than systemd, and wouldn't fit into the way arch starts/stops daemons. OpenRC, SysV, systemd, upstart, all make distros very different.
  • Filesystem hierarchy. This one isn't very noticeable, but distros have different philosophies when you need to decide what goes in /bin, /usr, /opt, etc.
14 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.