Skip to content

Commit

Permalink
Drop travis workaround and README notes for Ubuntu 14.04
Browse files Browse the repository at this point in the history
Closes #33
  • Loading branch information
mikepqr committed Mar 14, 2021
1 parent 70995db commit e9aa9a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
before_install:
- wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.28.tar.xz && tar xf coreutils-8.28.tar.xz
- pushd coreutils-8.28 && ./configure --program-prefix=g && make && sudo make install && popd
script:
- cd tests && ./test_stowsh
33 changes: 1 addition & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ in your path.
coreutils implementation of `realpath` and GNU findutils.

These are already installed on most Linux systems. On macOS you can install
them with `brew install findutils coreutils`.

Unfortunately older Debian-based systems (including Ubuntu Trusty 14.04) do not
include the GNU implementation of `realpath` in their coreutils package. See
[below](#stowsh-on-ubuntu-trusty-1404) for a solution.
them with `brew install findutils coreutils`.

I would welcome PRs to [remove these dependencies and replace them with POSIX
shell commands](https://github.com/mikepqr/stowsh/issues/14)!
Expand Down Expand Up @@ -158,33 +154,6 @@ $ tree -a -I '.dotfiles'
└── conf.cache
```
## stowsh on Ubuntu Trusty 14.04
Older Debian-based systems (including Ubuntu Trusty 14.04) do not include the
GNU implementation of `realpath` in their coreutils package.
Assuming you aren't able to switch operating system (e.g. you're using Travis
CI), you need to install a newer version of coreutils. coreutils contains many
fundamental utilities (cut, true, kill, etc.), and it's probably not a good
idea to upgrade the system version.
The simplest solution is to install coreutils with a prefix:
```bash
wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.28.tar.xz
tar xf coreutils-8.28.tar.xz
cd coreutils-8.28
./configure --program-prefix=g
make && sudo make install
```
Built and installed like this `cut` (or any other coreutils command) will still
be your operating system's regular `cut`, and `gcut` will be the new coreutils
version you just installed.
stowsh will look for `grealpath` and use it in preference to `realpath` if
found.
## What's wrong with GNU stow?
`stowsh` is a short, cross-platform bash script without dependencies. `stow` is
Expand Down

0 comments on commit e9aa9a2

Please sign in to comment.