!20 修改mtd-utils打包策略和添加上游社区补丁
From: @wang-qing-2030 Reviewed-by: @beilingxie Signed-off-by: @beilingxie
This commit is contained in:
commit
577707bb72
@ -0,0 +1,31 @@
|
||||
From 6fb10bd18488ed84776675bc1b2982800a51d839 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sat, 6 Aug 2022 20:14:38 -0700
|
||||
Subject: [mtd-utils][PATCH] tests: Remove unused linux/fs.h header from includes
|
||||
|
||||
This header is not needed, moreover it includes linux/mount.h which is
|
||||
now in conflict[1] with glibc provided sys/mount.h from glibc 2.36 onwards
|
||||
|
||||
[1] https://sourceware.org/glibc/wiki/Release/2.36
|
||||
|
||||
Upstream-Status: Submitted [https://lists.infradead.org/pipermail/linux-mtd/2022-August/094667.html]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
tests/fs-tests/lib/tests.c | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/tests/fs-tests/lib/tests.c b/tests/fs-tests/lib/tests.c
|
||||
index d1a2e0c..3db0426 100644
|
||||
--- a/tests/fs-tests/lib/tests.c
|
||||
+++ b/tests/fs-tests/lib/tests.c
|
||||
@@ -35,7 +35,6 @@
|
||||
#include <sys/vfs.h>
|
||||
#include <sys/mount.h>
|
||||
#include <sys/statvfs.h>
|
||||
-#include <linux/fs.h>
|
||||
#include <linux/jffs2.h>
|
||||
|
||||
#include "tests.h"
|
||||
--
|
||||
2.37.1
|
||||
|
||||
@ -1,10 +1,11 @@
|
||||
Name: mtd-utils
|
||||
Version: 2.1.4
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: GPLv2+
|
||||
Summary: Utilities for dealing with MTD (flash) devices
|
||||
URL: http://www.linux-mtd.infradead.org/
|
||||
Source0: ftp://ftp.infradead.org/pub/mtd-utils/%{name}-%{version}.tar.bz2
|
||||
Patch0001: 0001-tests-Remove-unused-linux-fs.h-header-from-includes.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
@ -39,6 +40,12 @@ Summary: Utilities for dealing with misc
|
||||
The mtd-utils-misc package contains utilities for manipulating misc on
|
||||
MTD (flash) devices.
|
||||
|
||||
%package test
|
||||
Summary: Test utilities for mtd-utils
|
||||
|
||||
%description test
|
||||
Various test programs related to mtd-utils
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
@ -59,12 +66,14 @@ MTD (flash) devices.
|
||||
%{_sbindir}/mtd_debug
|
||||
%{_sbindir}/mtdinfo
|
||||
%{_sbindir}/mtdpart
|
||||
%{_sbindir}/fectest
|
||||
%{_mandir}/*/*
|
||||
|
||||
|
||||
%files ubifs
|
||||
%{_sbindir}/ubi*
|
||||
%{_sbindir}/mkfs.ubifs
|
||||
%{_sbindir}/mount.ubifs
|
||||
|
||||
%files jffs2
|
||||
%{_sbindir}/jffs2*
|
||||
@ -84,7 +93,13 @@ MTD (flash) devices.
|
||||
%{_sbindir}/serve_image
|
||||
%{_sbindir}/recv_image
|
||||
|
||||
%files test
|
||||
%{_libexecdir}/mtd-utils/*
|
||||
|
||||
%changelog
|
||||
* Wed Aug 10 2022 wangqing <wangqing151@huawei.com> - 2.1.4-2
|
||||
- Modified the strategy of building rpms in .spec, and added a patch from openembedded.
|
||||
|
||||
* Thu Aug 4 2022 wangqing <wangqing151@huawei.com> - 2.1.4-1
|
||||
- Update tar from 2.1.2 to 2.1.4.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user