5593300dc5
- update to upstream master (f00dd8386a57d241d0f7c) OBS-URL: https://build.opensuse.org/request/show/182207 OBS-URL: https://build.opensuse.org/package/show/filesystems/btrfsprogs?expand=0&rev=129
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From 5ca1ded494d7d58b71877bf1f774ac313fabe35f Mon Sep 17 00:00:00 2001
|
|
From: Eric Sandeen <sandeen@redhat.com>
|
|
Date: Thu, 2 May 2013 11:20:22 -0500
|
|
Subject: [PATCH 10/48] Btrfs-progs: make btrfsck a hardlink at install time
|
|
|
|
btrfsck gets hardlinked to btrfs during the build, but the
|
|
install phase simply copies them both to the destination without
|
|
preserving the link.
|
|
|
|
Just force-link btrfsck in the destination again during install
|
|
so that the installed btrfsck is a link as well.
|
|
|
|
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
|
|
---
|
|
Makefile | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index da7438e..0f0b1ac 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -193,6 +193,8 @@ clean :
|
|
install: $(libs) $(progs) install-man
|
|
$(INSTALL) -m755 -d $(DESTDIR)$(bindir)
|
|
$(INSTALL) $(progs) $(DESTDIR)$(bindir)
|
|
+ # btrfsck is a link to btrfs in the src tree, make it so for installed file as well
|
|
+ $(LN) -f $(DESTDIR)$(bindir)/btrfs $(DESTDIR)$(bindir)/btrfsck
|
|
$(INSTALL) -m755 -d $(DESTDIR)$(libdir)
|
|
$(INSTALL) $(libs) $(DESTDIR)$(libdir)
|
|
cp -a $(lib_links) $(DESTDIR)$(libdir)
|
|
--
|
|
1.8.2
|
|
|