devkitPro / buildscripts

Scripts for building devkitPro toolchains
http://devkitpro.org/
159 stars 40 forks source link

Linux installation for user #39

Closed AZO234 closed 5 years ago

AZO234 commented 5 years ago

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.

[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

[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

[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

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

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

Regards.

WinterMute commented 5 years ago

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.