Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: $HOME not set. Using /tmp. #35

Open
jrd opened this issue Nov 9, 2024 · 1 comment
Open

Warning: $HOME not set. Using /tmp. #35

jrd opened this issue Nov 9, 2024 · 1 comment

Comments

@jrd
Copy link

jrd commented Nov 9, 2024

I regulary have this in my pamac checkrebuild output:

...
Checking which packages need to be rebuilt
parallel: Warning: $HOME not set. Using /tmp.
Updating the desktop file MIME type cache...
...

You can reproduce the error easily:

$ env HOME= checkrebuild

As there is already a temporary folder named $log it’s easy to correct this:

In get_broken_ldd_pkgs around line 77:

filter_executable |
env HOME="$log" parallel --will-cite 'check_broken_ldd "{}"'

I can provide a pull request if necessary but it’s really easy to fix.

@maximbaz
Copy link
Owner

maximbaz commented Nov 9, 2024

Thanks for the report! Makes sense to silence this warning, what do you think about bcd1fae ? I just went with setting it to /tmp as (1) it's what parallel itself apparently wants to fallback to, and (2) since parallel actually does create new folders and files in that folder, it might be easier to not mix that up with a folder that we actually use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants