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

Haikuporter makes too many assumptions about directories existing #282

Open
kallisti5 opened this issue Mar 14, 2024 · 2 comments
Open

Haikuporter makes too many assumptions about directories existing #282

kallisti5 opened this issue Mar 14, 2024 · 2 comments

Comments

@kallisti5
Copy link
Member

Skipping unpack of xz-5.6.1.tar.gz
Cleaning up temporary directories ...
cp: cannot stat '/system/settings/fonts': No such file or directory

workaround:

diff --git a/HaikuPorter/ShellScriptlets.py b/HaikuPorter/ShellScriptlets.py
index 66881f7..71eb9cf 100644
--- a/HaikuPorter/ShellScriptlets.py
+++ b/HaikuPorter/ShellScriptlets.py
@@ -874,7 +874,9 @@ if ! [ -e boot/system/settings/network ]; then
 fi
 # copy font settings
 if ! [ -e boot/system/settings/fonts ]; then
-       cp -r /system/settings/fonts boot/system/settings/
+       if [ -e /system/settings/fonts ]; then
+               cp -r /system/settings/fonts boot/system/settings/
+       fi
 fi
@kallisti5
Copy link
Member Author

ran into this again, another workaround is:

mkdir /system/settings/fonts

@jmairboeck
Copy link
Member

This is caused by #228. This is needed for ports that need fontconfig (like e.g. lilypond).

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

No branches or pull requests

2 participants