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

Linux installation for user #39

Closed
AZO234 opened this issue Mar 10, 2019 · 1 comment
Closed

Linux installation for user #39

AZO234 opened this issue Mar 10, 2019 · 1 comment

Comments

@AZO234
Copy link

AZO234 commented Mar 10, 2019

Please consider a method that does not require SU authority to install in Linux user area.

I tried to change follows, I could install with user authority only.

  • buildscripts/build-devkit.sh

[from]
if [ ! -z "$BUILD_DKPRO_INSTALLDIR" ] ; then
INSTALLDIR="$BUILD_DKPRO_INSTALLDIR"
else
echo
...
read -e INSTALLDIR
echo
fi

[to]
if [ ! -z "$BUILD_DKPRO_INSTALLDIR" ] ; then
export INSTALLDIR="$BUILD_DKPRO_INSTALLDIR"
else
echo
...
read -e INSTALLDIRH
export INSTALLDIR="$INSTALLDIRH"
echo
fi

  • devkitarm-crtls-1.0.0.tar.xz/Makefile

[from]
install: all
@mkdir -p $(DESTDIR)/opt/devkitpro/devkitARM/arm-none-eabi/lib
@cp -v *.specs *.ld *.mem $(DESTDIR)/opt/devkitpro/devkitARM/arm-none-eabi/lib
@cp -rv thumb armv6k *.o $(DESTDIR)/opt/devkitpro/devkitARM/arm-none-eabi/lib

[to]
install: all
@mkdir -p $(INSTALLDIR)/devkitARM/arm-none-eabi/lib
@cp -v *.specs *.ld *.mem $(INSTALLDIR)/devkitARM/arm-none-eabi/lib
@cp -rv thumb armv6k *.o $(INSTALLDIR)/devkitARM/arm-none-eabi/lib

  • devkitarm-rules-1.0.0.tar.xz/Makefile

[from]
install:
@mkdir -p $(DESTDIR)/opt/devkitpro/devkitARM
@cp -v $(FILES) $(DESTDIR)/opt/devkitpro/devkitARM

[to]
install:
@mkdir -p $(INSTALLDIR)/devkitARM
@cp -v $(FILES) $(INSTALLDIR)/devkitARM

  • devkitppc-rules-1.0.0.tar.xz/Makefile

[from]
install:
@cp -v $(FILES) $(DESTDIR)/opt/devkitpro/devkitPPC

[to]
install:
@cp -v $(FILES) $(INSTALLDIR)/devkitPPC

Regards.

@WinterMute
Copy link
Member

WinterMute commented Mar 10, 2019

We don't really support use of the buildscripts by end users, where possible you should use devkitPro pacman.

If you really don't have the option to use pacman & the official binaries you miss out on the rest of the infrastructure & the portlibs.

If you really, really must then you could always have /opt/devkitpro user writable.

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