mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
b1eb964380
This should be a noop change to the existing dtc145 .pkg files, but in case you want to recently compile it from scratch you will get this error: /usr/bin/ld: dtc-parser.tab.o:PKGBUILDs/alarm/dtc145/src/dtc-1.4.5/dtc-parser.tab.c:1086: multiple definition of `yylloc'; dtc-lexer.lex.o:PKGBUILDs/alarm/dtc145/src/dtc-1.4.5/dtc-lexer.l:41: first defined here Seems that the usual fix for this (including in the linux kernel) is to just remove the extra "YYLTYPE yylloc;" line. Let's do that with a simple sed in our PKGBUILD
42 lines
920 B
Bash
42 lines
920 B
Bash
# $Id$
|
|
# Maintainer: Anatol Pomozov
|
|
# Contributor: Frederic Bezies <fredbezies at gmail dot com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - old dtc for old U-Boot
|
|
|
|
pkgname=dtc145
|
|
pkgver=1.4.5
|
|
pkgrel=3
|
|
pkgdesc='Device Tree Compiler 1.4.5'
|
|
url='http://www.devicetree.org/Device_Tree_Compiler'
|
|
arch=(x86_64)
|
|
license=(GPL2)
|
|
makedepends=(swig python2)
|
|
provides=(dtc)
|
|
conflicts=(dtc)
|
|
source=(https://www.kernel.org/pub/software/utils/dtc/dtc-$pkgver.tar.xz)
|
|
sha256sums=('042c7164806af34069d13ede59d85b8156d09f179f721c516dc37712d3a0f621')
|
|
|
|
prepare() {
|
|
cd dtc-$pkgver
|
|
sed -i 's/-Werror//' Makefile
|
|
sed -i 's/python\b/python2/' tests/run_tests.sh
|
|
sed -i 's/YYLTYPE yylloc;//g' dtc-lexer.l # fix multiple definitions error
|
|
}
|
|
|
|
build() {
|
|
cd dtc-$pkgver
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd dtc-$pkgver
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd dtc-$pkgver
|
|
make DESTDIR="$pkgdir" SETUP_PREFIX="$pkgdir/usr" PREFIX=/usr install
|
|
}
|
|
|