Patch "libtraceevent: Fix lib installation with O=" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    libtraceevent: Fix lib installation with O=

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     libtraceevent-fix-lib-installation-with-o.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 5fc84f8d1aad21935e39ef05f7d96408eb37697f
Author: Sudip Mukherjee <sudipm.mukherjee@xxxxxxxxx>
Date:   Fri Nov 15 11:36:09 2019 +0000

    libtraceevent: Fix lib installation with O=
    
    [ Upstream commit 587db8ebdac2c5eb3a8851e16b26f2e2711ab797 ]
    
    When we use 'O=' with make to build libtraceevent in a separate folder
    it fails to install libtraceevent.a and libtraceevent.so.1.1.0 with the
    error:
    
      INSTALL  /home/sudip/linux/obj-trace/libtraceevent.a
      INSTALL  /home/sudip/linux/obj-trace/libtraceevent.so.1.1.0
    
      cp: cannot stat 'libtraceevent.a': No such file or directory
      Makefile:225: recipe for target 'install_lib' failed
      make: *** [install_lib] Error 1
    
    I used the command:
    
      make O=../../../obj-trace DESTDIR=~/test prefix==/usr  install
    
    It turns out libtraceevent Makefile, even though it builds in a separate
    folder, searches for libtraceevent.a and libtraceevent.so.1.1.0 in its
    source folder.
    
    So, add the 'OUTPUT' prefix to the source path so that 'make' looks for
    the files in the correct place.
    
    Signed-off-by: Sudipm Mukherjee <sudipm.mukherjee@xxxxxxxxx>
    Reviewed-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>
    Cc: linux-trace-devel@xxxxxxxxxxxxxxx
    Link: http://lore.kernel.org/lkml/20191115113610.21493-1-sudipm.mukherjee@xxxxxxxxx
    Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile
index 5315f3787f8d..d008e64042ce 100644
--- a/tools/lib/traceevent/Makefile
+++ b/tools/lib/traceevent/Makefile
@@ -97,6 +97,7 @@ EVENT_PARSE_VERSION = $(EP_VERSION).$(EP_PATCHLEVEL).$(EP_EXTRAVERSION)
 
 LIB_TARGET  = libtraceevent.a libtraceevent.so.$(EVENT_PARSE_VERSION)
 LIB_INSTALL = libtraceevent.a libtraceevent.so*
+LIB_INSTALL := $(addprefix $(OUTPUT),$(LIB_INSTALL))
 
 INCLUDES = -I. -I $(srctree)/tools/include $(CONFIG_INCLUDES)
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux