Skip to content

u/hexchain

In this archive from Feb 2017 to Nov 2020

0
posts
26
comments
0
media
61
score

It's the suggested way to use dash on Arch from the wiki.

You know the Wiki is mostly written by random people, right?

No, that's not how shells work. You never assume the /bin/sh of a user, that's why different shebangs #!/bin/sh and #!/bin/bash are used. If you have a script that is only tested in bash, you use #!/bin/bash.

I agree with this, and the script that broke for you is not optimal in this regard.

I am very busy right now. You are being too demanding here. Do you think you are in the position to criticize me for trying to help others in my free time? Obnoxious.

Fine, I can understand if your Internet reaches Reddit faster than the Arch bugtracker. You now have the time to point out mistakes in two of my posts, sentence by sentence, but have you already created a bug report or updated the wiki page about dash? You can totally ignore me and do that instead, and I don't want to argue with you about something I really couldn't care less.

Also, in my first post, I'm just trying to tell you that you have broken a part of base and are thus "unsupported". However, you still don't seem to agree with that, so I am now giving up. Good luck with your /bin/sh.

base is ought to work as long as a shell that is able to execute POSIX compliant scripts is used, such as dash.

Umm, no, because base explicitly depends on bash, not dash or any other shell. Again, this does not mean I'm encouraging treating sh == bash in the shebang. As I said you seem to care about this very much, so you are in a better position to notify the maintainers about such type of bugs, when you have the time of course.

"well, it's your fault you found the bug in the script, because you deviate from the standard"

It's your fault for going the unsupported way, not for finding a bug.

It's still a bug and it can only be beneficial to inform others.

It can be more beneficial if you can tell the package maintainer that the script shebang is wrong.

Please don't waste your time and reply to this anymore.

1 points

I wrote this as a PSA

No it's not even a PSA. You replaced a file belonging to the base system, so you are totally on your own. Very few other people do that.

You are overcomplicating a dead simple scenario that most linux users should be familiar with: I use dash as my /bin/sh. Period. My bash is not incomplete.

/bin/sh is a part of the bash package, so every other package is totally fine to assume that /bin/sh is bash on Arch Linux and not some other shell. Replacing /bin/sh makes your bash package incomplete.

All scripts with a #!/bin/sh shebang should run on shells like dash as well. Anything else is a bug.

Some register script in a haskell package has the #!/bin/sh shebang but is incompatible. So I think this information could be useful to others.

Then please file a bug on the bug tracker properly. It doesn't take more time than writing such a "PSA".

So if you think linking dash to /bin/sh is a bad idea, maybe correct the Archwiki, which suggests exactly what I did as a solution to use dash

I don't use dash, and I don't replace random files by hand, so I don't have the obligation to edit the Arch wiki for something I don't care about. You followed that advice and it gave you trouble, maybe you are in a better position to notify other people about potential breakage.

And no, my base is not tainted.

Do you really agree that "deliberately breaking a base dependency" does not taint base?

I feel like you're spreading terrible misinformation and I'm not too fond of it.

I'm also not interested in some people trying to be smart and whine when things go wrong.

1 points

Well, to be fair, the package bash contains /usr/bin/sh, and it is a dependency of base. You changed /usr/bin/sh to be something else, and that means your bash isn't complete anymore, therefore your base is also tainted. Per this announcement you are totally on your own. If you open a ticket on the bug tracker you'll probably get the same answer from the maintainers.

Also if you want to package something that links to the system Haskell library, please reference the PKGBUILD of current Haskell programs, for example, https://github.com/archlinux/svntogit-community/blob/packages/dhall/trunk/PKGBUILD.

1 points

One possible way is that you can run a power management program from a DE. Depending on the program it may or may not depend on other parts of the DE. This probably has nothing to do with TLP though, they are for different purposes.

I used to run xfce4-power-manager with i3, which doesn't depend on XFCE4 and is also very lightweight.

