You are not logged in.

#1 2014-05-21 04:21:15

thiagowfx
Member
Registered: 2013-07-09
Posts: 586

[SOLVED] [Request] XAMPP

There is already a XAMPP PKGBUILD in the AUR [1], but it is outdated.

I tried to create a PKGBUILD myself, but I faced several issues. First, let me point out the download page [2]. As you can see, there are now builds for i686 and x86_64, no problem. These builds are .run files. My problems:

1) I cannot extract the contents of the .run file without having superuser privileges. This implies I cannot build a package from a .run file without running makepkg as root. What should we do then?

2) The only non-GUI way of installing a .run file (with root privileges, see 1) above) that I've found was to pass a --mode unattended parameter to it. Problem is: this installs the package directly to /opt/lampp (NOT ${pkgdir}/opt/lampp, which we want). You can see a list of options with the --help flag.

Any ideas here?

EDIT: For 1), it looks like fakeroot solves the problem. Now the only problem seems to be how to change the default installation dir.


[1]: https://aur.archlinux.org/packages/xampp/
[2]: http://sourceforge.net/projects/xampp/f … nux/1.8.3/

Last edited by thiagowfx (2014-06-06 22:30:42)

Offline

#2 2014-05-28 09:16:43

jdbrown
Member
Registered: 2014-01-03
Posts: 73

Re: [SOLVED] [Request] XAMPP

That's tricky...

Another package I can think of which is built with .run files is the nvidia binary driver. It has an --extract-only option. The .run file supplied by XAMPP obviously doesn't have it. Maybe it doesn't like to be packaged.

Offline

#3 2014-05-29 03:37:08

thiagowfx
Member
Registered: 2013-07-09
Posts: 586

Re: [SOLVED] [Request] XAMPP

There is VMWare also.

The best suggestion I have right now is to manually download the .run file, then extract it -- installing it to /opt/xampp, since there is no other way --, to finally create a tarball and upload it to some hosting service. But I'm not willing to do that; it would be more practical to manually download and install the .run file.

I also thought of using mount --bind to mount ${pkgdir}/ into /opt/xampp. That would be very strange, but would probably work...but I think there is no way to use mount without having root privileges.

Offline

#4 2014-05-29 06:01:16

jdbrown
Member
Registered: 2014-01-03
Posts: 73

Re: [SOLVED] [Request] XAMPP

I just found out proot in the AUR may do the trick.

Offline

#5 2014-06-06 19:36:06

thiagowfx
Member
Registered: 2013-07-09
Posts: 586

Re: [SOLVED] [Request] XAMPP

I also found hai. I'll try again later with one of those two.

Last edited by thiagowfx (2014-06-06 19:36:47)

Offline

#6 2014-06-06 22:30:09

thiagowfx
Member
Registered: 2013-07-09
Posts: 586

Re: [SOLVED] [Request] XAMPP

@jdbrown, proot works amazingly! More specifically, I used its mount --bind feature to do what I described in my previous post.

I'm contacting the current maintainer. PKGBUILD is available here.

Offline

Board footer

Powered by FluxBB