FS#39856 - [cabal-install] pkgbuild writes outside build directory
Attached to Project:
Arch Linux
Opened by Garry Roseman (sitquietly) - Monday, 14 April 2014, 23:09 GMT
Last edited by Thomas Dziedzic (tomd123) - Sunday, 04 May 2014, 14:05 GMT
Opened by Garry Roseman (sitquietly) - Monday, 14 April 2014, 23:09 GMT
Last edited by Thomas Dziedzic (tomd123) - Sunday, 04 May 2014, 14:05 GMT
|
Details
Description: in the cabal-install pkgbuild the build
function executes
cd cabal-install-${pkgver} sh bootstrap.sh --user where the bootstrap script writes to $PREFIX with a default of $HOME/.cabal PREFIX should be set to some location inside the build directory. For example, build() { mkdir build cd cabal-install-${pkgver} export PREFIX="${srcdir}/build" sh bootstrap.sh --user } package() { cd cabal-install-${pkgver} install -D -m755 ../build/bin/cabal "${pkgdir}/usr/bin/cabal" install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" # add bash completion install -d "${pkgdir}/usr/share/bash-completion/completions" install -m644 bash-completion/cabal "${pkgdir}/usr/share/bash-completion/completions/" } |
This task depends upon
Comment by
Thomas Dziedzic (tomd123) - Friday,
18 April 2014, 17:14 GMT
this is now fixed in staging and trunk, I will close this when the
fix makes it's way to extra