2 points

They are the same emoji font but in different formats.

ttf-twemoji is created with the toolchain used for Noto Color Emoji, so the font uses the CBDT/CBLC color font format. Note however that the font in this package is actually built by Fedora, and the PKGBUILD directly takes the output from the Fedora build system.

ttf-twemoji-color is basically the same font in SVGinOT format.

Personally I'm using ttf-twemoji and it works well as a system-wide emoji font. I'm not sure about the other, and I don't really like the idea of parsing XML in font rendering engines.

2 points

python-jedi has been broken for at least 2 weeks, and programs that depend on it, such as editor plugins and IPython, are also broken as a result.

I totally understand the unwillingness to update when there isn't an upstream release, but please consider making exceptions to ensure the correct functionality of other packages. I remembered that sometimes there were a whole bunch of gtk/gnome/pulseaudio-related packages getting updated to git version numbers (example) and I don't see why the same thing cannot be done for jedi.

2 points

But it seems libvirtd still calls iptables even if firewalld (nftables) is there, and refuses to work if iptables fails. It also does not change zone assignments of its interfaces in firewalld, which I think it should. Is it working for you?

(The current Arch libvirt package is built without --with-firewalld{,-zone}, so I build one with these options but still cannot get rid of iptables.)

1 points

That site you have run into is a reverse proxy to AUR, run by a LUG-like group, and for some reason, it got indexed by Google, probably because someone linked to the proxy on some page and got crawled. It is for the convenience of some Arch users in mainland China because they cannot reach AUR directly due to a bad connection to the global Internet.
If you do not trust them at all, change your password, and you'll be fine.

14 points

I had an HP Spectre x360 in 2016 and it was good, except for the strange 13" FHD screen, because you need a non-integer scale factor or things looks small.

Also I gave up on the touch screen, nothing in Linux supported it well enough that I could use it as a tablet. (This is basically the reason why I prefer regular laptop to convertibles now)

1 points

I've had lots of problems with emoji before and now I just use a simple configuration like this:

    <match target="pattern">
        <test name="family" qual="first" compare="contains">
            <string>emoji</string>
        </test>
        <edit mode="assign" name="color">
            <bool>true</bool>
        </edit>
        <edit mode="assign" name="family">
            <string>Noto Color Emoji</string>
        </edit>
    </match>

    <match target="pattern">
        <test name="prgname" compare="not_eq">
            <string>java</string>
        </test>
        <test name="prgname" compare="not_eq">
            <string>chromium</string>
        </test>
        <edit name="family" mode="prepend">
            <string>Noto Color Emoji</string>
        </edit>
    </match>

The reason for excluding chromium is that (at the time when I was messing with fontconfig) prepending emoji font to the head of the list effectively breaks all Phabricator instances, because of their CSS font rule puts emoji font at the first. Just checked - it's still broken now: https://imgur.com/a/l0JAjxo

Note that you may run into further issues, mostly in terminals, due to problems with the characters' width. Your terminal may consider an emoji character having width 1 (taking up 1 "cell"), while in your fonts it appears to be 2. Then you may have to append a space to make the emoji display correctly.

The usual way for a console application to decide the width of a character is the glibc function wcwidth(), which may return 1 for the old smiley face and ♥️. This character width data relies on locale. Glib (used by VTE) has its own width table, and these two tables might disagree on some occasions. You may notice the problem mostly in ncurses applications (i.e. weechat), while pressing backspace to remove emoji characters. And there are ligatures, used for skin tones/country flags, which are also very hard to get right in terminal.

Also note that if you try to force emojify a character, it might look like this: https://imgur.com/a/mXuQ0Ad

Reference: http://maskray.me/blog/2016-03-13-terminal-emulator-fullwidth-color-emoji a blog post in Chinese, sorry. But Google Translate gives pretty good result. Most of the code fixes to various packages are not needed now.

2 points

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.