Skip to contentSkip to conversation

bump libuecc and fastd

PATCH New Alexander Dahl 2 participants 4 messages Apr 2, 2016

lore
Share & tools
lore
#0 lore raw

v2 cover bump libuecc and fastd

Hei hei,

I repost this mini series because I noticed upstream has actually release tarballs with checksums. The maintainer said those will stay where they are. A little annoying is the base URLs are not stable because those are attachments in a wiki, but one can take care of in the foo.mk files then.

Tested v2 with fli4l on x86 and x86_64.

More hints in the patches itself.

Greets
Alex

Alexander Dahl (2):
libuecc: bump to v7
fastd: bump to v18

 ...NTERPROCEDURAL_OPTIMIZATION-target-proper.patch |  33 +--
 .../0002-Don-t-depend-on-net-if_ether.h.patch      | 261 ---------------------
 package/fastd/fastd.hash                           |   4 +
 package/fastd/fastd.mk                             |   5 +-
 package/libuecc/libuecc.hash                       |   4 +
 package/libuecc/libuecc.mk                         |   5 +-
 6 files changed, 23 insertions(+), 289 deletions(-)
 delete mode 100644 package/fastd/0002-Don-t-depend-on-net-if_ether.h.patch
 create mode 100644 package/fastd/fastd.hash
 create mode 100644 package/libuecc/libuecc.hash
Signature · 1 line
2.1.4
#1 lore raw

PATCH v2 1/2 libuecc: bump to v7

From v6 to v7 just few changes were made for performance improvement and compatibility.

Switched from git download to source tarballs and hashes.

---
v1 -> v2:
found the source for the release tarballs, maintainer confirmed

---
 package/libuecc/libuecc.hash | 4 ++++
 package/libuecc/libuecc.mk   | 5 +++--
 2 files changed, 7 insertions(+), 2 deletions(-)
 create mode 100644 package/libuecc/libuecc.hash
package/libuecc/libuecc.hash new file +4 -0
new file mode 100644
index 0000000..67eb5eb
@@ -0,0 +1,4 @@
+# from https://projects.universe-factory.net/projects/fastd/files
+md5     5cd543cb8e7bce83a22c07a0579c95a1                                  libuecc-7.tar.xz
+# computed locally
+sha256  b94aef08eab5359d0facaa7ead2ce81b193eef0c61379d9835213ebc0a46257a  libuecc-7.tar.xz
package/libuecc/libuecc.mk +3 -2
index bddb7d5..87ca2e4 100644
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-LIBUECC_VERSION = v6
-LIBUECC_SITE = git://git.universe-factory.net/libuecc
+LIBUECC_VERSION = 7
+LIBUECC_SITE = https://projects.universe-factory.net/attachments/download/85
+LIBUECC_SOURCE = libuecc-$(LIBUECC_VERSION).tar.xz
 LIBUECC_LICENSE = BSD-2c
 LIBUECC_LICENSE_FILES = COPYRIGHT
 LIBUECC_INSTALL_STAGING = YES
Signature · 1 line
2.1.4
#2 lore raw

PATCH v2 2/2 fastd: bump to v18

In reply to Alexander Dahl

Release notes at http://fastd.readthedocs.org/en/v18/releases/v18.html

First patch rebased, second patch removed (gone upstream). Using tarball and hashes instead of git now.

---
I did not try to remove the first patch. Upstream removed CMakeFindBinUtils.cmake which caused build problems IIRC. However I'd like to stick for the CMake way on activating LTO instead of setting those flags manually assuming we have a gcc understanding those options, so I adapted the patch instead of removing it. However this is open for discussion. I would also be okay with dropping the patch in disabling LTO for this package in general.

v1 -> v2:
found the source for the release tarballs, maintainer confirmed

---
 ...NTERPROCEDURAL_OPTIMIZATION-target-proper.patch |  33 +--
 .../0002-Don-t-depend-on-net-if_ether.h.patch      | 261 ---------------------
 package/fastd/fastd.hash                           |   4 +
 package/fastd/fastd.mk                             |   5 +-
 4 files changed, 16 insertions(+), 287 deletions(-)
 delete mode 100644 package/fastd/0002-Don-t-depend-on-net-if_ether.h.patch
 create mode 100644 package/fastd/fastd.hash
package/fastd/0001-cmake-use-INTERPROCEDURAL_OPTIMIZATION-target-proper.patch +9 -24
index 99d20c6..489c726 100644
@@ -15,27 +15,12 @@ have very few space left on devices with only 4 MB flash memory.
 
 Signed-off-by: Alexander Dahl <[email protected]>
 ---
- cmake/CMakeFindBinUtils.cmake |  7 -------
- cmake/checks.cmake            | 14 --------------
- src/CMakeLists.txt            |  9 +++++++++
- 3 files changed, 9 insertions(+), 21 deletions(-)
- delete mode 100644 cmake/CMakeFindBinUtils.cmake
+ cmake/checks.cmake | 14 --------------
+ src/CMakeLists.txt |  9 +++++++++
+ 2 files changed, 9 insertions(+), 14 deletions(-)
 
