You are not logged in.
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
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
moved to AUR issues
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
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
Remove / comment out the old build(), add what Trilby posted. Worked for me.
Last edited by karol (2013-09-15 21:39:46)
Offline
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
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
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-mapeditEdit: Glad you got it working.
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
Are all the servers always empty? Or is is just that nobody is playing at this time?
Offline