From patchwork Fri Oct 4 21:54:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3545 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C961A3F15E for ; Fri, 4 Oct 2024 23:54:57 +0200 (CEST) Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-42ac185e26csf19056735e9.3 for ; Fri, 04 Oct 2024 14:54:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1728078897; cv=pass; d=google.com; s=arc-20240605; b=f5pLL2Y+ZUD9XF+L+UaUeVZFh5N0epHq3Ih7Wrp2XMeVfBb3VMUcqDiBoQwVKXHJR6 itd3nHyYGz3qWpdMzVSgQrZDroV/4sguhKXPmNRupy5O1PrEWgqly2NMHFxab3olOhiS BnKR95OQnlnnGpdjI81ADFPohurdfzul5SqpDiRDXcfRhJFUi6VEAj8VAkIX+IqiCBn4 lHTMsjHtOaev1b3GXk7aeCOcHnfvxWuQSkMVbmAFO+4pcnxnHjBzRWlL+wVvxnmHphFE cMEM2cIl4qGTa5WHdRcdi+OAyEpDMKEgshJBDuX3J8yFbw9+16WWf216n3fQI64lpg9F TLYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=prXt50tLEJhECIHjIRyaDl9lTn6jSS/kK321YgKtb8U=; fh=ustgXITLBAwsnc65jL626EG7DvuFid8OLuReqKKjSdk=; b=B7Kvcp9kjp+vJ3HMeGldNun5x6EpJXfDPKimiz/T6tEXEje5Ul7d5mUyQGJ5JyzRbF BbIe5XbMNFHEBu85mj42eAg/GYMHulH2mvE7jqxa3r+bZ5w/Oj2rml36LV0oqAR99TGI OWlNCa24vY/RwSZdh2/qiNDkVR2kMid7tMn37oeoNVuF6W+Jb9FBAKNQKtS0hIPrwiTB 9hQYGZdflVch+PvSn07cxjou77KmEBHIvVtUDYeKhfYHQe4m70e9INcAatPTUnuRsT8G O9TDfrLbDcc+B2klMRM9iS+FQQptMN7owPTqwHjzB6sIBe6tEz3EC05B2+eq9iYwEtJZ ee6w==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ETN+kvFO; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1728078897; x=1728683697; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=prXt50tLEJhECIHjIRyaDl9lTn6jSS/kK321YgKtb8U=; b=Oj1mAqN16Vc0gop3RIq0Av/JQmFNRyweo9OA0G8xlUKpkxwoj75KWY8aDwFVygSpuI 2u3sKIWS6B4fLgfZ4NGAJs8cwqXyfpbn1n0ZJqH7v6nIauDINV9X75q1ywiy01zlnmvP fA+hdg5v8R/pf+zZrWwhDgli31GwXoOcp7wV4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728078897; x=1728683697; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=prXt50tLEJhECIHjIRyaDl9lTn6jSS/kK321YgKtb8U=; b=G3HcXL/6mHdCiclnRdIvZyUtWXzErDr2/LDc0RQqxuT/B+u0huX04OdTH6e/uJbbTh oGCRf40AE5OgcHJZHQ1+jQwR8rPjqZq0EQiKoywPEMJrsVXlZupB7ZGsxWupGFZ+jaOy 2PIJVjAt1Y7y5U3lcrps6So5daZlVCcuWshDiBRLdS3NUFfRzbZO3sBu5dMRcF3DwbH7 8f/7sBWEpGPYID9vJh9lIHzvoSgKUn+NdVSfTg/GZRrnGuat/0m8NRUjgOjbuYzL9r/9 AR1YSRWXxsx+H0Aw1RHBrImKiwBEW5IY/ao2ScXJ8GK98u9VMjau97owJ2Cwryx9xuyA j9Sg== X-Forwarded-Encrypted: i=2; AJvYcCVLi7MyEySv/v16gs8ALENdtJeEdAEQj6+PkMO6XiJ8Qvm744EP8leL0uscK3SgW1ZXFZyTGH2ULav3y3Mx@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxHun0i60UPBPhbc5r0dlNVe2BK+OqO69hWruaxcX8DhKvi41JU jPNu1iFBwfZUjKMhNtA1wyRSAVency+2K3emyR4fIYO53QDQEJP2SmSb6+1ZeoWHmA== X-Google-Smtp-Source: AGHT+IGcWt/MGXK/eo3OGKcuv4sxzxgn6u4SAL3AFpPQ8yFtuQsgda6/+62ERmkgPlfMfHkSvB4ZkA== X-Received: by 2002:a05:600c:5251:b0:42c:b9c8:2bb0 with SMTP id 5b1f17b1804b1-42f85a6df29mr29829405e9.4.1728078897022; Fri, 04 Oct 2024 14:54:57 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:1c01:b0:42c:b9e1:ad0b with SMTP id 5b1f17b1804b1-42f7dfff5a5ls11748255e9.2.-pod-prod-07-eu; Fri, 04 Oct 2024 14:54:55 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVHCLnS85FYhWkjtrrUvBnSlUQ8txuZ6iqL4DS0bRw/KwkarB0gQgERtALzfR9T5905fF9tRT/nxjM8QSgL@amarulasolutions.com X-Received: by 2002:a05:600c:1d1e:b0:426:6455:f124 with SMTP id 5b1f17b1804b1-42f859a0712mr34767075e9.0.1728078895498; Fri, 04 Oct 2024 14:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1728078895; cv=none; d=google.com; s=arc-20240605; b=UMAuVmm7PoEG/6rv7G+QlsDzqSDP51pZTW3vpThmKkCirwHpFowJN2vG2d0K9HdhpZ j+djV4qIeVRIDLabBUEvswHqCOcs5274Vy0E0lZ7UYSxXpyuzIj0MaSA5SR3ZiZK4MQ5 QGy1b1KH9w9ZI0QnbEB7nZI5hGx1okCbNugynV4/R1vDmVuV5HZCUksOnCoSHRyLLIis h1qIhc6c+TgD+tfq7C2CQjwnw+4AgXwe66D3QLBc3+YkTMatBHj++1jCgzVHMHzAmTC1 KnWH9TtolEzujMO7S8EP4gDYs7p6aiEO6c3qKkW68k+p+p2/52qf/XFOtQn/t4YfQ6Re Rw9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=5N4rQwuNgNQaEjQlMdG74f84j6N+VSrSjS8S6uOLZqU=; fh=XSn3Ao5fAZJENKYobQv7BB2WJ4ejYR/qOxgOaXNmbMI=; b=JSgNfbRNmCN+g3w8ElJpAGflB+MPnP/BiPwlm47bqyyh4hLKMhSajrL+meTJL9K+nu 5k1Xj4tKm+DhgjJy9zU1E+h6GIl4BM++EVvBaR/Wtlp7pNPbl/ZbZeHgNPIQP7u2Vvl/ ozDQLPtuEpSWGWiUMJQWsnAbaOb2E0VEq93elighyHmDFV69wejzQOXVZ0xnzsmCsxpj tBNs+OMyrFJbgcKvzIAleIox5r4jhF09/jAXSsopoeZzRt9vz3JXgoOrdlbu2xPwtWKS TOyWp3HqUih6mcesN1KtRk6dNogKnyQwzdxuL33JWaC+vPq7v8I3L7VIJcxrrUhi9rcK 3ssw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ETN+kvFO; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 5b1f17b1804b1-42f8a18f581sor2354805e9.1.2024.10.04.14.54.55 for (Google Transport Security); Fri, 04 Oct 2024 14:54:55 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCWIyVZ/S3QJhBuEUsabkccscbYGs5coehOZTl5qdo6KPnahFCr8MaMtiKTM74v3UaHbHtjd9m+ZXAnbZPtg@amarulasolutions.com X-Received: by 2002:a05:600c:4f81:b0:426:5fe1:ec7a with SMTP id 5b1f17b1804b1-42f85aef815mr33339025e9.31.1728078894803; Fri, 04 Oct 2024 14:54:54 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.43.206]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42f89e39aebsm6972005e9.0.2024.10.04.14.54.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Oct 2024 14:54:54 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Dario Binacchi , linux-amarula@amarulasolutions.com, Colin Percival Subject: [PATCH 1/3] package/libdivsufsort: new package Date: Fri, 4 Oct 2024 23:54:44 +0200 Message-ID: <20241004215451.1198861-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ETN+kvFO; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The commit adds the libdivsufsort library. This library implements a lightweight suffix array construction algorithm. I set the package version to the most recent commit because the latest released version (i. e. 2.0.1) had license and compilation issues, which were fixed in subsequent commits. Cc: Colin Percival Signed-off-by: Dario Binacchi --- DEVELOPERS | 1 + package/Config.in | 1 + package/libdivsufsort/Config.in | 7 +++++++ package/libdivsufsort/libdivsufsort.hash | 3 +++ package/libdivsufsort/libdivsufsort.mk | 23 +++++++++++++++++++++++ 5 files changed, 35 insertions(+) create mode 100644 package/libdivsufsort/Config.in create mode 100644 package/libdivsufsort/libdivsufsort.hash create mode 100644 package/libdivsufsort/libdivsufsort.mk diff --git a/DEVELOPERS b/DEVELOPERS index 44b19474876b..458da4e4e051 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -798,6 +798,7 @@ F: configs/stm32f769_disco_sd_defconfig F: package/armadillo/ F: package/babeld/ F: package/iana-assignments/ +F: package/libdivsufsort/ F: package/sscep/ F: package/tinyinit/ F: package/uuu/ diff --git a/package/Config.in b/package/Config.in index e1ceb81dc0a2..40caa6fb3461 100644 --- a/package/Config.in +++ b/package/Config.in @@ -2209,6 +2209,7 @@ menu "Other" source "package/libdaemon/Config.in" source "package/libdex/Config.in" source "package/libdill/Config.in" + source "package/libdivsufsort/Config.in" source "package/libeastl/Config.in" source "package/libee/Config.in" source "package/libev/Config.in" diff --git a/package/libdivsufsort/Config.in b/package/libdivsufsort/Config.in new file mode 100644 index 000000000000..b00e9c77e5fe --- /dev/null +++ b/package/libdivsufsort/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_LIBDIVSUFSORT + bool "libdivsufsort" + help + libdivsufsort is a software library that implements a + lightweight suffix array construction algorithm. + + https://github.com/y-256/libdivsufsort diff --git a/package/libdivsufsort/libdivsufsort.hash b/package/libdivsufsort/libdivsufsort.hash new file mode 100644 index 000000000000..ed99c2272dd8 --- /dev/null +++ b/package/libdivsufsort/libdivsufsort.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 705a122a142eda16f05996e56b45247319d140928eec32bd9db6753da13f5b5b libdivsufsort-5f60d6f026c30fb4ac296f696b3c8b0eb71bd428.tar.gz +sha256 29f948fde0da0929ee6ed6bf82a96114b992d54a5d906c77a42473df520da764 LICENSE diff --git a/package/libdivsufsort/libdivsufsort.mk b/package/libdivsufsort/libdivsufsort.mk new file mode 100644 index 000000000000..1ae2ee487e25 --- /dev/null +++ b/package/libdivsufsort/libdivsufsort.mk @@ -0,0 +1,23 @@ +################################################################################ +# +# libdivsufsort +# +################################################################################ + +LIBDIVSUFSORT_VERSION = 5f60d6f026c30fb4ac296f696b3c8b0eb71bd428 +LIBDIVSUFSORT_SITE = $(call github,y-256,libdivsufsort,$(LIBDIVSUFSORT_VERSION)) +LIBDIVSUFSORT_LICENSE = MIT +LIBDIVSUFSORT_LICENSE_FILES = LICENSE +LIBDIVSUFSORT_INSTALL_STAGING = YES + +LIBDIVSUFSORT_CONF_OPTS = \ + -DBUILD_EXAMPLES=OFF \ + -DBUILD_DIVSUFSORT64=ON + +ifeq ($(BR2_STATIC_LIBS),y) +LIBDIVSUFSORT_CONF_OPTS += -DBUILD_SHARED_LIBS=OFF +else +LIBDIVSUFSORT_CONF_OPTS += -DBUILD_SHARED_LIBS=ON +endif + +$(eval $(cmake-package))