You are not logged in.

#1 2013-09-15 19:18:02

subraizada3
Member
Registered: 2013-06-02
Posts: 90

[SOLVED] Xpilot not working

I installed xpilot-ng from the AUR using yaourt. I did not edit the pkgbuild, Yaourt downloaded and installed it, pacman then installed the package yaourt created. There were no errors, however, I can not launch the program. I tried a bunch of commands, including xpilot, xpilot-ng, xpilotng, and varitions of those with capitals for X, P, and NG. The terminal always says command not found. I tried removing xpilot-ng from pacman and reinstalling but that didn't work.

I also tried manually installing from the AUR. Yaourt shows that all dependencies are installed, and makepkg/make don't give any errors.

Last edited by subraizada3 (2013-09-15 21:58:18)

Offline

#2 2013-09-15 19:27:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: [SOLVED] Xpilot not working

pacman -Ql <pkgname> | grep bin

EDIT: I see that returns nothing, nor does the same without the grep: that is an empty package ... because there is no package function, and that is a very broken PKGBUILD.

Here's a working (tail for a) PKGBUILD:

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	./configure --prefix=/usr
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install
}

Please report this to the maintainer and link to this thread for the fix.

Last edited by Trilby (2013-09-15 19:36:03)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-09-15 19:56:05

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED] Xpilot not working

moved to AUR issues


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#4 2013-09-15 21:37:38

subraizada3
Member
Registered: 2013-06-02
Posts: 90

Re: [SOLVED] Xpilot not working

There was already a build() in the PKGBUILD, but not a package()

build() {
          cd $startdir/src/$pkgname-$pkgver
         ./configure --prefix=/usr
          make || return 1
          make prefix=$startdir/pkg/usr install
}

I replaced the build with the one Trilby posted and added Tribly's package() to the end. That didn't work, I'm guessing because Tribly's build() doesn't call make / make install.
Then I added just the package() and left the previous build(), and re-makepkged. make gave an error, here's the last stuff make printed:

Making install in server
make[2]: Entering directory `/tmp/aur/xpilot-ng/src/xpilot-ng-4.7.3/src/server'
make[3]: Entering directory `/tmp/aur/xpilot-ng/src/xpilot-ng-4.7.3/src/server'
test -z "/tmp/aur/xpilot-ng/pkg/usr/bin" || /usr/bin/mkdir -p "/tmp/aur/xpilot-ng/pkg/usr/bin"
/usr/bin/mkdir: cannot create directory ‘/tmp/aur/xpilot-ng/pkg’: Permission denied
make[3]: *** [install-binPROGRAMS] Error 1
make[3]: Leaving directory `/tmp/aur/xpilot-ng/src/xpilot-ng-4.7.3/src/server'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/tmp/aur/xpilot-ng/src/xpilot-ng-4.7.3/src/server'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/aur/xpilot-ng/src/xpilot-ng-4.7.3/src'
make: *** [install-recursive] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

makepkg -s didn't help.
It seems like it has issues making /tmp/aur/xpilot-ng/src/xpilot-ng-4.7.3/src/server (/tmp/aur is where I extracted the .tar.gz).

Last edited by subraizada3 (2013-09-15 21:58:07)

Offline

#5 2013-09-15 21:39:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Xpilot not working

Remove / comment out the old build(), add what Trilby posted. Worked for me.

Last edited by karol (2013-09-15 21:39:46)

Offline

#6 2013-09-15 21:50:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,518
Website

Re: [SOLVED] Xpilot not working

subraizada3 wrote:

I replaced the build with the one Tribly posted and added Tribly's package() to the end. That didn't work, I'm guessing because Tribly's build() doesn't call make / make install.

That was the right thing to do.  Build should not run `make install`.  What didn't work?  Did it create a (non-empty) package?  It works here.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2013-09-15 21:54:24

subraizada3
Member
Registered: 2013-06-02
Posts: 90

Re: [SOLVED] Xpilot not working

So that previous issue was some issue with me using sudo to untar/edit the PKGBUILD.
I deleted the extracted tar, re-extracted it, edited the PKGBUILD as karol mentioned, and pacman -U'd it.
It still doesn't work.

What command are you using to launch it? The internet told me it was xpilot, I also tried xpilot-ng.

EDIT:
In a terminal, xp<tab> shows a bunch of xpilot commands.
It works!
I reported the issue and this fix on the AUR.

What's the difference between xpilot-ng-sdl and xpilot-ng-x11?

Last edited by subraizada3 (2013-09-15 21:56:43)

Offline

#8 2013-09-15 21:56:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Xpilot not working

subraizada3 wrote:

What command are you using to launch it? The internet told me it was xpilot, I also tried xpilot-ng.?

As Trilby already posted and as you can read in the wiki: https://wiki.archlinux.org/index.php/FA … tart_it.3F

$ pacman -Ql xpilot-ng | grep bin
xpilot-ng /usr/bin/
xpilot-ng /usr/bin/xpilot-ng-replay
xpilot-ng /usr/bin/xpilot-ng-sdl
xpilot-ng /usr/bin/xpilot-ng-server
xpilot-ng /usr/bin/xpilot-ng-x11
xpilot-ng /usr/bin/xpilot-ng-xp-mapedit

Edit: Glad you got it working.

subraizada3 wrote:

What's the difference between xpilot-ng-sdl and xpilot-ng-x11?

Maybe the former works outside of X too, in the graphics accelerated framebuffer https://wiki.archlinux.org/index.php/DirectFB ?

Last edited by karol (2013-09-15 22:01:31)

Offline

#9 2013-09-15 22:59:52

subraizada3
Member
Registered: 2013-06-02
Posts: 90

Re: [SOLVED] Xpilot not working

Are all the servers always empty? Or is is just that nobody is playing at this time?

Offline

Board footer

Powered by FluxBB