Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#40196 - [kdeutils-ark] Bug in PKGBUILD should be fixed

Attached to Project: Arch Linux
Opened by Maria (c0debreak) - Saturday, 03 May 2014, 03:13 GMT
Last edited by Andrea Scarpino (BaSh) - Sunday, 04 May 2014, 09:01 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This one is fairly obvious:

build() {
cd "${srcdir}"
mkdir build
cd build
cmake ../ark-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DKDE4_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=/usr
make
}

It doesn't remove the 'build' folder first, I also checked the command line arguments of makepkg, it doesn't support a 'cleanup first, build after' option.

So, please add at lease a 'rm -rf build' command before the mkdir or substitute mkdir to mkdir -p instead.

I can't build the package twice unless I manually delete the src and pkg folder ;-(
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Sunday, 04 May 2014, 09:01 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Saturday, 03 May 2014, 03:28 GMT
PKGBUILDs in the main repos are meant to be built in a clean chroot. It builds fine that way.
Comment by Andrea Scarpino (BaSh) - Saturday, 03 May 2014, 07:16 GMT
You can't build any of our official package twice without removing src first.
Did you ever seen some PKGBUILD that run 'make clean'?

Loading...