packaging: full: Modify post script to use relative path 11/209711/1
authorWook Song <wook16.song@samsung.com>
Wed, 10 Jul 2019 06:22:20 +0000 (15:22 +0900)
committerWook Song <wook16.song@samsung.com>
Wed, 10 Jul 2019 06:22:20 +0000 (15:22 +0900)
Creating symbolic links using absolute path in the post script usually
fails during the 'mic' procedure so that this patch fixes such issue by
changing the absolute path in the script to the relative path.

Change-Id: I7078059a22b93876c027aea05a45dc0f266dbedb
Signed-off-by: Wook Song <wook16.song@samsung.com>
packaging/toybox.spec

index 67ebf39..5d581b4 100644 (file)
@@ -113,7 +113,7 @@ popd
 popd
 
 %post full
-%{_bindir}/toybox-full ln -s %{_bindir}/toybox-full %{_bindir}/toybox
+pushd %{_bindir} && ./toybox-full ln -s ./toybox-full ./toybox && popd
 
 %files
 %manifest toybox.manifest