DPorts 2026Q4 packages for DragonFly 6.4 and 6.5 (work in progress)
Steffen Nurpmeso
steffen at sdaoden.eu
Wed Nov 11 10:50:38 PST 2026
This is a bit off-limit to DragonFly..
Michael Neumann wrote in
<avRzhE2nTPmxcBhz at ntecs.de>:
...
| # actually I had to do the following:
| cat ~/prime-list | xargs -I pkg install -y %
Despite developer hints-hints cat(1) can be avoided:
< ~/prime-list xargs ...
...
|Then, "startx" from an unpriviledged user stopped working, as it
|couldn't recognize the console, so I had to create file (likely very
|unsafe):
|
| # cat /usr/local/etc/X11/Xwrapper.config
| allowed_users=anybody
| needs_root_rights=no
|
|But then it complained that xserver needs setuid. So I use xdm instead :)
I am running (CRUX) Linux .. but when X started doing the wrap
stuff like
$ ll /usr/lib/xorg-server
total 2504K
-r-sr-xr-x 1 root root 14680 Oct 31 21:21 Xorg.wrap*
-rwxr-xr-x 1 root root 2543768 Oct 31 21:21 Xorg*
here build like
name=xorg-server
version=21.1.25
release=1
source=(https://www.x.org/releases/individual/xserver/$name-$version.tar.xz)
build() {
meson setup $name-$version build \
--prefix=/usr \
--libexecdir=/usr/lib/$name \
--localstatedir=/var \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true \
-D xkb_dir=/usr/share/X11/xkb \
-D xkb_output_dir=/var/lib/xkb \
-D suid_wrapper=true \
-D xorg=true
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
install -m 755 -d $PKG/etc/X11/xorg.conf.d
echo "needs_root_rights = yes" >> $PKG/etc/X11/Xwrapper.config
}
i (who is member of "video" group for what that is worth
security-wise) started starting X like
X=
if [ -x /usr/lib/xorg-server/Xorg ] && command -v groups >/dev/null 2>&1; then
g=$(groups)
if { echo $g | grep -q video; } >/dev/null 2>&1 &&
{ echo $g | grep -q input; } >/dev/null 2>&1; then
^ could be made better with awk or what, say
X=/usr/lib/xorg-server/Xorg
fi
unset g
fi
if [ -n "$X" ]; then
:
elif [ -x /usr/lib/xorg-server/Xorg.wrap ]; then
X=/usr/lib/xorg-server/Xorg.wrap
elif command -v Xorg; then
X=Xorg
else
X=X
fi
...
This ends up like
steffen 1298 1259 0 0.0 1414 2208 S+ 00:00:00 Nov09 tty1 /bin/sh - /home/steffen/usr-lecce-crux-linux-x86_64/bin/startx.sh
steffen 1387 1298 0 0.0 1022 2404 S+ 00:00:00 Nov09 tty1 xinit /home/steffen/.xinitrc -- /usr/lib/xorg-server/Xorg :0 -nolisten tcp vt1
steffen 1388 1387 0 0.0 257634 124244 Sl 00:02:31 Nov09 tty1 /usr/lib/xorg-server/Xorg :0 -nolisten tcp vt1
I say Ciao! already here, my ~/startx.sh follows.
(I have just now turned it from ${VAR} to $VAR syntax, but "sh
-nv" keeps working. For whatever all this is worth! And hoping
for a DragonFly 6.5!)
#!/bin/sh -
#@ startx.sh -- initialize an X session
# We reinit setterm after the session if non-empty
DOAS=doas
: ${TMPDIR:=/tmp}
: ${XAUTHORITY:=${HOME}/.Xauthority}
DISPLAY=0
while :; do
[ -e "$TMPDIR/.X$DISPLAY-lock" ] || [ -S "$TMPDIR/.X11-unix/X$DISPLAY" ] || break
DISPLAY=$(($DISPLAY + 1))
done
(
f=$TMPDIR/.X11-unix/X$DISPLAY-$(id -u)
rm -f "$f"
umask 0077
{
echo AUTHDISPLAY=:$DISPLAY
echo DISPLAY=:$DISPLAY
echo XAUTHORITY=$XAUTHORITY
echo export AUTHDISPLAY DISPLAY XAUTHORITY
} > "$f"
)
AUTHDISPLAY=:$DISPLAY
DISPLAY=:$DISPLAY
export AUTHDISPLAY DISPLAY XAUTHORITY
# When starting the defaultserver start X on the current tty to avoid the startx session being seen as inactive:
# https://bugzilla.redhat.com/show_bug.cgi?id=806491
vtarg= tty=$(tty)
if expr match "$tty" '^/dev/tty[0-9]\+$' >/dev/null 2>&1; then
tty_num=$(echo "$tty" | grep -oE '[0-9]+$')
vtarg="vt$tty_num"
fi
if command -v mcookie >/dev/null 2>&1; then
COOKIE=$(mcookie)
else
COOKIE=$(dd if=/dev/urandom bs=16 count=1 | od -A x -t x8 | sed -e 's/^0\{1,\} //' -e 's/ //g' -e 2d) 2>/dev/null
fi
X=
if [ -x /usr/lib/xorg-server/Xorg ] && command -v groups >/dev/null 2>&1; then
g=$(groups)
if { echo $g | grep -q video; } >/dev/null 2>&1 && { echo $g | grep -q input; } >/dev/null 2>&1; then
X=/usr/lib/xorg-server/Xorg
fi
unset g
fi
if [ -n "$X" ]; then
:
elif [ -x /usr/lib/xorg-server/Xorg.wrap ]; then
X=/usr/lib/xorg-server/Xorg.wrap
elif command -v Xorg; then
X=Xorg
else
X=X
fi
xauth add "$AUTHDISPLAY" . "$COOKIE"
xinit $HOME/.xinitrc -- $X $DISPLAY -nolisten tcp $vtarg
rv=${?}
xauth remove "$AUTHDISPLAY"
command -v deallocvt >/dev/null 2>&1 && deallocvt
if [ -n "$DOAS" ]; then
command -v setterm >/dev/null 2>&1 && $DOAS $(command -v setterm) --blank 10
fi
exit $rv
# s-itt-mode
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)
More information about the Users
mailing list