diegomagdaleno / bsdcoreutils Goto Github PK
View Code? Open in Web Editor NEWBSD coreutils is a port of many utilities from BSD to Linux and macOS.
License: Other
BSD coreutils is a port of many utilities from BSD to Linux and macOS.
License: Other
Doesn't seem to be part of homebrew anymore. I'm going to try to compile the bsd utils from source with GCC instead since I don't have the time to invest in homebrew ecosystem woes ATM.
Per readme, I tried..
[jon@MacBook-Pro:~]$ brew install bsd-coreutils
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "bsd-coreutils".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
[jon@MacBook-Pro:~]$
@DiegoMagdaleno would you like some help with the alpine build in the CI?
Hi all,
I'm missing autogen.sh and configure in the source.
(Cloned on 2021-08-09 or 08/09/2021)
Also the docs mention the common GNU toolchain as requirements, but not cmake.
It appears to me that cmake is required though from looking at all the files in the source.
The docs don't mention cmake, nor the steps required for compiling all (or individual) BSD variants.
Am I missing something obvious? Cuz I don't know how to use this.
The reason I'm highly interested in BSDCoreUtils (and plan9 etc.) is because I wanna be able to test my compat shell scripts with non-GNU binaries, but without "heavy" VMs or docker images of common BSD OSes.
I'm on Ubuntu 20.4.2 LTS (for stable) and also OpenSUSE Tumbleweed (for bleeding edge).
Any more infos required, I'll provide them.
Thanks for your answers in advance.
/home/onodera/tmp/new/src/factor/primes.h:47:9: error: unknown type name 'u_int32_t'
47 | typedef u_int32_t ubig; /* must be 32 bit unsigned value */
| ^~~~~~~~~
```/home/onodera/tmp/new/src/factor/factor.c:79:8: error: unknown type name 'u_int64_t'
79 | static u_int64_t usqrt(u_int64_t);
| ^~~~~~~~~
Seems like uint32_t
and uint64_t
should be used and is the standard type. See https://lists.freedesktop.org/archives/release-wranglers/2004-August/000923.html
#include <stdint.h>
should also be added to primes.h
, to include the type.
/home/onodera/tmp/new/src/tee/tee.c:99:38: error: 'DEFFILEMODE' undeclared (first use in this function)
99 | (append ? O_APPEND : O_TRUNC), DEFFILEMODE)) == -1) {
|
Some patch for another program I found (https://www.linuxtv.org/pipermail/vdr/2017-January/029221.html) fixed it by adding this ifdef:
#ifndef DEFFILEMODE
# define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)/* 0666*/
#endif
/home/onodera/tmp/new/compat/src/ohash.h:52:14: error: expected ';' before 'void'
52 | __BEGIN_DECLS
| ^
| ;
53 | void ohash_init(struct ohash *, unsigned, struct ohash_info *);
| ~~~~
/home/onodera/tmp/new/compat/src/ohash.h:60:3: warning: 'bounded' attribute directive ignored [-Wattributes]
60 | __attribute__ ((__bounded__(__string__,2,3)));
| ^~~~~~~~~~~~~
/home/onodera/tmp/new/compat/src/ohash.h:73:12: error: expected ';' before 'struct'
73 | __END_DECLS
| ^
|
There are a lot more errors, I might try creating a patch this week, but I am not an expert with C.
to provide support for GNU's dir
and vdir
, one could simply symlink dir
to ls
and ls -l
to vdir
Update the sources to OpenBSD 6.8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.