package/dhcp: copy dhcpctl and omapi libraries and headers into staging
PATCH v2 1/1 package/dhcp: copy dhcpctl and omapi libraries and headers into staging
These libraries/headers are used to control dhclient/dhcpd via omapi
(https://www.isc.org/wp-content/uploads/2017/08/dhcp41omapi.html) from another applications and thus a potentially useful in situations where you need to interact with dhclient/dhcpd and need something more reliable than parsing their output.
--- package/dhcp/dhcp.mk | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
package/dhcp/dhcp.mk +21 -0
@@ -118,4 +118,25 @@ define DHCP_INSTALL_TARGET_CMDS $(DHCP_INSTALL_CLIENT) endef +define DHCP_INSTALL_STAGING_CMDS + $(INSTALL) -D -m 644 $(@D)/dhcpctl/dhcpctl.h \ + $(HOST_DIR)/usr/include/dhcpctl/dhcpctl.h + $(INSTALL) -D -m 644 $(@D)/includes/isc-dhcp/dst.h \ + $(HOST_DIR)/usr/include/isc-dhcp/dst.h + $(INSTALL) -D -m 644 -t $(HOST_DIR)/usr/include/omapip/ \ + $(@D)/includes/omapip/alloc.h \ + $(@D)/includes/omapip/buffer.h \ + $(@D)/includes/omapip/convert.h \ + $(@D)/includes/omapip/hash.h \ + $(@D)/includes/omapip/isclib.h \ + $(@D)/includes/omapip/omapip.h \ + $(@D)/includes/omapip/omapip_p.h \ + $(@D)/includes/omapip/result.h \ + $(@D)/includes/omapip/trace.h + $(INSTALL) -D -m 644 $(@D)/dhcpctl/libdhcpctl.a \ + $(HOST_DIR)/usr/lib/libdhcpctl.a + $(INSTALL) -D -m 644 $(@D)/omapip/libomapi.a \ + $(HOST_DIR)/usr/lib/libomapi.a +endef + $(eval $(autotools-package))
Signature · 1 line
2.18.0
PATCH v2 1/1 package/dhcp: copy dhcpctl and omapi libraries and headers into staging
Quoted 16 lines · Daniel Palmer
These libraries/headers are used to control dhclient/dhcpd via omapi
(https://www.isc.org/wp-content/uploads/2017/08/dhcp41omapi.html) from another applications and thus a potentially useful in situations where you need to interact with dhclient/dhcpd and need something more reliable than parsing their output.Signed-off-by Daniel Palmer <[email protected]>--- package/dhcp/dhcp.mk | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)package/dhcp/dhcp.mk +0
-0
package/dhcp/dhcp.mk define DHCP_INSTALL_TARGET_CMDS · line 123
Quoted 6 lines
package/dhcp/dhcp.mk +3
-0@@ -118,4 +118,25 @@ define DHCP_INSTALL_TARGET_CMDS $(DHCP_INSTALL_CLIENT) endef +define DHCP_INSTALL_STAGING_CMDS + $(INSTALL) -D -m 644 $(@D)/dhcpctl/dhcpctl.h \ + $(HOST_DIR)/usr/include/dhcpctl/dhcpctl.h
I'm afraid you're doing something terribly wrong here, installing headers for
the target in HOST_DIR...
Quoted 4 lines
package/dhcp/dhcp.mk +4
-0+ $(INSTALL) -D -m 644 $(@D)/includes/isc-dhcp/dst.h \ + $(HOST_DIR)/usr/include/isc-dhcp/dst.h + $(INSTALL) -D -m 644 -t $(HOST_DIR)/usr/include/omapip/ \ + $(@D)/includes/omapip/alloc.h \
package/dhcp/dhcp.mk define DHCP_INSTALL_TARGET_CMDS · line 137
Quoted 10 lines
package/dhcp/dhcp.mk +10
-0+ $(@D)/includes/omapip/buffer.h \ + $(@D)/includes/omapip/convert.h \ + $(@D)/includes/omapip/hash.h \ + $(@D)/includes/omapip/isclib.h \ + $(@D)/includes/omapip/omapip.h \ + $(@D)/includes/omapip/omapip_p.h \ + $(@D)/includes/omapip/result.h \ + $(@D)/includes/omapip/trace.h + $(INSTALL) -D -m 644 $(@D)/dhcpctl/libdhcpctl.a \ + $(HOST_DIR)/usr/lib/libdhcpctl.a
And this is particularly wrong, it will not even link correctly...
What exactly are you trying to do here?
Regards,
Arnout
Quoted 6 lines
package/dhcp/dhcp.mk +4
-0+ $(INSTALL) -D -m 644 $(@D)/omapip/libomapi.a \ + $(HOST_DIR)/usr/lib/libomapi.a +endef + $(eval $(autotools-package))
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
PATCH v2 1/1 package/dhcp: copy dhcpctl and omapi libraries and headers into staging
Please ignore this patch. It was a brain fart from mixing up the host and staging directories.
Thanks Arnout for pointing out my mistake.
Cheers,
Daniel