[arch-haskell] Using makeahpkg
Alessandro Pezzoni
alessandro_pezzoni at lavabit.com
Sat Oct 12 07:40:21 UTC 2013
On Thu, Jul 26, 2012 at 02:01:53PM +0200, Magnus Therning wrote:
> On Thu, Jul 26, 2012 at 12:58 PM, Alessandro Pezzoni
> <alessandro_pezzoni at lavabit.com> wrote:
> > On Thu, Jul 26, 2012 at 11:02:07AM +0200, Magnus Therning wrote:
> >> On Thu, Jul 26, 2012 at 10:40 AM, Alessandro Pezzoni
> >> <alessandro_pezzoni at lavabit.com> wrote:
> >> > On Thu, Jul 26, 2012 at 09:54:36AM +0200, Magnus Therning wrote:
> >> >> On Wed, Jul 25, 2012 at 2:23 PM, Alessandro Pezzoni
> >> >> <alessandro_pezzoni at lavabit.com> wrote:
> >> >> > Hello,
> >> >> > I'm trying to use the 'makehapkg' script to build Haskell packages, as
> >> >> > suggested by Magnus Therning, but I'm having some issues with it. Though
> >> >> > it works fine for packages without dependencies other than ghc, like
> >> >> > haskell-xdg-basedir (not currently in habs), it fails to install extra
> >> >> > dependencies prior to building, e.g.:
> >> >> >
> >> >> > $./makeahpkg haskell-data-accessor
> >> >> > [...]
> >> >> > ==> Making package: haskell-data-accessor 0.2.2.2-1 (Wed Jul 25 12:14:10
> >> >> > UTC 2012)
> >> >> > ==> Checking runtime dependencies...
> >> >> > ==> Installing missing dependencies...
> >> >> > sudo: effective uid is not 0, is sudo installed setuid root?
> >> >> > ==> ERROR: 'pacman' failed to install missing dependencies.
> >> >> > ==> ERROR: Build failed, check /home/bexie/my-habs/x86_64-chroot/build/build
> >> >> >
> >> >> > As I don't have any kind of experience with chroots I'm quite at a loss
> >> >> > here. Am I doing something wrong?
> >> >>
> >> >> First run `./makeahpkg -h` to familiarise yourself with its options.
> >> >> Then make sure you have `sudo` and `devtools` installed (those are the
> >> >> only required packages I can remember off the top of my head).
> >> >
> >> > I already had 'sudo' and 'devtools' installed and read the output of
> >> > './makehapkg -h', but that really didn't help in this case.
> >>
> >> Then I don't know what the problem is exactly. What does the build
> >> log file say? (/home/bexie/my-habs/x86_64-chroot/build/build)
> >
> > There doesn't seem to be any log in that directory:
> >
> > $ls /home/bexie/my-habs/x86_64-chroot/build/build
> > PKGBUILD haskell-data-accessor.install
>
> Can you jump into the chroot manually and build?
>
> Something like
>
> $ sudo mkarchroot -r /bin/bash /path/to/chroot
> # cd /build
> # makepkg --asroot
With 'makepkg --asroot' I get a "missing dependencies" error and adding
a '-s' flag to that, as I usually would, it compiles the package
correctly.
Alessandro
More information about the arch-haskell
mailing list