Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] svn commit: trunk/buildroot/package/ttcp
@ 2009-01-14 22:52 ulf at uclibc.org
  2009-01-15  8:52 ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: ulf at uclibc.org @ 2009-01-14 22:52 UTC (permalink / raw)
  To: buildroot

Author: ulf
Date: 2009-01-14 22:52:31 +0000 (Wed, 14 Jan 2009)
New Revision: 24846

Log:
Update deprecated bmove to memmove in ttcp

Added:
   trunk/buildroot/package/ttcp/ttcp-bcopy.patch

Modified:
   trunk/buildroot/package/ttcp/ttcp.mk


Changeset:
Added: trunk/buildroot/package/ttcp/ttcp-bcopy.patch
===================================================================
--- trunk/buildroot/package/ttcp/ttcp-bcopy.patch	                        (rev 0)
+++ trunk/buildroot/package/ttcp/ttcp-bcopy.patch	2009-01-14 22:52:31 UTC (rev 24846)
@@ -0,0 +1,12 @@
+diff -urN ttcp-0rig/ttcp.c ttcp/ttcp.c
+--- ttcp-0rig/ttcp.c	1993-05-17 00:00:00.000000000 +0200
++++ ttcp/ttcp.c	2009-01-14 23:46:19.000000000 +0100
+@@ -241,7 +241,7 @@
+ 			if ((addr=gethostbyname(host)) == NULL)
+ 				err("bad hostname");
+ 			sinhim.sin_family = addr->h_addrtype;
+-			bcopy(addr->h_addr,(char*)&addr_tmp, addr->h_length);
++			memmove((char*)&addr_tmp, addr->h_addr, addr->h_length);
+ #if defined(cray)
+ 			sinhim.sin_addr = addr_tmp;
+ #else

Modified: trunk/buildroot/package/ttcp/ttcp.mk
===================================================================
--- trunk/buildroot/package/ttcp/ttcp.mk	2009-01-14 22:11:13 UTC (rev 24845)
+++ trunk/buildroot/package/ttcp/ttcp.mk	2009-01-14 22:52:31 UTC (rev 24846)
@@ -15,6 +15,7 @@
 $(TTCP_BUILD_DIR)/.unpacked: $(DL_DIR)/$(TTCP_SOURCE)
 	-mkdir $(TTCP_BUILD_DIR)
 	cp -af $(DL_DIR)/$(TTCP_SOURCE) $(TTCP_BUILD_DIR)
+	toolchain/patch-kernel.sh $(TTCP_DIR) package/ttcp/ ttcp-\*.patch
 	touch $(TTCP_BUILD_DIR)/.unpacked
 
 $(TTCP_BUILD_DIR)/.configured: $(TTCP_BUILD_DIR)/.unpacked

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package/ttcp
@ 2009-01-14 23:53 ulf at uclibc.org
  0 siblings, 0 replies; 5+ messages in thread
From: ulf at uclibc.org @ 2009-01-14 23:53 UTC (permalink / raw)
  To: buildroot

Author: ulf
Date: 2009-01-14 23:53:20 +0000 (Wed, 14 Jan 2009)
New Revision: 24850

Log:
Change TTCP_BUILD_DIR to TTCP_DIR

Modified:
   trunk/buildroot/package/ttcp/ttcp.mk


Changeset:
Modified: trunk/buildroot/package/ttcp/ttcp.mk
===================================================================
--- trunk/buildroot/package/ttcp/ttcp.mk	2009-01-14 23:51:32 UTC (rev 24849)
+++ trunk/buildroot/package/ttcp/ttcp.mk	2009-01-14 23:53:20 UTC (rev 24850)
@@ -7,35 +7,35 @@
 TTCP_VERSION:=
 TTCP_SOURCE_URL=http://ftp.sunet.se/pub/network/monitoring/ttcp
 TTCP_SOURCE=ttcp$(TTCP_VERSION).c
-TTCP_BUILD_DIR=$(BUILD_DIR)/ttcp$(TTCP_VERSION)
+TTCP_DIR=$(BUILD_DIR)/ttcp$(TTCP_VERSION)
 
 $(DL_DIR)/$(TTCP_SOURCE):
 	 $(WGET) -P $(DL_DIR) $(TTCP_SOURCE_URL)/$(TTCP_SOURCE)
 
-$(TTCP_BUILD_DIR)/.unpacked: $(DL_DIR)/$(TTCP_SOURCE)
-	-mkdir $(TTCP_BUILD_DIR)
-	cp -af $(DL_DIR)/$(TTCP_SOURCE) $(TTCP_BUILD_DIR)
+$(TTCP_DIR)/.unpacked: $(DL_DIR)/$(TTCP_SOURCE)
+	-mkdir $(TTCP_DIR)
+	cp -af $(DL_DIR)/$(TTCP_SOURCE) $(TTCP_DIR)
 	toolchain/patch-kernel.sh $(TTCP_DIR) package/ttcp/ ttcp-\*.patch
-	touch $(TTCP_BUILD_DIR)/.unpacked
+	touch $(TTCP_DIR)/.unpacked
 
-$(TTCP_BUILD_DIR)/.configured: $(TTCP_BUILD_DIR)/.unpacked
-	touch $(TTCP_BUILD_DIR)/.configured
+$(TTCP_DIR)/.configured: $(TTCP_DIR)/.unpacked
+	touch $(TTCP_DIR)/.configured
 
-$(TTCP_BUILD_DIR)/ttcp: $(TTCP_BUILD_DIR)/.configured
-	$(TARGET_CC) -O2 -o $(TTCP_BUILD_DIR)/ttcp $(TTCP_BUILD_DIR)/$(TTCP_SOURCE)
+$(TTCP_DIR)/ttcp: $(TTCP_DIR)/.configured
+	$(TARGET_CC) -O2 -o $(TTCP_DIR)/ttcp $(TTCP_DIR)/$(TTCP_SOURCE)
 
-$(TARGET_DIR)/usr/bin/ttcp: $(TTCP_BUILD_DIR)/ttcp
-	cp -af $(TTCP_BUILD_DIR)/ttcp $(TARGET_DIR)/usr/bin/
+$(TARGET_DIR)/usr/bin/ttcp: $(TTCP_DIR)/ttcp
+	cp -af $(TTCP_DIR)/ttcp $(TARGET_DIR)/usr/bin/
 
 ttcp: $(TARGET_DIR)/usr/bin/ttcp
 
 ttcp-source: $(DL_DIR)/$(TTCP_SOURCE)
 
 ttcp-clean:
-	rm -f $(TTCP_BUILD_DIR)/*.o $(TTCP_BUILD_DIR)/ttcp
+	rm -f $(TTCP_DIR)/*.o $(TTCP_DIR)/ttcp
 
 ttcp-dirclean:
-	rm -rf $(TTCP_BUILD_DIR)
+	rm -rf $(TTCP_DIR)
 
 #############################################################
 #

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-15 21:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-14 22:52 [Buildroot] svn commit: trunk/buildroot/package/ttcp ulf at uclibc.org
2009-01-15  8:52 ` Peter Korsgaard
2009-01-15 20:07   ` Ulf Samuelsson
2009-01-15 21:50     ` Peter Korsgaard
  -- strict thread matches above, loose matches on Subject: below --
2009-01-14 23:53 ulf at uclibc.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox