Git Product home page Git Product logo

bsdcoreutils's Introduction

bsdcoreutils's People

Contributors

andy5995 avatar dcantrell avatar diegomagdaleno avatar jimbair avatar nils-tud avatar xphyro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bsdcoreutils's Issues

Doesn't seem to be part of homebrew anymore.

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:~]$

Unclear documentation when building on Linux

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.

doesn't build on systems using musl libc.

/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
      |            ^
      |

Fix: https://github.com/alpinelinux/aports/blob/master/community/guvcview/0001-fix-building-with-musl-libc.patch


There are a lot more errors, I might try creating a patch this week, but I am not an expert with C.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.