You are not logged in.

#1 2023-08-21 10:58:09

hully
Member
Registered: 2022-11-14
Posts: 150

ancient-packages: The terminal width must be at least 150 columns.

I'm reading the Check for orphans and dropped packages of the wiki.

I want to check for packages no longer in remote repositories, but `pacman -Qm` will list packages installed from the AUR.

So, as suggested in the wiki, I installed ancient-packages.

I have two problems:

1. I can't figure out the real upstream URL (repo, website, etc.), since the AUR lists an image as upstream URL (is this legal?)
2. When I run it, it says "The terminal width must be at least 150 columns.". I use kitty, and the window is maximized.

Offline

#2 2023-08-21 11:03:51

hully
Member
Registered: 2022-11-14
Posts: 150

Re: ancient-packages: The terminal width must be at least 150 columns.

Point 2 is a duplicate of https://bbs.archlinux.org/viewtopic.php?pid=2067929

Point 1 still valid

Offline

#3 2023-08-21 11:17:33

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,925

Re: ancient-packages: The terminal width must be at least 150 columns.

The downloaded zip file holds one file, a bash script which does include the text of the GPL3 license.
The linked picture looks like a screenshot of the output of the script so does give som einfo about the script.
(Xavion has multiple packages that follow the same method.)

I'd say using it is legal, wehether a url to a pic is better then no upstream url is another question.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2023-08-21 17:07:42

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: ancient-packages: The terminal width must be at least 150 columns.

Package maintainer (xavion) is the package author. Upstream link appears to be his own server. If .img is removed from the link it straightly leads to the bash script.

For terminal width issue, just reduce font size.

Last edited by Docbroke (2023-08-21 17:08:45)

Offline

#5 2023-08-21 18:10:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: ancient-packages: The terminal width must be at least 150 columns.

Or just don't use a complicated script that depends on package-query just to do something that a single call to the RPC would provide:

#!/bin/sh

url='https://aur.archlinux.org/rpc?v=5&'
pacman -Qmq | sort >| /tmp/pkgs

curl -s "${url}type=info$(printf '&arg[]=%s' $(cat /tmp/pkgs))" \
	| jq -r '.results[]|.Name' | sort | comm -13 - /tmp/pkgs

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2023-08-21 18:42:46

lfitzgerald
Member
Registered: 2021-07-16
Posts: 162

Re: ancient-packages: The terminal width must be at least 150 columns.

hully wrote:

1. I can't figure out the real upstream URL (repo, website, etc.), since the AUR lists an image as upstream URL (is this legal?)

Lol. I think the point of AUR is that anyone can just go and upload whatever crap they want, there's not really any quality control. One time someone even put a bitcoin miner in an AUR package that claims to do something else (although that one got deleted I think). It's assumed that you will verify it manually. In this case, if the screenshot is not sufficient for you, you should not install it (and maybe complain in the comments).

The actual source code is in http://public.files.xavion.name/Softwar … t-packages, you can see at the bottom of the AUR page.

hully wrote:

2. When I run it, it says "The terminal width must be at least 150 columns.". I use kitty, and the window is maximized.

In kitty, you can use ctrl+shift+- (I think that's the default) to zoom out. This will make the font tiny and unreadable, but also fit more columns in.

The script I linked to, on line 42, has `MinCols=150`. You can change this to 0 so it never complains. IMO the author messed up on line 79: It should have just emitted a warning instead of crashing. "oh you're screen isn't big enough, some formatting may be messed up" is not really sufficient reason to forbid you from running the program.

Offline

#7 2023-08-21 18:51:34

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: ancient-packages: The terminal width must be at least 150 columns.

Not to mention using formating that requires 150 or more columns just for a list of packages is a really silly design - which should make you question the rest of what the script does.

As for the wiki, the "recommendation" to use that script was put their by the script author.

Last edited by Trilby (2023-08-21 18:57:30)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2023-08-21 19:27:41

lfitzgerald
Member
Registered: 2021-07-16
Posts: 162

Re: ancient-packages: The terminal width must be at least 150 columns.

I'm sure PRs are welcome big_smile

Offline

#9 2023-08-21 19:29:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: ancient-packages: The terminal width must be at least 150 columns.

To where, the google drive of an inactive user?

Here's my pull request.

Last edited by Trilby (2023-08-21 19:51:41)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#10 2023-08-23 09:35:00

hully
Member
Registered: 2022-11-14
Posts: 150

Re: ancient-packages: The terminal width must be at least 150 columns.

Trilby wrote:

Not to mention using formating that requires 150 or more columns just for a list of packages is a really silly design - which should make you question the rest of what the script does.

As for the wiki, the "recommendation" to use that script was put their by the script author.

I've substituted the recommendation in the wiki with your script (although the wiki puts a link in the URL).

Offline

#11 2023-08-23 12:36:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: ancient-packages: The terminal width must be at least 150 columns.

hully wrote:

I've substituted the recommendation in the wiki with your script

No one should blindly use my example script either without understanding how the RPC works.  And if they understand how the RPC works, they wouldn't need my example script.

Blind trust in one bad tool should not be replaced by blind trust in a less-bad tool, but rather with understanding of how the process works.

Last edited by Trilby (2023-08-23 12:37:22)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB