mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 18:02:57 +02:00
efibootmgr: portability patch to unbreak musl builds.
This commit is contained in:
parent
fb17c2ab17
commit
d5e6381856
2 changed files with 19 additions and 2 deletions
17
srcpkgs/efibootmgr/patches/portability.patch
Normal file
17
srcpkgs/efibootmgr/patches/portability.patch
Normal 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"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'efibootmgr'
|
# Template file for 'efibootmgr'
|
||||||
pkgname=efibootmgr
|
pkgname=efibootmgr
|
||||||
version=0.11.0
|
version=0.11.0
|
||||||
revision=1
|
revision=2
|
||||||
makedepends="libefivar-devel zlib-devel pciutils-devel"
|
makedepends="libefivar-devel zlib-devel pciutils-devel"
|
||||||
short_desc="Tool to modify UEFI Firmware Boot Manager Variables"
|
short_desc="Tool to modify UEFI Firmware Boot Manager Variables"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
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"
|
distfiles="https://github.com/vathpela/efibootmgr/releases/download/efibootmgr-${version}/efibootmgr-${version}.tar.bz2"
|
||||||
checksum=f27ce3d7588512017bceb2d2a29aef110499a662a21550afa1158f9950f976d1
|
checksum=f27ce3d7588512017bceb2d2a29aef110499a662a21550afa1158f9950f976d1
|
||||||
|
|
||||||
only_for_archs="i686 x86_64"
|
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
make EXTRA_CFLAGS="$CFLAGS" ${makejobs}
|
make EXTRA_CFLAGS="$CFLAGS" ${makejobs}
|
||||||
|
|
Loading…
Add table
Reference in a new issue