this post was submitted on 07 Jul 2023
0 points (NaN% liked)

Linux

47309 readers
578 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
top 2 comments
sorted by: hot top controversial new old
[–] Max_P@lemmy.max-p.me 0 points 1 year ago (1 children)

Never wrote RPM specs because I generally dislike RPM-based distributions (Fedora was a really bad experience when I tried it), but from a quick Google search they're very similar.

I kinda like the format at a glance, seems pretty comparable in terms of what you put in there. Definitely less painful than debhelper.

I guess one of the advantages of PKGBUILD is that they're essentially bash scripts that gets sourced by the tools, so they're incredibly simple and don't require parsing a custom format. You can:

#!/bin/sh
source PKGBUILD
prepare
build
check
package

That comes with disadvantages in that reading the PKGBUILD is inherently unsafe, and it was the cause of many concerns back in the days with tools like yaourt, which pretty much just blindly sourced it to get the variables out, which means immediate code execution just loading it from the AUR.

[–] Laser@feddit.de 0 points 1 year ago

I think while yaourt was called out for it, there are still issues with doing it this way; it's the reason the AUR requires a .SRCINFO file nowadays https://wiki.archlinux.org/title/.SRCINFO