View unanswered posts | View active topics It is currently Mon Jul 23, 2018 3:09 am

Reply to topic  [ 3 posts ] 
 dkp-pacman removes /etc link on macOS 
Author Message

Joined: Thu Jun 07, 2018 8:31 am
Posts: 2
Yesterday I installed the most recent dkp-pacman from GitHub on my MacBook with macOS 10.13.4.

I tried to install the switch-dev package using `dkp-pacman -S switch-dev` and it gave me the error `devkit-env: /etc exists in filesystem`
At that point I had no idea what that meant. Obviously the directory /etc exists so I saw no issue with that. One thing worth noting is that on macOS /etc is actually a link to /private/etc (afaik).

Ignoring all the warnings I decided to run `dkp-pacman -S switch-dev --force`, which worked fine. Except that it removed the /etc link and created a 'real' /etc directory (probably because it wants to place in /etc/profile.d)
At this point macOS started breaking down, because all kinds of files where 'missing' in /etc. Simply rebooting into recovery mode and running `ln -s /private/etc /etc` fixed the problem.

Just before writing this post I tried this again with the `3ds-dev` package, but without --force. To my suprise it still removed the /etc link and created a new /etc directory.
Console log

Thu Jun 07, 2018 8:47 am
Site Admin

Joined: Tue Aug 09, 2005 3:21 am
Posts: 1277
Location: UK
My apologies, that package should probably have been placed in the dkp-linux repo rather than dkp-libs.

On my system even --force doesn't allow pacman to overwrite the symlink which I presume is System Integrity Protection in action even though /etc isn't listed at Did you disable it?

For now I'm going to move that particular package over to the dkp-linux repo but I do still need to find a way to set the environment variables on OSX. Any ideas on how best to do it (probably for the pacman installer itself)?

Help keep devkitPro toolchains free, Donate today

devkitPro IRC support
Personal Blog

Thu Jun 07, 2018 3:14 pm
Profile ICQ WWW

Joined: Thu Jun 07, 2018 8:31 am
Posts: 2
Yes I did disable SIP.

As for environment variables you could either just put them in ~/.profile or print them to the screen and ask users to set them manually, since there are quite a few users who don't use the built-in bash (e.g I use fish and always set the environment vars myself, so I wouldn't be the best person to ask).

Oh and thanks for your quick response :)

Wed Jun 13, 2018 9:39 am
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
  Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.
Get devkitPro at Fast, secure and Free Open Source software downloads