|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
||||
Tree of packages.
Hi,
In the tree of packages port, e.g. https://ftp.fr.openbsd.org/pub/OpenB...ackages/amd64/, there is some packages 0ad to Xonotic and then a2pc to zzuf. Anyone knwo why the first packages are not with the others ? 0ad is a opensource game like Freeciv. |
|
|||
Yes, it's as roddierod said. I just wanted to add a small reminder that file systems on *BSD (and in general most FS on other - non-Microsoft - systems) are case sensitive, so you can easily have both ImageMagick and imagemagick in the same directory. And these will not be listed sequentially. You'll have the imagemagick in the list that comes after the last [A-Z]... file.
__________________
May the source be with you! |
|
|||
Ideally, ports would all be lowercase or begin with a numeral. But in practice, as you can see, there are some exceptions.
|
|
|||
BTW, you'll get the same result on your own system using
ls , because what servers do when you request a directory listing online is essentially the same as what happens on your local machine. The output is just neatly dressed in HTML/CSS using a templating engine. That's all. ls -l /usr/local/etc should give you a similar mix of [a-z] and [A-Z].
__________________
May the source be with you! |
|
||||
On Linux systems (and I thought, on OpenBSD), the sort or collation in ls(1) is dependant on the value of the LC_COLLATE locale setting. For example in Linux doing:
Quote:
I tried the same on OpenBSD but it didn't make a difference to the sort order, so I suspect this is not (yet?) supported on OpenBSD.
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq' |
|
||||
Quote:
Quote:
|
|
||||
I tried it on Slackware Linux and got the same result each time.
Here are the default environment variables I have: LC_ALL=POSIX LC_COLLATE=C LC_CTYPE=en_US.UTF-8 First, the default behaviour: % ls -1 and then: % LC_COLLATE=en_GB.UTF-8 ls -1 PS: I also tried changing LC_CTYPE instead of LC_COLLATE, with the same result. |
|
||||
Now that's odd. I'm on Arch Linux:
Code:
% mkdir foo && cd foo % touch 01 AA BB CC aa bb cc % LC_COLLATE=C ls -1 01 AA BB CC aa bb cc % LC_COLLATE=en_GB.UTF-8 ls -1 01 aa AA bb BB cc CC % locale LANG=en_GB.UTF-8 LC_CTYPE="en_GB.UTF-8" LC_NUMERIC="en_GB.UTF-8" LC_TIME="en_GB.UTF-8" LC_COLLATE=C LC_MONETARY="en_GB.UTF-8" LC_MESSAGES="en_GB.UTF-8" LC_PAPER="en_GB.UTF-8" LC_NAME="en_GB.UTF-8" LC_ADDRESS="en_GB.UTF-8" LC_TELEPHONE="en_GB.UTF-8" LC_MEASUREMENT="en_GB.UTF-8" LC_IDENTIFICATION="en_GB.UTF-8" LC_ALL=
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq' |
|
||||
Thanks! Here's some further information from my system:
% export LC_CTYPE LC_COLLATE % echo $LC_CTYPE % echo $LC_COLLATE Those are what I reported above. But then this: % locale Note that LC_CTYPE and LC_COLLATE are not the same as above, and are reported in double quotes, which seems to indicate default settings. This seems odd to me, but I am not too familiar with these kinds of settings at all. If someone has a ready explanation, that would be cool, but please don't spend much time on it since I am ok with how it is working. |
|
||||
I believe "POSIX" is the default, unconfigured setting. I'm unfamiliar with Slackware, but a cursory Google search came up with this: https://docs.slackware.com/slackware:localization
On Arch, adding the line Code:
LANG=en_GB.UTF-8
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq' |
|
||||
Thank you for that I will have to take a look; global things are probably set in /etc/profile, and then I added some tweaks. With your link, the locale man page and some experimenting I should probably be able to figure it out.
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ports tree for 5.9 Locked | shep | OpenBSD Installation and Upgrading | 1 | 25th February 2016 11:03 AM |
OpenBSD 4.8 ports tree locked! | ocicat | News | 0 | 2nd August 2010 07:31 PM |
Is my ports tree corrupt or sth? | TerryP | FreeBSD Ports and Packages | 1 | 29th June 2010 09:51 PM |
GCC in src tree or in ports tree | vigol | FreeBSD Ports and Packages | 2 | 6th December 2009 04:34 PM |
Mount smb in zfs tree | mururoa | FreeBSD Installation and Upgrading | 0 | 15th November 2009 04:02 PM |