-diff --git a/cmake/CMakeFindBinUtils.cmake b/cmake/CMakeFindBinUtils.cmake
-deleted file mode 100644
-index 753577a..0000000
---- a/cmake/CMakeFindBinUtils.cmake
-+++ /dev/null
-@@ -1,7 +0,0 @@
--if(CMAKE_COMPILER_IS_GNUCC)
--  find_program(CMAKE_AR NAMES ${_CMAKE_TOOLCHAIN_PREFIX}gcc-ar HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
--  find_program(CMAKE_NM NAMES ${_CMAKE_TOOLCHAIN_PREFIX}gcc-nm HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
--  find_program(CMAKE_RANLIB NAMES ${_CMAKE_TOOLCHAIN_PREFIX}gcc-ranlib HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
--endif(CMAKE_COMPILER_IS_GNUCC)
--
--include(${CMAKE_ROOT}/Modules/CMakeFindBinUtils.cmake)
 diff --git a/cmake/checks.cmake b/cmake/checks.cmake
-index f9f0399..3c1f38b 100644
+index 27c073f..8a671a1 100644
 --- a/cmake/checks.cmake
 +++ b/cmake/checks.cmake
 @@ -10,20 +10,6 @@ if(ARCH_X86 OR ARCH_X86_64)
@@ -60,13 +45,13 @@ index f9f0399..3c1f38b 100644
  #include <sys/types.h>
  #include <sys/socket.h>
 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
-index e7dd5d1..4991656 100644
+index 829b3ab..7612b40 100644
 --- a/src/CMakeLists.txt
 +++ b/src/CMakeLists.txt
-@@ -47,6 +47,15 @@ add_executable(fastd
+@@ -48,6 +48,15 @@ add_executable(fastd
  set_property(TARGET fastd PROPERTY COMPILE_FLAGS "${FASTD_CFLAGS}")
- set_property(TARGET fastd PROPERTY LINK_FLAGS "${PTHREAD_LDFLAGS} ${UECC_LDFLAGS_OTHER} ${NACL_LDFLAGS_OTHER} ${OPENSSL_CRYPTO_LDFLAGS_OTHER} ${JSONC_LDFLAGS_OTHER} ${LDFLAGS_LTO}")
- set_property(TARGET fastd APPEND PROPERTY INCLUDE_DIRECTORIES ${CAP_INCLUDE_DIR} ${NACL_INCLUDE_DIRS} ${JSONC_INCLUDE_DIRS})
+ set_property(TARGET fastd PROPERTY LINK_FLAGS "${PTHREAD_LDFLAGS} ${LIBUECC_LDFLAGS_OTHER} ${NACL_LDFLAGS_OTHER} ${JSON_C_LDFLAGS_OTHER} ${LDFLAGS_LTO}")
+ set_property(TARGET fastd APPEND PROPERTY INCLUDE_DIRECTORIES ${LIBCAP_INCLUDE_DIR} ${NACL_INCLUDE_DIRS} ${JSON_C_INCLUDE_DIR})
 +if(ENABLE_LTO)
 +	set_target_properties(fastd PROPERTIES
 +		INTERPROCEDURAL_OPTIMIZATION ON
@@ -76,7 +61,7 @@ index e7dd5d1..4991656 100644
 +		INTERPROCEDURAL_OPTIMIZATION OFF
 +	)
 +endif(ENABLE_LTO)
- target_link_libraries(fastd protocols methods ciphers macs ${RT_LIBRARY} ${CAP_LIBRARY} ${UECC_LIBRARIES} ${NACL_LIBRARIES} ${OPENSSL_CRYPTO_LIBRARIES} ${JSONC_LIBRARIES})
+ target_link_libraries(fastd protocols methods ciphers macs ${RT_LIBRARY} ${LIBCAP_LIBRARY} ${LIBUECC_LIBRARIES} ${NACL_LIBRARIES} ${OPENSSL_CRYPTO_LIBRARY} ${JSON_C_LIBRARIES})
  
  add_dependencies(fastd version)
 -- 
package/fastd/0002-Don-t-depend-on-net-if_ether.h.patch deleted +0 -261

261 lines not on this page · raw message

package/fastd/fastd.hash new file +4 -0
new file mode 100644
index 0000000..3c6a99e
@@ -0,0 +1,4 @@
+# from https://projects.universe-factory.net/projects/fastd/files
+md5     e53236d3049f64f7955ad9556da099eb                                  fastd-18.tar.xz
+# computed locally
+sha256  714ff09d7bd75f79783f744f6f8c5af2fe456c8cf876feaa704c205a73e043c9  fastd-18.tar.xz
package/fastd/fastd.mk +3 -2
index 4c2626f..0e510db 100644
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-FASTD_VERSION = v17
-FASTD_SITE = git://git.universe-factory.net/fastd
+FASTD_VERSION = 18
+FASTD_SITE = https://projects.universe-factory.net/attachments/download/86
+FASTD_SOURCE = fastd-$(FASTD_VERSION).tar.xz
 FASTD_LICENSE = BSD-2c
 FASTD_LICENSE_FILES = COPYRIGHT
 FASTD_CONF_OPTS = -DENABLE_LIBSODIUM=ON
Signature · 1 line
2.1.4
#3 lore raw

v2 cover bump libuecc and fastd

In reply to Alexander Dahl

Hello,

Quoted 3 lines · Alexander Dahl

Alexander Dahl (2):
libuecc: bump to v7
fastd: bump to v18

Applied, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com