Install libfdt_env.h too (rhbz 969955)

This commit is contained in:
Paolo Bonzini 2013-06-04 11:37:45 +02:00
parent 1bc7dd06b6
commit 602419e44c
2 changed files with 39 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: dtc
Version: 1.3.0
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Device Tree Compiler
Group: Development/Tools
License: GPLv2+
@ -8,6 +8,7 @@ URL: http://git.jdl.com/gitweb/?p=dtc.git;a=summary
Source: http://www.jdl.com/software/dtc-v%{version}.tgz
Patch0: dtc-check.patch
Patch1: dtc-flattree.patch
Patch2: libfdt-env-install.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: flex, bison
@ -36,6 +37,7 @@ This package provides development files for libfdt
%setup -q -n dtc-v%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%build
make %{?_smp_mflags}
@ -75,6 +77,9 @@ rm -rf $RPM_BUILD_ROOT
/sbin/ldconfig
%changelog
* Tue Jun 4 2013 Paolo Bonzini <pbonzini@redhat.com> - 1.3.0-6
- Install libfdt_env.h too (rhbz 969955)
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

33
libfdt-env-install.patch Normal file
View File

@ -0,0 +1,33 @@
From 8716901d2215a314504b7df6282aedfcf89da1ea Mon Sep 17 00:00:00 2001
From: Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Date: Wed, 22 Aug 2012 01:48:17 +0200
Subject: [PATCH] dtc/libfdt: install missing header
Previously, only two headers were installed: libfdt.h and fdt.h.
But libfdt.h also #includes libfdt_env.h, which was not installed.
Install this missing header too.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
---
libfdt/Makefile.libfdt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libfdt/Makefile.libfdt b/libfdt/Makefile.libfdt
index 4366627..91126c0 100644
--- a/libfdt/Makefile.libfdt
+++ b/libfdt/Makefile.libfdt
@@ -4,7 +4,7 @@
# be easily embeddable into other systems of Makefiles.
#
LIBFDT_soname = libfdt.$(SHAREDLIB_EXT).1
-LIBFDT_INCLUDES = fdt.h libfdt.h
+LIBFDT_INCLUDES = fdt.h libfdt.h libfdt_env.h
LIBFDT_VERSION = version.lds
LIBFDT_SRCS = fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c fdt_empty_tree.c
LIBFDT_OBJS = $(LIBFDT_SRCS:%.c=%.o)
--
1.7.2.5