efivar ver. bump
This commit is contained in:
@@ -11,8 +11,8 @@ from pisi.actionsapi import get
|
||||
|
||||
def build():
|
||||
shelltools.export("CFLAGS", "-Os -O2 -Wno-stringop-truncation")
|
||||
pisitools.dosed("Make.defaults","-O0","-Os")
|
||||
shelltools.system("sed -i -e 's/-Werror //' gcc.specs || die")
|
||||
# pisitools.dosed("Make.defaults","-O0","-Os")
|
||||
# shelltools.system("sed -i -e 's/-Werror //' gcc.specs || die")
|
||||
pisitools.dosed("src/test/Makefile","-rpath=$(TOPDIR)/src/","-rpath=$(libdir)|g")
|
||||
autotools.make("libdir=/usr/lib bindir=/usr/bin includedir=/usr/include/ V=1 -j1")
|
||||
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Wei Fu <wefu@redhat.com>
|
||||
Date: Sat, 2 Apr 2022 22:53:36 +0800
|
||||
Subject: [PATCH] Fix the -march issue for riscv64
|
||||
|
||||
There is an issue on riscv64 system when compiling it natively:
|
||||
gcc: error: '-march=native': ISA string must begin with rv32 or rv64
|
||||
|
||||
This patch set HOST_MARCH= like ia64 to resolve the issue.
|
||||
|
||||
Signed-off-by: Wei Fu <wefu@redhat.com>
|
||||
(cherry picked from commit aab4e9b10ac9e98588a1b19771cf6f4c8c0a3096)
|
||||
---
|
||||
src/include/defaults.mk | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/include/defaults.mk b/src/include/defaults.mk
|
||||
index 632b155..b8cc590 100644
|
||||
--- a/src/include/defaults.mk
|
||||
+++ b/src/include/defaults.mk
|
||||
@@ -73,10 +73,14 @@ override SOFLAGS = $(_SOFLAGS) \
|
||||
|
||||
HOST_ARCH=$(shell uname -m)
|
||||
ifneq ($(HOST_ARCH),ia64)
|
||||
+ifneq ($(HOST_ARCH),riscv64)
|
||||
HOST_MARCH=-march=native
|
||||
else
|
||||
HOST_MARCH=
|
||||
endif
|
||||
+else
|
||||
+ HOST_MARCH=
|
||||
+endif
|
||||
HOST_CPPFLAGS ?= $(CPPFLAGS)
|
||||
override _HOST_CPPFLAGS := $(HOST_CPPFLAGS)
|
||||
override HOST_CPPFLAGS = $(_HOST_CPPFLAGS) \
|
||||
@@ -0,0 +1,56 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Robbie Harwood <rharwood@redhat.com>
|
||||
Date: Thu, 28 Jul 2022 16:11:24 -0400
|
||||
Subject: [PATCH] Fix glibc 2.36 build (mount.h conflicts)
|
||||
|
||||
glibc has decided that sys/mount.h and linux/mount.h are no longer
|
||||
usable at the same time. This broke the build, since linux/fs.h itself
|
||||
includes linux/mount.h. For now, fix the build by only including
|
||||
sys/mount.h where we need it.
|
||||
|
||||
See-also: https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E
|
||||
Resolves: #227
|
||||
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
|
||||
(cherry picked from commit bc65d63ebf8fe6ac8a099ff15ca200986dba1565)
|
||||
---
|
||||
src/gpt.c | 1 +
|
||||
src/linux.c | 1 +
|
||||
src/util.h | 1 -
|
||||
3 files changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/gpt.c b/src/gpt.c
|
||||
index 1eda049..21413c3 100644
|
||||
--- a/src/gpt.c
|
||||
+++ b/src/gpt.c
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
+#include <sys/mount.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/utsname.h>
|
||||
diff --git a/src/linux.c b/src/linux.c
|
||||
index 47e45ae..1780816 100644
|
||||
--- a/src/linux.c
|
||||
+++ b/src/linux.c
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/ioctl.h>
|
||||
+#include <sys/mount.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/types.h>
|
||||
diff --git a/src/util.h b/src/util.h
|
||||
index 3300666..1e67e44 100644
|
||||
--- a/src/util.h
|
||||
+++ b/src/util.h
|
||||
@@ -23,7 +23,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/ioctl.h>
|
||||
-#include <sys/mount.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <tgmath.h>
|
||||
@@ -12,21 +12,13 @@
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Tools and library to manipulate EFI variables</Summary>
|
||||
<Description>Tools and library to manipulate EFI variables.</Description>
|
||||
<Archive sha1sum="1ef24e0a06e1a42d7a93ba7a76b2970659c7c0c0" type="tarbz2">https://github.com/rhinstaller/efivar/releases/download/37/efivar-37.tar.bz2</Archive>
|
||||
<Archive sha1sum="64dc75cf71b7a989b8b4ac5cd46d1010430e89dc" type="tarbz2">https://github.com/rhinstaller/efivar/releases/download/38/efivar-38.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>popt-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">fedora/0001-util.h-add-unlikely-and-likely-macros.patch</Patch>
|
||||
<Patch level="1">fedora/0002-dp.h-make-format_guid-handle-misaligned-guid-pointer.patch</Patch>
|
||||
<Patch level="1">fedora/0003-linux-pci-root-remove-an-unused-assignment.patch</Patch>
|
||||
<Patch level="1">fedora/0004-Fix-all-the-places-Werror-address-of-packed-member-c.patch</Patch>
|
||||
<Patch level="1">fedora/0005-Get-rid-of-the-arrows-in-our-debug-messages.patch</Patch>
|
||||
<Patch level="1">fedora/0006-Define-strdupa-if-it-is-not-defined.patch</Patch>
|
||||
<Patch level="1">fedora/0007-Android-inital-porting-of-libefivar.patch</Patch>
|
||||
<Patch level="1">fedora/0008-Remove-an-unused-function.patch</Patch>
|
||||
<Patch level="1">fedora/0009-Fix-another-error-of-Werror-address-of-packed-member.patch</Patch>
|
||||
<Patch level="1">fedora/0010-Update-generated-ABI.patch</Patch>
|
||||
<Patch level="1">fedora/0001-Fix-the-march-issue-for-riscv64.patch</Patch>
|
||||
<Patch level="1">fedora/0002-Fix-glibc-2.36-build-mount.h-conflicts.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
@@ -54,6 +46,13 @@
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="11">
|
||||
<Date>2023-03-12</Date>
|
||||
<Version>38</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="10">
|
||||
<Date>2021-07-16</Date>
|
||||
<Version>37</Version>
|
||||
|
||||
Reference in New Issue
Block a user