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!
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!
FS#37542 - [bmake] Suggestion for new PKGBUILD: newer version, simpler build, no need for bmake-mk-files
Attached to Project:
Community Packages
Opened by Alain Kalker (ackalker) - Tuesday, 29 October 2013, 16:03 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 30 October 2013, 11:05 GMT
Opened by Alain Kalker (ackalker) - Tuesday, 29 October 2013, 16:03 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 30 October 2013, 11:05 GMT
|
DetailsDescription:
First off, thanks for moving this package to [community] ! I've been using a PKGBUILD for a newer version of this package, which I would like to share. It simplifies the build process by following more closely the instructions in bmake/README and the comments in bmake/boot-strap . Also, as mentioned on bmake's homepage, since version 20121212 it is no longer necessary to use a separate tarball containing mk files (they are included in the source tarball), so there's no need to depend on bmake-mk-files anymore. Finally, I've added a fix for build failures building certain software (for example the Elf Tool Chain) using bmake, which are caused by missing bsd.*.mk symlinks. See the following bug report: https://bugs.launchpad.net/ubuntu/+source/pmake/+bug/1078764 $ diff PKGBUILD{.original,} --- ./PKGBUILD.original 2013-08-10 15:14:04.000000000 +0200 +++ ./PKGBUILD 2013-10-09 09:49:26.351010295 +0200 @@ -3,27 +3,38 @@ # Contributor: Imanol Celaya <ilcra1989@gmail.com> pkgname=bmake -pkgver=20130730 +pkgver=20130904 pkgrel=1 pkgdesc="Portable version of the NetBSD 'make' build tool" arch=('i686' 'x86_64') url="http://www.crufty.net/help/sjg/bmake.html" license=('BSD') -depends=('bmake-mk-files') source=("http://www.crufty.net/ftp/pub/sjg/bmake-$pkgver.tar.gz") -sha256sums=('57f4fb71472ab8f1cb53e83fd043b3556c9624fa601f930415ba64489c9b0828') +sha256sums=('b13e729507b9675603eb8d1391a6a9cc9d0ff5751cebd2a1e4a6987ecbbbb69b') +prepare() { + cd "$srcdir/$pkgname" + + # Add missing bsd.*.mk symlinks + _links_orig="dep doc init lib links man nls obj own prog subdir" + _links_new="dep doc inc init lib links man nls obj own prog subdir" + sed -i -e "s/$_links_orig/$_links_new/" mk/install-mk +} + build() { rm -rf bmake-build mkdir bmake-build cd bmake-build - ../bmake/configure --prefix=/usr --with-default-sys-path=/usr/share/mk - - sh make-bootstrap.sh + sh ../bmake/boot-strap --prefix=/usr } package() { - install -Dm755 bmake-build/bmake "$pkgdir"/usr/bin/bmake - install -Dm644 bmake/bmake.1 "$pkgdir"/usr/share/man/man1/bmake.1 + cd bmake-build + + # Fix directory permissions on install + install -dm 755 "$pkgdir/usr/bin" + install -dm 755 "$pkgdir/usr/share/man/cat1" + + sh ../bmake/boot-strap --prefix=/usr --install-destdir="$pkgdir" op=install } * package version(s) bmake 20130904-1 * config and/or log files etc. Steps to reproduce: |
This task depends upon
PKGBUILD
http://sourceforge.net/apps/trac/elftoolchain/browser/trunk/mk/elftoolchain.inc.mk