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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Vesa Kaihlavirta (vegai)
Thomas Dziedzic (tomd123)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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

Closed by  Thomas Dziedzic (tomd123)
Sunday, 04 May 2014, 14:05 GMT
Reason for closing:  Fixed
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

Loading...