efibootmgr: portability patch to unbreak musl builds.

This commit is contained in:
Juan RP 2014-12-28 10:45:53 +01:00
parent fb17c2ab17
commit d5e6381856
2 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,17 @@
Use pci.h from linux... sys/pci.h is glibc specific.
--- src/lib/scsi_ioctls.c.orig 2014-12-28 10:43:35.513305649 +0100
+++ src/lib/scsi_ioctls.c 2014-12-28 10:43:45.024306074 +0100
@@ -19,11 +19,11 @@
*/
#include <stdio.h>
-#include <sys/pci.h>
#include <stdint.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
+#include <linux/pci.h>
#include <linux/nvme.h>
#include "scsi_ioctls.h"

View File

@ -1,7 +1,7 @@
# Template file for 'efibootmgr'
pkgname=efibootmgr
version=0.11.0
revision=1
revision=2
makedepends="libefivar-devel zlib-devel pciutils-devel"
short_desc="Tool to modify UEFI Firmware Boot Manager Variables"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -10,7 +10,7 @@ homepage="https://github.com/vathpela/efibootmgr"
distfiles="https://github.com/vathpela/efibootmgr/releases/download/efibootmgr-${version}/efibootmgr-${version}.tar.bz2"
checksum=f27ce3d7588512017bceb2d2a29aef110499a662a21550afa1158f9950f976d1
only_for_archs="i686 x86_64"
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
do_build() {
make EXTRA_CFLAGS="$CFLAGS" ${makejobs}