Closed hiroshimrt closed 3 weeks ago
Can confirm, col
is not in our util-linux
package.
Will look into why that is.
Yep, that would do it.
configure: WARNING: building for glibc not found; not building col
Gonna ping @fornwall as the last packager. Any ideas where to start looking?
This seems to be the commit removing col
when not building for glibc: https://github.com/util-linux/util-linux/commit/8886d84e25a457702b45194d69a47313f76dc6bc
build-sys: only build col on glibc col expects an EILSEQ failure of getwchar() to leave the undecoded data in the buffer to be read by a subsequent getchar().
This is not guaranteed by the standard and for example musl libc does not conform to this expectation.
As col is deprecated anyways just disable it on non-glibc instead of fixing it.
This document contains the deprecation information: https://github.com/util-linux/util-linux/blob/master/Documentation/deprecated.txt, which in turn references this doc: https://pubs.opengroup.org/onlinepubs/7908799/xcu/intro.html#tag_001_003_003, where col
is listed under the LEGACY
section:
The utilities in the table below are marked LEGACY. Various factors may have contributed to the decision to class a utility LEGACY. Application writers should not use functionality marked LEGACY.
So I guess we either patch back building col
at least for a while, or just accept that upstream wants col
to be deprecated and disabled for non-glibc builds. What do you think? @hiroshimrt how useful / hard to replace is col
?
Hmm, well it's breaking at least one user's workflow.
So we should definitely provide a col
utility.
It is also a standard UNIX utility user the Single UNIX Specfication v2.
So either we reenable it in util-linux
with a note about it being considered Legacy by upstream, or we package a standalone implementation of it.
stand alone = less maintenace ๐
stand alone = less maintenace ๐
If you can find one that is.
Repology doesn't list any standalone col
packages asides from a single Nixpkgs package of util-linux's col
, and at that point we may as well just reenable it in util-linux.
Fixed in version 2.40.2-1
of util-linux - run pkg up
to update.
--
thank you
i started to use col few years ago
i found it in the manpage of man on macOS terminal (man man)
2024ๅนด9ๆ23ๆฅ(ๆ) 2:39 Fredrik Fornwall @.***>:
Fixed in version2.40.2-1 of util-linux - run pkg up to update.
โ Reply to this email directly, view it on GitHub https://github.com/termux/termux-packages/issues/21537#issuecomment-2366887006, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLPPRFP26WABWKVNNZ55JMDZX36FNAVCNFSM6AAAAABOUDDBTOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRWHA4DOMBQGY . You are receiving this because you were mentioned.Message ID: @.***>
Problem description
-- [Bug]: "col" was removed by "pkg upgrade"
Dear sir
$ col The program col is not installed. Install it by executing: pkg install util-linux
The latest version of util-linux does not contain col command
I have solved this problem by using my personal backup file of "col"
Thanks in advance
What steps will reproduce the bug?
pkg upgrade
will simply remove the existing file /data/data/com.termux/files/usr/bin/col
What is the expected behavior?
e.g. failure in shell-script (calling col command)
System information