Skip to contentSkip to conversation

package/dlib: new package

PATCH Superseded Roy Kollen Svendsen 2 participants 4 messages Sep 9, 2024 – Sep 15, 2024

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/2 package/dlib: new package

---
Changes v3 -> v4:
- sort config options
- since this is a library install to staging
- set DLIB_LINK_WITH_SQLITE3=OFF

Should I enforce using system libraries where alternative internal libraries exist?

Do I add too much license information here? (I assume I only need BSL-1.0)

 package/Config.in      |  1 +
 package/dlib/Config.in | 60 +++++++++++++++++++++++++
 package/dlib/dlib.hash | 12 +++++
 package/dlib/dlib.mk   | 99 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 172 insertions(+)
 create mode 100644 package/dlib/Config.in
 create mode 100644 package/dlib/dlib.hash
 create mode 100644 package/dlib/dlib.mk
package/Config.in +1 -0
index 17855fed30..b731e8cf5e 100644
@@ -2150,6 +2150,7 @@ menu "Other"
 	source "package/cracklib/Config.in"
 	source "package/dawgdic/Config.in"
 	source "package/ding-libs/Config.in"
+	source "package/dlib/Config.in"
 	source "package/dotconf/Config.in"
 	source "package/double-conversion/Config.in"
 	source "package/eigen/Config.in"
package/dlib/Config.in new file +60 -0

60 lines not on this page · raw message

package/dlib/dlib.hash new file +12 -0
new file mode 100644
index 0000000000..3bb5a540d0
@@ -0,0 +1,12 @@
+sha256  22513c353ec9c153300c394050c96ca9d088e02966ac0f639e989e50318c82d6  dlib-19.24.6.tar.gz
+
+# Hashes for license files:
+sha256  50c1c5978d490c7f13062d91c4b89affc83774f87bc4568a714f748b62a5b216  dlib/external/libjpeg/README
+sha256  debfae299fa4118b0a586af4cf7ac8d38aae81ac4e9995c935862aaee6eb0362  dlib/external/libpng/LICENSE
+sha256  83965b843b98f670d3a85bd041ed4b372c8ec50d7b4a5995a83ac697ba675dcb  dlib/external/pybind11/LICENSE
+sha256  8d8291caf1cee26d23acf3eb67c9f9a2d58f1c681b16a4fbe8cbfb9e3c0b5a9b  dlib/LICENSE.txt
+sha256  908b0b565ae9bf61b7b41447cb0b83564f320375723bcc884ec30e5537a0d5dc  dlib/test/ffmpeg_data/LICENSE.TXT
+sha256  78515536a4b0d896745b6483fccc561987e8e2f2d014dc81d7c2e97c497a0a69  examples/LICENSE_FOR_EXAMPLE_PROGRAMS.txt
+sha256  a0e7b40719ba74630debe9fae1cb847ee436215451123254a690171d09fb036e  examples/video_frames/license.txt
+sha256  8d8291caf1cee26d23acf3eb67c9f9a2d58f1c681b16a4fbe8cbfb9e3c0b5a9b  LICENSE.txt
+sha256  8acb12b218fdb5e071f25eda9ac990d04888388b65095867d9007c278a9f993b  python_examples/LICENSE_FOR_EXAMPLE_PROGRAMS.txt
package/dlib/dlib.mk new file +99 -0

99 lines not on this page · raw message

Signature · 6 lines
2.46.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH v4 2/2 DEVELOPERS: add Roy Kollen Svendsen for dlib

---
 DEVELOPERS | 1 +
 1 file changed, 1 insertion(+)
DEVELOPERS +1 -0
index b0efabfd5d..8df56f37c0 100644
@@ -2878,6 +2878,7 @@ F:	support/testing/tests/package/test_python_mako.py
 F:	toolchain/
 
 N:	Roy Kollen Svendsen <[email protected]>
+F:	package/dlib/
 F:	package/qt6/
 
 N:	Rufus Segar <[email protected]>
Signature · 6 lines
2.46.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Roy Kollen Svendsen

Hello Roy,

Quoted 1 line · On Mon, 9 Sep 2024 14:11:12 +0200 Roy Kollen Svendsen…

Thanks for the patch!

Quoted 1 line

Should I enforce using system libraries where alternative internal libraries exist?

Yes, we always want to use system libraries instead of bundled ones.

Quoted 1 line

Do I add too much license information here? (I assume I only need BSL-1.0)

I think the license information you provided is good as it is.

Quoted 12 lines
package/dlib/Config.in new file +6 -0
new file mode 100644
index 0000000000..77ff5086ae
@@ -0,0 +1,60 @@
+config BR2_PACKAGE_DLIB
+	bool "dlib"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	help
+	  Dlib is a modern C++ toolkit containing machine learning

package/dlib/Config.in line 16

Quoted 10 lines
package/dlib/Config.in new file +10 -0
+	  algorithms and tools for creating complex software in C++ to
+	  solve real world problems.
+
+	  http://dlib.net
+
+if BR2_PACKAGE_DLIB
+
+config BR2_PACKAGE_DLIB_GIF_SUPPORT
+	bool "GIF support"
+	select BR2_PACKAGE_GIFLIB

I think you should drop all sub-options, and instead rely on automatic dependencies, i.e:

ifeq ($(BR2_PACKAGE_GIFLIB),y)
... enable GIF support
else
... disable GIF support
endif

and ditto for all other options.

Last but not least, the addition of the entry in the DEVELOPERS file should be done as part of the patch adding the package.

Could you adjust those small details and sent a new iteration, which I believe we will be able to merge?

Thanks a lot!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

søn. 15. sep. 2024 kl. 00:14 skrev Thomas Petazzoni < [email protected]>:

Quoted 59 lines

Hello Roy,

Quoted 1 line · On Mon, 9 Sep 2024 14:11:12 +0200 Roy Kollen Svendsen…

Thanks for the patch!

Quoted 1 line

Should I enforce using system libraries where alternative internal

libraries exist?

Yes, we always want to use system libraries instead of bundled ones.

Quoted 1 line

Do I add too much license information here? (I assume I only need

BSL-1.0)

I think the license information you provided is good as it is.

Quoted 12 lines
package/dlib/Config.in new file +6 -0
new file mode 100644
index 0000000000..77ff5086ae
@@ -0,0 +1,60 @@
+config BR2_PACKAGE_DLIB
+     bool "dlib"
+     depends on BR2_INSTALL_LIBSTDCPP
+     depends on BR2_TOOLCHAIN_HAS_THREADS
+     help
+       Dlib is a modern C++ toolkit containing machine learning

package/dlib/Config.in line 16

Quoted 10 lines
package/dlib/Config.in new file +10 -0
+       algorithms and tools for creating complex software in C++ to
+       solve real world problems.
+
+       http://dlib.net
+
+if BR2_PACKAGE_DLIB
+
+config BR2_PACKAGE_DLIB_GIF_SUPPORT
+     bool "GIF support"
+     select BR2_PACKAGE_GIFLIB

I think you should drop all sub-options, and instead rely on automatic dependencies, i.e:

ifeq ($(BR2_PACKAGE_GIFLIB),y)
... enable GIF support
else
... disable GIF support
endif

and ditto for all other options.

Last but not least, the addition of the entry in the DEVELOPERS file should be done as part of the patch adding the package.

Could you adjust those small details and sent a new iteration, which I believe we will be able to merge?

Quoted 8 lines

Thanks a lot!

Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training
https://bootlin.com

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot