From patchwork Fri Aug 9 02:27:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1144281 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="DUCZvpRE"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 464TgK4lqvz9sND for ; Fri, 9 Aug 2019 12:28:13 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E667E2034D; Fri, 9 Aug 2019 02:28:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t+tTo8zMpPR0; Fri, 9 Aug 2019 02:28:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id A95F8203E4; Fri, 9 Aug 2019 02:28:08 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 249001BF365 for ; Fri, 9 Aug 2019 02:28:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 22043880E0 for ; Fri, 9 Aug 2019 02:28:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZEpU6EWddMNA for ; Fri, 9 Aug 2019 02:28:06 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk1-f196.google.com (mail-qk1-f196.google.com [209.85.222.196]) by hemlock.osuosl.org (Postfix) with ESMTPS id 02771880CC for ; Fri, 9 Aug 2019 02:28:06 +0000 (UTC) Received: by mail-qk1-f196.google.com with SMTP id u190so6908002qkh.5 for ; Thu, 08 Aug 2019 19:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=2SK34GCEihOBXnVkpsBiK1wqmdeN6xyRBoDG6iz/Vj4=; b=DUCZvpRELNDF8mAI5wjKblerQdHzKw2FF+nPjZ/iv/+pZ2lX/D0mCNUpfaiDYO7B2X rqcThudZCcP8JXtaJ3JHqlyFpsqSurZBJL+Iv55OYUNnZ99gX2XqhQdel5qGcCj1t3vq M2IM8czVO1098LVGbuaecn5O8gXeKW1lgN5x5B0nimZlGfCY3+zfaVu+/bBSXLQ7v0Cp ihhc9CJwqUfMAjkAdAaZilQIApy3QINYVk/oO8GCfkLq3mGt8nqfCMTsolZd99xaO7lv A4H016igJz+EhLCsKJRwHdvRvWfSDwN7qTMjuzwxTg0POpwBWLUKD/ZIKdn7WpiQrJqw /fRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=2SK34GCEihOBXnVkpsBiK1wqmdeN6xyRBoDG6iz/Vj4=; b=gwzAJUQ0tdj62PQnvbpoGdybDolqEWUEZexdK7tTnIVB/YN3+soiWJIzU/dd3AU/9j f5nLTqxgIn1LgoJsccj0zgsodyIuVRX2wdTNJpjJNDb2NBTnK9w/Fxlp6mwgP27ihgOk ckdNiceZamyR9RjthJ+ycNZ/sdJgU3r1rqp3DA+eStiNNydzFzjb1yUU5GxQwKwt1etx D0rYKGTNHlmYnlXp2PTru0H5EqnPOdNEOcu7RARmQuouVnnS5VlaltJQ+qAT62GCAAAV CDQrmxj9nGUAMgC4Oo0vwInKF+cXPiNzowBxHsp9i6WOKIAT5tn0GUOplF02BOAzFGmM nHIw== X-Gm-Message-State: APjAAAWM5o2fPcQOKKwzJ87fPQBCIDIBfdWW1cbAuVOk0TJfepUTLOqg mWrTCyzHlZ1Xj+GnlpiZhBJIxPRh X-Google-Smtp-Source: APXvYqxMOTadmm/pW2mwPQ4plsu5fLhcmKWeir4ZQUka5KX+yYBDXTgOFJllzbu1/6n06ZKozaa0Ig== X-Received: by 2002:a37:aa10:: with SMTP id t16mr16399863qke.332.1565317684951; Thu, 08 Aug 2019 19:28:04 -0700 (PDT) Received: from casantos.remote.csb ([177.97.70.140]) by smtp.gmail.com with ESMTPSA id b1sm16209586qkk.8.2019.08.08.19.28.03 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 08 Aug 2019 19:28:04 -0700 (PDT) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Thu, 8 Aug 2019 23:27:59 -0300 Message-Id: <20190809022759.8601-1-unixmania@gmail.com> X-Mailer: git-send-email 2.18.1 Subject: [Buildroot] [PATCH] package/dhcp: install shared libraries X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlos Santos MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Carlos Santos We don't use "make install" for target installation because we build all utilities (server, relay, client) but install only the selected ones. The utilities, however, require the shared libraries to work, so use the "install-exec" make target to install them. This also installs static libraries but they are removed later by target-finalize. With this change the omshell utility is installed if server is selected. We keep it, since it is small and may be useful at run-time. Fixes: https://bugs.busybox.net/show_bug.cgi?id=12086 Signed-off-by: Carlos Santos --- package/dhcp/dhcp.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package/dhcp/dhcp.mk b/package/dhcp/dhcp.mk index 86f5c69a77..5f56c86414 100644 --- a/package/dhcp/dhcp.mk +++ b/package/dhcp/dhcp.mk @@ -40,7 +40,15 @@ ifeq ($(BR2_PACKAGE_DHCP_SERVER_DELAYED_ACK),y) DHCP_CONF_OPTS += --enable-delayed-ack endif +define DHCP_INSTALL_LIBS + $(MAKE) -C $(@D)/common install-exec DESTDIR=$(TARGET_DIR) + $(MAKE) -C $(@D)/omapip install-exec DESTDIR=$(TARGET_DIR) +endef + ifeq ($(BR2_PACKAGE_DHCP_SERVER),y) +define DHCP_INSTALL_CTL_LIBS + $(MAKE) -C $(@D)/dhcpctl install-exec DESTDIR=$(TARGET_DIR) +endef define DHCP_INSTALL_SERVER mkdir -p $(TARGET_DIR)/var/lib (cd $(TARGET_DIR)/var/lib; ln -snf /tmp dhcp) @@ -99,6 +107,8 @@ endef endif define DHCP_INSTALL_TARGET_CMDS + $(DHCP_INSTALL_LIBS) + $(DHCP_INSTALL_CTL_LIBS) $(DHCP_INSTALL_RELAY) $(DHCP_INSTALL_SERVER) $(DHCP_INSTALL_CLIENT)