Skip to content

Commit f9fb9b9

Browse files
BKPepegraysky2
authored andcommitted
gperftools: remove gperftools-headers package
The gperftools-headers package installed headers to the target device, but headers are only needed during the build process (via Build/InstallDev). - Remove gperftools-headers package - Rename gperftools-runtime to gperftools - Add ABI_VERSION for tracking ABI changes While looking for e.g. on repology, there is only gperftools package [1] and not gperftools-runtime and gperftools-headers. [1] https://repology.org/project/gperftools/versions Signed-off-by: Josef Schlehofer <[email protected]>
1 parent 8660e5b commit f9fb9b9

File tree

1 file changed

+9
-26
lines changed

1 file changed

+9
-26
lines changed

libs/gperftools/Makefile

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
22

33
PKG_NAME:=gperftools
44
PKG_VERSION:=2.17.2
5-
PKG_RELEASE:=2
5+
PKG_RELEASE:=3
66

77
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
88
PKG_SOURCE_URL:=https://codeload.github.com/gperftools/gperftools/tar.gz/$(PKG_NAME)-$(PKG_VERSION)?
@@ -21,30 +21,18 @@ PKG_FIXUP:=autoreconf
2121

2222
include $(INCLUDE_DIR)/package.mk
2323

24-
define Package/gperftools-headers
25-
CATEGORY:=Libraries
26-
SECTION:=libs
27-
TITLE:=Gperftools Headers
28-
URL:=https://github.com/gperftools/gperftools
29-
DEPENDS:= @!(powerpc)
30-
endef
31-
32-
define Package/gperftools-runtime
24+
define Package/gperftools
3325
SECTION:=libs
3426
CATEGORY:=Libraries
3527
TITLE:=Gperftools Runtime
3628
URL:=https://github.com/gperftools/gperftools
37-
DEPENDS:= +libunwind +libstdcpp @!(powerpc)
38-
endef
39-
40-
define Package/gperftools-headers/description
41-
Gperftools is a collection of a high-performance multi-threaded malloc() implementation, plus some pretty nifty performance analysis tools.
42-
This package contains the headers.
29+
DEPENDS:=+PACKAGE_libunwind:libunwind +libstdcpp @!(powerpc)
30+
ABI_VERSION:=4
4331
endef
4432

45-
define Package/gperftools-runtime/description
33+
define Package/gperftools/description
4634
Gperftools is a collection of a high-performance multi-threaded malloc() implementation, plus some pretty nifty performance analysis tools.
47-
This package contains the shared objects and bins.
35+
This package contains the shared libraries.
4836
endef
4937

5038
CONFIGURE_ARGS += \
@@ -59,14 +47,9 @@ define Build/InstallDev
5947
$(CP) $(PKG_INSTALL_DIR)/usr/include/gperftools/*.h $(1)/usr/include/gperftools/
6048
endef
6149

62-
define Package/gperftools-headers/install
63-
$(INSTALL_DIR) $(1)/usr/include/gperftools
64-
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/gperftools/tcmalloc.h $(1)/usr/include/gperftools
65-
endef
66-
67-
define Package/gperftools-runtime/install
50+
define Package/gperftools/install
6851
$(INSTALL_DIR) $(1)/usr/lib
6952
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libtcmalloc.so* $(1)/usr/lib/
7053
endef
71-
$(eval $(call BuildPackage,gperftools-headers))
72-
$(eval $(call BuildPackage,gperftools-runtime))
54+
55+
$(eval $(call BuildPackage,gperftools))

0 commit comments

Comments
 (0)