[pacman-dev] [Fwd: [arch-general] PKGBUILD and DOS line endings]

Allan McRae allan at archlinux.org
Sat Dec 6 09:37:22 EST 2008

Should we be handling this issue?


-------- Original Message --------
Subject: 	[arch-general] PKGBUILD and DOS line endings
Date: 	Sat, 6 Dec 2008 15:32:26 +0100
From: 	Alessandro Doro <ordo.ad at gmail.com>
Reply-To: 	General Discusson about Arch Linux <arch-general at archlinux.org>
To: 	arch-general at archlinux.org

I found in AUR a PKGBUILD with DOS line endings.
See what happens:

$ makepkg
: command not found

==> ERROR: An unknown error has occured. Exiting...

makepkg simply sources "$BUILDSCRIPT" and bash treats '\r' literally.

The PKGBUILD maintainer is surely to be blamed and I don't think that
`makepkg' should try to catch this error (sorry for some innocent user).

Just wanted to expose this "feature".


More information about the pacman-dev mailing list