libera/#devuan/ Wednesday, 2021-09-01

plasma41rrq: I'm doing a bit of archaeology. Are the repos from Devuan's old GitLab instance archived somewhere? In a giant tarball, perhaps?05:54
rrqthe gitlab server image is still around; could be brought up I think, with localnet access05:56
rrqafaik all projects of any sgnificance were transfered to gitea05:57
rrqsome personal projects were abandoned by the persons05:58
rrqdo you need the image up?05:59
Xenguyplasma41, Not sure if this is helpful:  https://www.devuan.org/gitlab-issues/06:15
plasma41Xenguy: yes, I'm aware of the issues archive. Unfortunately it doesn't contain any of the code from the archives which is what I'm after.06:17
XenguyAlas06:17
rrqplasma41: all devuan projects were migrated; some changed name slightly (removing excessive "devuan" from the names)06:40
plasma41rrq: Unfortunately I was look for the source for blinkdog's old pad reformatter tool which was in a personal repo.06:42
plasma41golinux found a couple source files on her machine, so I have those now. I don't think they're the full source or the latest version, but they are at least the most important files for whatever version they are.06:45
rrqok, I'll have a poke to see how far from dead the VM image is...06:46
golinuxrrq: the names of the files plasma was asking about are wikify-pad.coffee and listify-pad.coffee  from @2017.08:02
rrqyeah; I digged out the old repo for him.. so he'll find his way08:04
eleison[m]I have a bit of a silly question. I have used systemd-free OSs before (gentoo, void, etc) so I haven't come across this one before: I installed Devuan Chimera and tried to install chromium, and for some reason apt said that libsystemd0 had to be removed. I am happy for it to be removed (Though I know it's not a big deal having it) but I am curious to know why it wanted to remove it in the first place. This is not so much a request for support12:58
eleison[m]as a question to know more :)12:58
eleison[m]Could it be that Chromium was bringing with it a version of a service that had been de-systemded and that conflicted with the library?12:59
gnarfaceeleison[m]: you used the chromium from the devuan repo, right?13:15
eleison[m]Yes13:15
gnarfacedid you see it perhaps replace it with libelogind0?13:16
eleison[m]Mm I see. To be honest I trusted the process and went ahead regardless :D I was just curious why chromium and not other packages triggered this event, as I installed quite a few packages before. I know chromium is a monster that brings loads of stuff with it, but it still caught my attention13:18
gnarfacewell libelogind0 is devuan's replacement for the already vestigial libsystemd013:19
gnarfaceit's possible chromium in chimera has been altered to prefer that one, that would just be my guess13:19
gnarfacebut also i would assume that's because you're using elogind too13:20
eleison[m]Yeah, that's what I suspected :)13:20
eleison[m]Yep, I am13:20
gnarfacei would have recommended trying to install it with --no-install-recommends to see if that avoids it, but only if you weren't using elogind already13:20
gnarfacewell maybe even if you were13:20
gnarfacebut if you require elogind it would not have helped13:21
gnarfaceyou might not actually require elogind at all, but i think it's a common dependency for some graphical login managers13:21
eleison[m]I only have ratpoison and start with xinit13:22
gnarfaceoh, well then i'm not sure you need elogind at all13:22
eleison[m]I thought you needed elogind to avoid having to set suid on the X binary?13:22
gnarfaceuh... well that's not strictly true if you don't rely on giving your window manager's users unprivileged access to the reboot, shutdown, sleep and hibernate functionality13:23
eleison[m]Mmmm I see. Interesting13:23
gnarfaceyou could always execute shutdown by command-line with su or sudo13:23
eleison[m]I always do. I have an aversion for GUIs13:24
gnarfaceworth noting some commercial video drivers last i checked (nvidia) still do require suid root xor binaries just for working hardware acceleration, but that's a separate issue that doesn't affect all hardware13:24
gnarface*xorg binaries13:24
eleison[m]I use one of those integrated intel HD whatever13:24
gnarfacethere's 2 drivers that work for those and at least one of them doesn't need to be suid root anymore13:24
gnarfaceand they're both open source13:25
eleison[m]Does that mean that I can just blast elogind from orbit and go my merry way? :D13:25
gnarfacewell i did but your mmv13:25
gnarfacei think so, yes13:25
gnarfacedbus might be harder to get rid of13:25
eleison[m]Yeah, if I am correct firefox wants atk which wants dbus13:26
gnarfacebut i go without elogind (or any permissions backend) and without avahi-daemon, pulseaudio or portmap13:26
eleison[m]Although in Gentoo I just force-removed dbus and nothing ever broke13:26
gnarfacemost stuff doesn't use it for anything important13:26
gnarfacethe only thing i could find firefox actually doing with it that i cared about was auto-setting default mail clients13:27
gnarfacei don't think steam will start without it though13:28
eleison[m]One of the funny things of these "services" is how little they actually do13:29
eleison[m]pulseaudio is the easiest to get rid of in my opinion. In practical terms it's only useful if you want to be able to use pavucontrol13:29
eleison[m]If anything it makes audio easier to break, in my experience13:30
gnarfaceyea that has been my experience too but i recognize the selection bias of their target audience13:31
* u4t waves13:51
u4tis there a way to determine what ./configure flags were used for a given package?13:52
eleison[m]gnarface: I removed elogind and it installed consolekit and a bunch of other stuff13:52
eleison[m]Install: hdparm:amd64 (9.60+ds-1, automatic), libx86-1:amd64 (1.1+ds1-12, automatic), libcgmanager0:amd64 (0.41-2+devuan1, automatic), libpolkit-gobject-consolekit-1-0:amd64 (0.105-31+devuan1, automatic), powermgmt-base:amd64 (1.36, automatic), libck-connector0:amd64 (1.2.13:53
eleison[m]1-8, automatic), libnih1:amd64 (1.0.3-11, automatic), pm-utils:amd64 (1.4.1-19, automatic), consolekit:amd64 (1.2.1-8, automatic), libnih-dbus1:amd64 (1.0.3-11, automatic), vbetool:amd64 (1.1-5, automatic), ethtool:amd64 (1:5.9-1, automatic), libpam-ck-connector:amd64 (1.213:53
eleison[m].1-8, automatic)13:53
eleison[m]Purge: libpolkit-gobject-elogind-1-0:amd64 (0.105-31+devuan1), elogind:amd64 (246.10-2), libpam-elogind:amd64 (246.10-2)13:53
gnarfaceapt-cache rdepends elogind13:57
gnarface?13:58
gnarfaceor: aptitude why elogind13:58
gnarfaceeleison[m]: ^13:58
gnarfaceor wait, i guess now consolekit13:59
gnarfacesomething you have installed seems to want that functionality or it wouldn't have installed a replacement13:59
eleison[m]xserver-xorg-core Recommends default-logind | logind13:59
gnarfaceoh it's just recommend13:59
gnarfacerecommends14:00
eleison[m]Yeah, no biggie14:00
gnarfaceyou can disable that default of including recommends14:00
gnarfacein the config or on the command-line14:00
eleison[m]Yeah I know, I just left it because of laziness :D14:00
eleison[m]--no-install-recommends14:00
eleison[m]gnarface: Thanks for your help!14:09
gnarfacenp14:09
eleison[m]gnarface: What instructions did you follow to be able to launch X without elogind and without SUID?15:00
eleison[m]Here https://www.devuan.org/os/documentation/install-guides/beowulf/Release_notes_beowulf_3.0.0.txt they seem to direct to either elogind or SUID15:00
gnarfaceeleison[m]: i think you should just have to add yourself to the video group?15:11
gnarfacethe default changed for some of the drivers15:11
gnarfaceshould just work and log to ~/.local/share/xorg/ now, i think15:12
eleison[m]I added myself to the video and input groups and still nothing...15:14
eleison[m]I mean, it launches the wm without issues, but input doesn't work15:14
eleison[m]I should've probably been more specific before, sorry15:14
eleison[m]I have the feeling that there is a permissions issue somewhere for accessing the hardware15:14
gnarfaceoh hah15:17
gnarfaceyea you also have to add yourself to the input group, sorry15:17
gnarfaceyou should probably also add audio and cdrom15:17
eleison[m]I am, still can't use any input devices15:18
gnarfacethat's weird... no errors in the logs?15:18
eleison[m]Maybe installing xorg without recommends has left out a bit that I need for the input?15:18
gnarfacelook in the xorg log15:18
gnarfacemight just be some other missing package15:19
gnarfacelibinput or something15:19
eleison[m]Ok it works now :)15:20
gnarfacehah15:20
eleison[m]I've got the feeling it didn't get the change of groups15:21
eleison[m]Anyway, thank you!15:21
gnarfacenp15:21
gnarfaceyou do have to log out all the way for group changes to take effect15:21
eleison[m]yeah I have the feeling that was the problem15:21
eleison[m]next stop, removing eudev haha15:23
eleison[m]If I am correct, I can remove it and just create device nodes with mknode as  I need them15:23
gnarfaceyes, that works for most things15:52
eleison[m]Is this something you have done yourself before? RTFMing at the moment16:51
fsmithredI've done it only partially. The live-isos I make have some static devices set up, but I've never removed udev/eudev16:54
fsmithredand I think I did it around 20 years ago in suse, long before udev.16:54
eleison[m]Ah, ok16:55
fsmithredthere's also vdev if you want to try an alternative. It's in the gnuinos repo.16:55
fsmithredGnuinos is a libre respin of devuan.16:55
eleison[m]I had mdev in mind as well, thank you for the suggestion!16:55
fsmithredare you excluding dbus, too?16:56
eleison[m]Yes, I hadn't started to think about that side of things yet, though16:56
fsmithredthere's a discussion on the forum about it which links to some lists of packages that don't need dbus16:56
eleison[m]Forgive my ignorance, but I imagine things like dunst won't work without dbus. Is there an alternative? I need to know when my colleagues email me :)16:57
fsmithredyou can have a pretty complete desktop if you're selective16:57
fsmithredI don't know dunst16:57
eleison[m]Thanks for that, I will have a look16:57
fsmithredbrb16:57
eleison[m]I know there are unix-compliant notification daemons around, I just hadn't thought about how to integrate them with the rest of the setup16:58
eleison[m]I mean, I would like chromium being able to show notifications, and that's about it16:58
brocashelmis there a way to get orphaner to work again past version 1.7.33?16:59
masonbrocashelm: What's broken about it in its current form?17:00
brocashelmmason: the current version of deborphan purges deborphan because the dev didn't want to maintain it anymore, but i see no reason to discard it completely as i liked the visual convenience (and gtkorphan hasn't been maintained past jessie IIRC)17:01
masonWait, deborphan conflicts with orphaner?17:02
masonlooking17:03
brocashelmorphaner is a binary provided by deborphan. here's one of the bug reports: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=99252417:04
brocashelmi mentioned this in the channel the other day, but no one got back to me on it. i tried 1.7.33 (to get the binary orphaner back in place), but had an issue with "which" (i modified the script then to "command -v" as per debian's new alteration) and then "tempfile" couldn't be found17:06
masonkk, that bug confirms that it doesn't show up in the change log17:07
masonUm. Alright, never mind, reading the end, the person opening the bug looked at the same change list I did17:07
masonhttps://metadata.ftp-master.debian.org/changelogs//main/d/deborphan/deborphan_1.7.33_changelog fwiw17:08
brocashelmhttps://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1815276.html17:08
brocashelmthis is the one i meant to link17:08
masonah: https://metadata.ftp-master.debian.org/changelogs//main/d/deborphan/deborphan_1.7.35_changelog17:09
masonThey list a bunch of bugs as the reason:     (Closes: #972509, #981607, #414865, #395282, #488646, #571105, #617863)17:09
Tenkawabrocashelm: how did you make your new which look? I actually removed which and wrote a new wrapper.17:10
Tenkawathat would probably work better for your temp problem17:11
TenkawaI used17:11
Tenkawa#!/bin/sh17:11
Tenkawacommand -v "$@"17:11
Tenkawaexit 017:11
Tenkawaas a /usr/bin/which substitute so old programs could still use it17:12
brocashelmi haven't done that myself. you created a custom which script?17:12
brocashelminteresting17:12
Tenkawayep17:12
brocashelmi'll actually try that out myself. thanks17:12
Tenkawanp17:12
masonbrocashelm: If you do it, might be good to use dpkg-divert so package updates don't clobber your new script.17:13
Tenkawamason: good point17:13
brocashelmalright17:13
Tenkawaalthough I think which is now deprecated17:13
Tenkawawhich is part of the problem17:14
Tenkawathe last update deprecated it17:14
brocashelmyes, debian deprecated which in favor of command -v17:14
Tenkawaand put that line in the top of the scri[t17:14
Tenkawaer script... quote annoying17:14
Tenkawait spewed that output like 100 times in my first build17:15
Tenkawaof a image I was working on17:15
masonWait, they've deprecated which? A tool that's been around for decades?17:15
Tenkawamason: yep17:15
eleison[m]Same reaction from me. Why??17:15
brocashelmyeah, that's what i've been saying17:15
Tenkawathey've replaced it with this "command" tool17:16
masonEvery day, new sharks to jump.17:16
brocashelmand then with usrmerge in the way17:16
Tenkawatrying to find the "backstory" of what history led to this17:17
brocashelmdowngraded deborphan to 1.7.33 and the output is:17:18
brocashelm/usr/sbin/orphaner: 1: tempfile: not found17:18
masonbrocashelm: Can you pastebin the script? Is it using mktemp or something?17:19
Tenkawayeah that looks like a cmd execution17:21
brocashelmwhen i try to use orphaner17:21
brocashelmmason: https://dpaste.org/cD2o17:22
masonbrocashelm: And do you have /bin/tempfile? I'd just hardcode that inside the backticks.17:24
masonIf you have /bin/tempfile, say PACKAGES=`/bin/tempfile`17:25
masonIf you don't, you can substitute a mktemp invocation.17:25
masonLike:    PACKAGES=`/bin/mktemp /tmp/orphan.XXXXXXXX`17:26
mason(literal Xes)17:26
masonAnd if you have neither tempfile nor mktemp, it's time to back up and head over to Illumos or BSD. :P17:27
masons/back/pack/    bad typing day17:27
brocashelmthen it's time to switch to devuan openbsd17:28
brocashelmi don't have /bin/tempfile, ugh17:28
masonbrocashelm: mktemp ought to work fine17:28
masonit's the traditional tool for the purpose17:28
Tenkawahmm17:29
TenkawaI dont get that error without either one17:29
brocashelmoh yes i have mktemp17:29
masonTenkawa: But it's trying to call that. Do you not have that line filling PACKAGES with tempfile output?17:29
TenkawaI just copied his paste output17:30
Tenkawawhat else do I need to stage?17:30
masonbrocashelm: There's also TMPFILE=`tempfile` later on that you'll want to fix17:30
brocashelmi see it17:31
masonbrocashelm: And whomever wrote that is a bit careless. Random extraneous punctuation.17:31
TenkawaI created a script to run based on his output.. does he have some env vars I need still?17:31
brocashelmwhat needs to replace it?17:31
Tenkawato emulate his test condition?17:31
masonPACKAGES=`/bin/mktemp /tmp/foo.XXXXX`17:32
masonTMPFILE=`/bin/mktemp /tmp/foo.XXXXX`17:32
masonEven better, $() instead of `` but that's more style than anything. Nests.17:32
brocashelm/usr/sbin/orphaner: 372: cannot create : Directory nonexistent17:33
brocashelm/usr/sbin/orphaner: 430: cannot open : No such file17:33
brocashelm/usr/sbin/orphaner: 493: cannot create : Directory nonexistent17:33
brocashelmoh, ok, i see what i did wrong17:33
brocashelmi replaced TMPFILE= with the PACKAGES=17:33
masonGuessing temp instead of tmp?17:33
masonOh17:33
masonYeah, one of each.17:33
brocashelmnice, it works!17:33
Tenkawacool :)17:34
masonNote that there might be other issues. This seems like a script with a whole subscription's worth of issues.17:34
Tenkawayeah17:34
masonWow, that comment. "Don't touch the next two lines!" If you ever feel the need to do something like that, just call printf with the hex value of the funny character you want to capture.17:35
masonI think I want to find out who wrote that script so I can PIN all his or her packages.17:35
masonFive people have copyright on that script, and that stuff wasn't fixed.17:36
user____which webmail system available on devuan is known to work well on Android browsers too?18:41
rwpIt's perhaps been missed that tempfile has been removed from Sid/Ceres now.  It's gone.  (Also, please do not hard code paths eg /bin/mktemp please just use PATH.)19:23
rwpSid/Ceres flowing into Chimaera has a series of broken bits right now.  The removal of tempfile is one of them that broke Xsession and other things.19:25
rwphttps://bugs.debian.org/992399 debianutils: removes interface from essential package without proper transiti19:26
rwpAnother harsh one is that they moved run-parts and the old hard coded paths to it are now broken.  (Please don't use hard coded paths.)19:26
rwphttps://bugs.debian.org/992410 move of /bin/run-parts to /usr/bin breaks network with ifup19:27
fsmithredtempfile is still in chimaera and stuff is done flowing automatically from ceres to chimaera.19:29
rwpThe rc severity bugs are blocking the flowing?  That's what I would expect.19:32
rwpI am running Sid/Ceres on my desktop and a couple of other canary systems and I hit all of those on the day after they were uploaded.19:33
masonrwp: If it was in his PATH then it would have been found, so it explicitly was not in his PATH.19:33
masonrwp: Scripting, it's often a good idea to not assume anything about the user's environment.19:33
masonrwp: This instance demonstrates just this.19:33
rwpI still claim that hard coding the path in something like /bin/mktemp has many problems.  Avoid!  Avoid!19:34
fsmithredyou can set the path in the script. I did that with a couple of them.19:34
masonrwp: What's your better solution for him, since it clearly wasn't in his path, suggesting that /usr/bin/env would also have missed it?19:34
rwpThat is exactly the same problem that the current move of run-parts has now tripped over in several places such as ifupdown.19:35
masonrwp: Things shouldn't move once established.19:35
fsmithredis /usr/bin/env getting moved??19:35
rwpWasn't the problem that tempfile has been removed from ceres? Since it wasn't found?  In that case the better choice was to convert to mktemp.  It was orphaner?19:36
* rwp goes looking for deborphan bug reports...19:36
rwpfsmithred, /usr/bin/env can't really ever move ever.  Legacy.19:36
masonfsmithred: /usr/bin/env is the common answer for "I don't know where something is but I want to invoke it" among its other tricks.19:37
fsmithredgood19:37
masonfsmithred: It's also useful for faking out a service command on systems that lack one. Run something through 'env -i' and you start it with a scrubbed environment.19:37
rwpI see only this one: https://bugs.debian.org/972509 "WARNING: tempfile is deprecated; consider using mktemp instead" marked as fixed in 1.7.34.19:37
masonWhat's amusing to me is that I've never heard of tempfile(1) before today, and now I learn that it's deprecated.19:38
rwpenv became the canonical documentation answer to users where we had no idea what shell they were using.  Was it bash?  ksh?  csh?  zsh?19:38
rwpIf it was csh or tcsh (which surprisingly many people are still using!) then one can't say "foo=something somecommandhere args" because that fails.19:39
fsmithredgood19:39
fsmithredand that brings me to another question19:39
rwpBut one can document "env foo=something somecommandhere args" and it will work for all of the shells.19:39
fsmithredif we use 'command -v' instead of which, what does that do to people who aren't using bash. Do other shells have that same builtin?19:39
rwpIt's also "a" solution (one of several) for generic OS instructions where the user might be on OpenBSD or one of the other Free Software systems that isn't GNU where things are "different".19:40
rwpFor example on HP-UX a non-root user might have had to install bash in /usr/local/bin/bash or $HOME/bin/bash in which case "#!/usr/bin/env bash" works portably across systems where almost nothing else will.19:41
masonfsmithred: command works in dash19:41
rwpfsmithred, As I understand it (I guess I need to go look at some point) POSIX has added that requirement to POSIX sh in the latest revision of it.19:42
masonNot sure where else it might be, but dash and bash are probably the big targets.19:42
rwpTherefore all shells that might be used for /bin/sh must implement it now.19:42
rwpBut for example I looked up something and found that 2008 Debian's Policy required it NOT use command -v at that time because it was NOT in the current POSIX revision at that time.19:42
rwpSo I presume that this was changed in the recent revision of the standartds.19:43
masonSearching for "command" in the dash man page is unfortunately funny.19:44
masonAh, got it. Under Builtins.19:44
rwpDefinitely in the standard now: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html19:46
rwpApparently added in the 2008 revision of it.19:46
masonToo new to be worthy of notice. It needs to gather a protective layer of dust before it's worth considering.19:47
fsmithredI've been using 'type -p' in some places. Does the same thing.19:47
rwpLet's trip down memory lane to *before* 2008: https://web.archive.org/web/20081002164531/https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html19:47
rwp"... since command -v, type, and which are not POSIX."19:48
rwpStandards doc on "type" without a "type -p" option required: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/type.html19:49
rwpThat makes "type -p" a bash'ism (even if it originated with ksh)19:50
fsmithredthanks. Made a note to change that.20:15
fsmithredafk. bbl.20:15

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!