[Xastir] Xastir 2.0.0 on Arch Linux

Lee Bengston lee.bengston at gmail.com
Tue Dec 21 10:14:54 EST 2010


On Sun, Dec 19, 2010 at 5:08 PM, Mike H <mph at swcp.com> wrote:
> This is a question specific to Arch Linux.  I'm trying to build an Arch
> package (PKGBUILD) for xastir 2.0.0.  The current PKBUILD in the Arch User
> Repository is xastir 1.9.8:
>
> https://aur.archlinux.org/packages.php?ID=22327
>
> That works without a problem.  If I uninstall that, I'm also able to build
> xastir 2.0.0 from source using the usual ./configure, make, sudo make
> install.  The problem I'm having -- which is specific to Arch Linux -- is
> modifying the existing PKGBUILD file available at the above link for xastir
> 2.0.0.  It looks like a straightforward edit: change pkgver from 1.9.8 to
> 2.0.0 and then run makepkg -g to generate a new md5sums code for xastir
> 2.0.0.  When I run makepkg on the edited PKGBUILD, however, it aborts at
> this point in the makefile script:
>
> install-data-hook:
>    cd $(mapdir) && \
>    rm -f CC_OpenStreetMap.png && \
>    $(LN_S) CC_OpenStreetMap_logo.png CC_OpenStreetMap.png
>
> with the following error message:
>
> /bin/sh: line 0: cd: /usr/share/xastir/maps: No such file or directory
>
> So why am I going to all this trouble if I can complie so easily from
> source?  You really want to have all your packages under the control of
> Arch's package manager (pacman) to avoid problems.

> http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

I'm not familiar with creating Arch binary packages, but do they, like
Debian, install Xastir under /usr/share as opposed to
/usr/local/share?  I'm guessing that your utility that creates a new
binary package is trying create it from your newly compiled Xastir 2.0
files, but it is expecting to find them under /usr/share when they are
actually under /usr/local/share.  If that is the case, you can
re-compile Xastir 2.0 under usr/share by modifying a line in Xastir's
configure script.

  ac_default_prefix=/usr/local  - is the normal line - change it to
  ac_default_prefix=/usr

Kind of a wild guess - hope this helps.

Lee - K5DAT



More information about the Xastir mailing list