~sircmpwn/aerc2#177: 
Filter directory is not correct when building with custom $SHAREDIR

When I make and install with a different $SHAREDIR the root filter dir is not correct. For example, if I build with:

env GOPATH=$HOME/go PREFIX=$HOME/.local SHAREDIR=$HOME/.local/share/aerc make install

Then when I open an email it shows:

sh: /usr/local/share/aerc/filters/plaintext: No such file or directory                                                         
(END)
Status
REPORTED
Submitter
~geemili
Assigned to
No-one
Submitted
1 year, 4 months ago
Updated
1 year, 4 months ago
Labels
No labels applied.

~sircmpwn 1 year, 4 months ago

Did you first run make without the correct prefix/sharedir configured?

Don't set GOPATH, either.

~geemili 1 year, 4 months ago

Yes, but I ran make clean and then tried installing again.

I looked into it a bit further, and now I realize that the filter path is set in the config, and editing it there fixed it.

I must note though, that if I do not set the GOPATH, go tries to store the dependencies to GOROOT. That fails as I am on NixOS, and go is installed via nix which installs it in /nix/store/, which is read-only.

Register here or Log in to comment, or comment via email.