From patchwork Sat Jul 27 18:59:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 169944 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1609913ilk; Sat, 27 Jul 2019 11:59:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhPeleDxMA/mp7mL27wCRZDHOls+ij90g8UV7wexs83MvrBf30fPDB0AtFE4mLXgiyroSO X-Received: by 2002:a17:902:28c9:: with SMTP id f67mr63367535plb.19.1564253996745; Sat, 27 Jul 2019 11:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564253996; cv=none; d=google.com; s=arc-20160816; b=S91ReRVd+nW+vToRnAfbOPJ4kkhrf5cXiDTl5/gCQgd4pYsbrqhHGrm2KSadIIJk7Y dz0gpHVeDc/kpdou8N7QHM+a0k7n37PuVnaVn00RHAVYFW7blmazcYLYaSt8riq/YWGR XKZrG6yjbZaeQ8fyk8WnipC7aftWkZZ3ev3flSnHdZutrInOjwvvheqyjW/rvxB+OPLo cXPdZUdysmcfIlcsr7CMY8aZNMsC+Tr2uAyRTzs1qIiZToVOTu2TYPYkD+MIOekprc/K koB5k5LnnkZ4s7UCUgrDnbjUjeswtmHe1X4/bEloaKaPaHSpwfpEbJ4Ep1HcqsEgM3PW TuYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=OEWbVYHuVCBGm4/R9nHCIwpN5rdfXxn3bt7R27Yf684=; b=zTNnmT/LQLUUZ15GF6bER4v+z9o5qUgi4XpdcIfSMA8psIozxKbEz7mAnnm5cO45kK ah/qNdXB14Ah0RlXLzwIDt446DOk++QKG+Jo12M+7qzFLGMoKU5UUKGgdgUYOpBSioxS Rx2yl3DhcLMNGSjYYBbzXOGsGa3yT3SfefZmR3JmDdJvnPzF4wj+7VHMgXNiGJph/yO1 Aw0A44z8zHBNStPRym1aURZJR6VAT3DFwztSKxvHHU/rehWT7koef61xv2rSiNAyLbGa VouWS7dMQqnstFETUud8+M2L+nHgDCta84+MCVu9PcMdUkn7I7v9fEf3ESRCX3u0mn2v Ek9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=JiInR199; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id t6si20426781pjv.14.2019.07.27.11.59.56; Sat, 27 Jul 2019 11:59:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=JiInR199; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 4DBDA7ED3D; Sat, 27 Jul 2019 18:59:48 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by mail.openembedded.org (Postfix) with ESMTP id E28287ED3D for ; Sat, 27 Jul 2019 18:59:45 +0000 (UTC) Received: by mail-pf1-f196.google.com with SMTP id c3so2888638pfa.13 for ; Sat, 27 Jul 2019 11:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nbaivUiuB41Ox7ktbvI8eQAbtUA1g0OefCcV3bOndjk=; b=JiInR199HCajsieAji9mYB/lB1wMqbSzXz8h5SkjEFp8e2FdNYzSYXmeiOL7jLxmNH tsX8cTNE35VwxTR4gllXwQ9lbwwAxhwT7JchaSLYGkeaw5yFfy4wXN0nUuWEwChFVUXU qlvJRCE99ccRRLVkDJwi9Ad9FqIeXUfyezlMzqmI3sS+febDVnbZtkAobxsMO1pm5Ajn 6w/xvsDUF7/bqaPb7s9mqscd0BsDNPfJxbLV/Z8e9LC1u9+q7ztl21b00w0Gv1fGJAxZ itC8xA32TlhSImBBfomZjRcyHAkVP7rUFuyFWIsGt/+jOifhQWQTrz/uWIBViqH3bbJx QGtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nbaivUiuB41Ox7ktbvI8eQAbtUA1g0OefCcV3bOndjk=; b=hoNjRSY/rFGRvifCztdWWZRYvtg6M7v1IIyMSV5yWgKDxyhvhnraP3la8gruRd6xcZ MtvJM524tjsULnV2hO3n6HpOnjiCGRpyEll7esY6MVWQoZ06zCfeNZmzPz2IwbPsKUA7 2v+exvgLLC7N56idDaaWb0iBfrcVx4/YjDT7yd7FGwpppvAOhX3XqaAzETZyXwsmVCpG cQ/wnnMKh6RXa58eNo5iUfK1AVigpHLAk0tSV1VlbMm4PBnGezTaFOZAervsRuulzLLn 7phRYGcgDaej89jfvLFKxEK7PtZFYnG/HiAhlOWWEG/7SFwJgUiNMJmcFO5cRzfWv9Yh F18Q== X-Gm-Message-State: APjAAAUIEG9VIlYw0huYm2xca2trd6GyUvzARN59K9kkdmLrofdDvlrX VpWIbrNab9BqOgW4MRKnAZFu9gokqyw= X-Received: by 2002:a62:18d4:: with SMTP id 203mr28832819pfy.165.1564253985701; Sat, 27 Jul 2019 11:59:45 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id k22sm60178333pfk.157.2019.07.27.11.59.44 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 27 Jul 2019 11:59:45 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sat, 27 Jul 2019 11:59:34 -0700 Message-Id: <20190727185937.29832-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Subject: [oe] [meta-networking][PATCH 1/4] postfix: Fix build failures with glibc 2.30 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...ure-with-glibc-2.30-due-to-dropped-R.patch | 37 +++++++++++++++++++ .../recipes-daemons/postfix/postfix.inc | 11 ------ .../recipes-daemons/postfix/postfix_3.4.5.bb | 18 +++++++-- 3 files changed, 51 insertions(+), 15 deletions(-) create mode 100644 meta-networking/recipes-daemons/postfix/files/0001-Fixed-build-failure-with-glibc-2.30-due-to-dropped-R.patch -- 2.22.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-daemons/postfix/files/0001-Fixed-build-failure-with-glibc-2.30-due-to-dropped-R.patch b/meta-networking/recipes-daemons/postfix/files/0001-Fixed-build-failure-with-glibc-2.30-due-to-dropped-R.patch new file mode 100644 index 0000000000..22adaff729 --- /dev/null +++ b/meta-networking/recipes-daemons/postfix/files/0001-Fixed-build-failure-with-glibc-2.30-due-to-dropped-R.patch @@ -0,0 +1,37 @@ +From 8b3792830f4930fee7fbb00c854d9766f2b74dca Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 27 Jul 2019 11:35:38 -0700 +Subject: [PATCH] Fixed build failure with glibc 2.30 due to dropped + RES_INSECURE1/2 macros + +see [1] + +[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=333221862ecbebde60dd16e7ca17d26444e62f50 + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + src/dns/dns_str_resflags.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/src/dns/dns_str_resflags.c b/src/dns/dns_str_resflags.c +index 5f2cce5..df32345 100644 +--- a/src/dns/dns_str_resflags.c ++++ b/src/dns/dns_str_resflags.c +@@ -60,10 +60,16 @@ static const LONG_NAME_MASK resflag_table[] = { + "RES_DEFNAMES", RES_DEFNAMES, + "RES_STAYOPEN", RES_STAYOPEN, + "RES_DNSRCH", RES_DNSRCH, ++#ifdef RES_INSECURE1 + "RES_INSECURE1", RES_INSECURE1, ++#endif ++#ifdef RES_INSECURE2 + "RES_INSECURE2", RES_INSECURE2, ++#endif + "RES_NOALIASES", RES_NOALIASES, ++#ifdef RES_USE_INET6 + "RES_USE_INET6", RES_USE_INET6, ++#endif + #ifdef RES_ROTATE + "RES_ROTATE", RES_ROTATE, + #endif diff --git a/meta-networking/recipes-daemons/postfix/postfix.inc b/meta-networking/recipes-daemons/postfix/postfix.inc index 94379412f9..7781005336 100644 --- a/meta-networking/recipes-daemons/postfix/postfix.inc +++ b/meta-networking/recipes-daemons/postfix/postfix.inc @@ -14,17 +14,6 @@ DEPENDS = "db icu libpcre libnsl2 openssl postfix-native \ LICENSE = "IPL-1.0 | EPL-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=b181651ad99a7dc4cc8c4ce2f491ed1a" -SRC_URI = "ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${PV}.tar.gz \ - file://makedefs.patch \ - file://install.patch \ - file://main.cf \ - file://postfix \ - file://internal_recipient \ - file://postfix.service \ - file://aliasesdb \ - file://check_hostname.sh \ -" - S = "${WORKDIR}/postfix-${PV}" CLEANBROKEN = "1" diff --git a/meta-networking/recipes-daemons/postfix/postfix_3.4.5.bb b/meta-networking/recipes-daemons/postfix/postfix_3.4.5.bb index 3ce8055539..189baea5c3 100644 --- a/meta-networking/recipes-daemons/postfix/postfix_3.4.5.bb +++ b/meta-networking/recipes-daemons/postfix/postfix_3.4.5.bb @@ -1,9 +1,19 @@ require postfix.inc -SRC_URI += "file://0001-makedefs-Use-native-compiler-to-build-makedefs.test.patch \ - file://postfix-install.patch \ - file://icu-config.patch \ - file://0001-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch \ +SRC_URI += "ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-${PV}.tar.gz \ + file://makedefs.patch \ + file://install.patch \ + file://main.cf \ + file://postfix \ + file://internal_recipient \ + file://postfix.service \ + file://aliasesdb \ + file://check_hostname.sh \ + file://0001-makedefs-Use-native-compiler-to-build-makedefs.test.patch \ + file://postfix-install.patch \ + file://icu-config.patch \ + file://0001-makedefs-add-lnsl-and-lresolv-to-SYSLIBS-by-default.patch \ + file://0001-Fixed-build-failure-with-glibc-2.30-due-to-dropped-R.patch \ " SRC_URI[md5sum] = "093109941095390562166de766d4720d" SRC_URI[sha256sum] = "8b2ba54f9d2a049582a0ed3ee2dbe96ba57e278feea9cb4f80e1a61844e6319f" From patchwork Sat Jul 27 18:59:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 169945 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1610396ilk; Sat, 27 Jul 2019 12:00:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbhuSZL9KD+GwKROeanMPqnsrX6VjKMy+RN2zOo5m1jKlzcFTv4oQtjBJGPWr737yrdVMc X-Received: by 2002:a63:9dcb:: with SMTP id i194mr51741033pgd.444.1564254032618; Sat, 27 Jul 2019 12:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564254032; cv=none; d=google.com; s=arc-20160816; b=EX626V6/9BBsGNVE7dk7kUo2emTWIVIeWXE+kCZNbnMLYO9r6MwImrLxREHxS5QGmd Twbuv6qQroydrkvH5HRH5ujGnXkmKaCBRFggQpogE53nj6jJF0pKhogq30mxVSloBZ8C S4Ao7Lw+zDekoDHjY7VMeKZNVHw55dddnDbbW3G2KibcD8iYGowixG9c3pGc1iLbjflD WKmRT99z4of/afZrIVAwAqyRlDyWFHNWVAWq3edhRBAS6h/P6UfzQdhkVQhZucotbWbf RYQOPpN0d60DkmkjkkcV9ZuLo9cyls6omduHreoFwAvrNEf+E7Ia0l35LHGDiI5a02X/ 6K0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=q8fJRrKm5w5Uw3yaPN6sTVx+BkfdsIpMbkjqSXDeHwU=; b=Qj4n6LTcLPSkm/O1+ji3gT3aR5DiNa/7KxsVm/jb3nF+y4ExztXd6mGlspe/QizJ1m 6NeOhBeP19B5Sl2Q9C6TtY5oj7Y2R0iDGITf9H6UNa2A1j47Nt8JSy3dgra1ggTtnB+f 6SCOnAqpyAy+Gp4k2pXjhDxQOhV6mjgr9STaUna6q6h33SpuR1VLdiuF5IYm6jqhasVT ECtm+cXkS49TE0GicGVbNSDF3VuX4e+5rdWIbf+nzdqUB/CBlfdvtRgmf+bDURQbh1Bp z8TTOWIW3IBWsQD5itEf25iDV855NTUoqWmBMj8qv0jvYXk82brmC/RlanNyfDDSjav5 U6Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=oe7St9As; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id x24si30564684pfr.200.2019.07.27.12.00.32; Sat, 27 Jul 2019 12:00:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=oe7St9As; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 1F1AD7F212; Sat, 27 Jul 2019 19:00:29 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mail.openembedded.org (Postfix) with ESMTP id 7E67E7ED3D for ; Sat, 27 Jul 2019 18:59:45 +0000 (UTC) Received: by mail-pl1-f180.google.com with SMTP id y8so25971837plr.12 for ; Sat, 27 Jul 2019 11:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PMm4rgJZErazmYUDAHO870acicVaSS/KYPZTaniDfR0=; b=oe7St9As1CugTX/b802KU9AV0XEYeq0wr4FZKUOL0vxu7jXlG3eTcYAHlLQnUhaocU ykqow6VPbukM76O+nLQKJUspIFGcU6wjIfVHTTB2Q5TjtVKhMZuipkha2nDJgDpiI6Yr hSqKBaBGQpHG4U34BIoTwQfomADRUtZgYNdpgyXkwmBm2Jo0WJplpBpssZ6IZ3I6O491 1jsdDPMsx+tnIQXyylS0Nj6X0/NNOvU5x5hvlpBO2c13Fw6T7iesFMJYKMk49UnL1abw ZHEJUHM85Q9CDYnKOeICrGwjKwNDxummXhb+lB+qVkn+yCsDm+GENYYZHaqG32WzEeZ4 MsVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PMm4rgJZErazmYUDAHO870acicVaSS/KYPZTaniDfR0=; b=GUNSc2x8Vqob/HLEbn1vFvg0bD0YcWKK2CfF4PcU5ddLMrSOFAnSKq689N84bTfomi l09VtiZIlMWBvzH7vA5qfGrEg69tYnvvIgjfNTxgnF2aTFvDJDt2KeCwCtvmMMwXEu3x h0OwLz2+dTR5BcWvKqlICIjtQ3NdPB3nYJXSMUK66xtVV0zgkUQ/FYfEKJuKJugkLV8e jxxSqg3CY8ow4UO2Wp7+J4RJX+d507tAkqSwA03WLk70jCjC+aNgbwttxoKJ9UN/nNAh cWV21ALjm8+qXUZ6r133tmwQ+5TRQAO4owKMgpDLXSWTxJ+n9M0YYLsaCJlT2ohxQ3ff 11xw== X-Gm-Message-State: APjAAAVqJyxY2VHYUgkk7gbF5u3Rx3+hSRxDMQJH2trp2ZVMccVO8ioM eG+OOo6mKpuQb+PYrw4g2kEmrs9XFEw= X-Received: by 2002:a17:902:2baa:: with SMTP id l39mr103468728plb.280.1564253986324; Sat, 27 Jul 2019 11:59:46 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id k22sm60178333pfk.157.2019.07.27.11.59.45 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 27 Jul 2019 11:59:45 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sat, 27 Jul 2019 11:59:35 -0700 Message-Id: <20190727185937.29832-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190727185937.29832-1-raj.khem@gmail.com> References: <20190727185937.29832-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-networking][PATCH 2/4] snort: Fix build with glibc 2.30 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...deck-for-gettid-API-during-configure.patch | 48 +++++++++++++++++++ .../snort/snort_2.9.14.bb | 1 + 2 files changed, 49 insertions(+) create mode 100644 meta-networking/recipes-connectivity/snort/snort/0001-chdeck-for-gettid-API-during-configure.patch -- 2.22.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-connectivity/snort/snort/0001-chdeck-for-gettid-API-during-configure.patch b/meta-networking/recipes-connectivity/snort/snort/0001-chdeck-for-gettid-API-during-configure.patch new file mode 100644 index 0000000000..eff610de7c --- /dev/null +++ b/meta-networking/recipes-connectivity/snort/snort/0001-chdeck-for-gettid-API-during-configure.patch @@ -0,0 +1,48 @@ +From c45ab69f9428e4d2fc1146301a4546bb2b42c9ae Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 27 Jul 2019 00:25:58 -0700 +Subject: [PATCH] chdeck for gettid API during configure + +glibc 2.30 added gettid syscall wrapper + +Signed-off-by: Khem Raj +--- + configure.in | 2 +- + src/util.h | 2 ++ + 2 files changed, 3 insertions(+), 1 deletion(-) + +diff --git a/configure.in b/configure.in +index 000bb91..d79e6d0 100644 +--- a/configure.in ++++ b/configure.in +@@ -256,7 +256,7 @@ SN_CHECK_DECLS(printf fprintf syslog puts fputs fputc fopen \ + strcasecmp strncasecmp strerror perror socket sendto \ + vsnprintf snprintf strtoul) + +-AC_CHECK_FUNCS([sigaction strlcpy strlcat strerror vswprintf wprintf memrchr inet_ntop]) ++AC_CHECK_FUNCS([sigaction strlcpy strlcat strerror vswprintf wprintf memrchr inet_ntop gettid]) + + AC_CHECK_FUNC([snprintf],[have_snprintf="yes"],[have_snprintf="no"]) + AM_CONDITIONAL(BUILD_SNPRINTF, test "x$have_snprintf" != "xyes") +diff --git a/src/util.h b/src/util.h +index 6880906..c310b83 100644 +--- a/src/util.h ++++ b/src/util.h +@@ -374,6 +374,7 @@ static inline int IsEmptyStr(const char *str) + return 0; + } + ++#if !HAVE_GETTID + static inline pid_t gettid(void) + { + #if defined(LINUX) && defined(SYS_gettid) +@@ -382,5 +383,6 @@ static inline pid_t gettid(void) + return getpid(); + #endif + } ++#endif + + #endif /*__UTIL_H__*/ +-- +2.22.0 + diff --git a/meta-networking/recipes-connectivity/snort/snort_2.9.14.bb b/meta-networking/recipes-connectivity/snort/snort_2.9.14.bb index b11890c490..6ead49bb61 100644 --- a/meta-networking/recipes-connectivity/snort/snort_2.9.14.bb +++ b/meta-networking/recipes-connectivity/snort/snort_2.9.14.bb @@ -12,6 +12,7 @@ SRC_URI = "https://www.snort.org/downloads/archive/snort/${BP}.tar.gz \ file://fix-host-contamination-when-enable-static-daq.patch \ file://disable-run-test-program-while-cross-compiling.patch \ file://configure.in-disable-tirpc-checking-for-fedora.patch \ + file://0001-chdeck-for-gettid-API-during-configure.patch \ " SRC_URI[md5sum] = "d1689c7ccaaa7bfcfa83b5bff6b8f9b8" From patchwork Sat Jul 27 18:59:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 169946 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1610500ilk; Sat, 27 Jul 2019 12:00:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtZG5J42suGnCIW7xd9ooeaIzn2GFpmUpH01oDkDp76mmheRw9tjFZ06rpjIEUQbo3qZ3g X-Received: by 2002:a17:902:b68f:: with SMTP id c15mr103410450pls.104.1564254039328; Sat, 27 Jul 2019 12:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564254039; cv=none; d=google.com; s=arc-20160816; b=CotQY4NCx8oqYpitMdHDCTj6yeO/7z/n10ugTXeTPr9rxizuhWMgNQx1n5jEDaL+Ig ZJS2VdXvclUMZwwbGz6McQFrzDEc5B9cIag4OLUuzU4UuOFnZaRNHDP9FjeCBZ2OWPWB 2LYj5bAiqPEbk+mHNPjlXQd1jXKX4SNTyaAmp3PkK1tm36CBNJrFaJf7QTDgjfN+ZUkt UGM5Islai/cFy09PDgvIjq1XWHADoeBXa0FGWq/gOBoxIs38OF0aCWEYzey06oL3ZmVH TDngDn+7nwAdyeeRhQj2aU4qpYOyCfpl20ItLX6ru/savQEGM590OH8h7PlykHBUd+Wc wIUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=qbWJtFkRjgd9vGUgiKKh5gI7Sd2R8FF/aO9waEgGepg=; b=Hy4r7GDsRQioQbjp1Gms3ALtXmRrwbahvSb+QSS0/+lErmuwX635SdgqUYkDYn48rg UWUINBxKKj6oxaLJ6QlT/E/pHuUseHVsSH2OWr5oJvAmpWFPblAm1s4l+qKHfK8FXJQx oHzF9VN6300M3Lwb7tkP+lq44iqj5WkWfSJ1h68RNf0LNaLa4yA/LWy4NtT2T0WfxN+h hVHpkReLcv/IT2QwU+r3dRzPte+pXMjfLmnRGxExoUD8XD8ATcn+VsUVMyH4VRZJXMbA YM1N77azAWz7drJ6AcO2LkoPGGChM9NtM7K3UyGadgs5eaJlxEghScq5pBsDxtWBNHhA xZww== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=KNxntvvc; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id r14si23357825pfc.134.2019.07.27.12.00.39; Sat, 27 Jul 2019 12:00:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=KNxntvvc; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 82E467F21B; Sat, 27 Jul 2019 19:00:30 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mail.openembedded.org (Postfix) with ESMTP id 82B887F20D for ; Sat, 27 Jul 2019 18:59:46 +0000 (UTC) Received: by mail-pf1-f171.google.com with SMTP id m30so26037401pff.8 for ; Sat, 27 Jul 2019 11:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qaBg2p+L4Ery/9cj7VWcHz5jDoDT6nfEAZ4FxfOFpG4=; b=KNxntvvc0C9MJgDrsF3dylDRAPN9TG/UI6w54ye/zqhF2xb7rvxZt89WXGlJmud4KD C8Aypfbaj1tYqub0v+Sy4eAhqtPAgVRY0xzrzvRlpNogml87OsgHBpfV50z0X4c6GXJO 0BqwWvjeMmi7TwEYsjCkNlnSgrYTNSRlk/AVPlrP3QPdqGuuDMoGd5ozpbqRC+2s30Ij e8lzjg6KL5uoCe0KNOgWa2vvGBjipihVZxBwQswI+KyrmNBUYovAU6b34csQGQGK2yli zV3W7Qkrk6EUKmeMBAzWG+6wZgK2u/UEMN8W59+4IiK3xFIfLQERnD/btt6DZEEV+JPi JX8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qaBg2p+L4Ery/9cj7VWcHz5jDoDT6nfEAZ4FxfOFpG4=; b=M5cdbQc7cRjnaNYsYIwre8aQ3HVF02VJtvml5BZCkkC6eD+rWoy8cQxZXxtmM5nmvB JDe2iKbM/AjkZB++T7NqlyKd0VcwZGCTvY/88o8CGG3xQyMZMm0by1sAPhfLsMvEOLdC Bykq2jOV7Uh+j/VE3RcUV7PF+ReOB0+GrAADrTdwXhtNExvCrEHvBvymUYP7wjOhBwKG t1+1VTTZiwvSWfS40rTHbP8IANOW6VR2lV7oKVPgflG8P7GqrPUMafijv13S81/n6DdH fYF+K7w727rIfdjE+rp8ft5jDb2d86ArBdgOvnNHlXgMwSru6XaXsF9VaAE1AxmRqpr2 qR5Q== X-Gm-Message-State: APjAAAWDOhQp25aSWkgly75A5ja4xZS8HW/GupMy6z2GoJIHy0+BIKLl AxFOrwwvJKsPUN/sBmyw3VyCQpiByQc= X-Received: by 2002:aa7:8651:: with SMTP id a17mr28317239pfo.138.1564253986970; Sat, 27 Jul 2019 11:59:46 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id k22sm60178333pfk.157.2019.07.27.11.59.46 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 27 Jul 2019 11:59:46 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sat, 27 Jul 2019 11:59:36 -0700 Message-Id: <20190727185937.29832-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190727185937.29832-1-raj.khem@gmail.com> References: <20190727185937.29832-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-networking][PATCH 3/4] opensaf: Add configure time check to detect gettid API in libc X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Also fixes build with glibc 2.30 Signed-off-by: Khem Raj --- ...-configure-time-check-for-gettid-API.patch | 67 +++++++++++++++++++ .../opensaf/opensaf_5.19.03.bb | 1 + 2 files changed, 68 insertions(+) create mode 100644 meta-networking/recipes-daemons/opensaf/opensaf/0001-Add-configure-time-check-for-gettid-API.patch -- 2.22.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-daemons/opensaf/opensaf/0001-Add-configure-time-check-for-gettid-API.patch b/meta-networking/recipes-daemons/opensaf/opensaf/0001-Add-configure-time-check-for-gettid-API.patch new file mode 100644 index 0000000000..2b03b1800a --- /dev/null +++ b/meta-networking/recipes-daemons/opensaf/opensaf/0001-Add-configure-time-check-for-gettid-API.patch @@ -0,0 +1,67 @@ +From 91c7362834ccd88d1432b3e6c5c51748b72b10ad Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 27 Jul 2019 07:21:16 -0700 +Subject: [PATCH] Add configure time check for gettid API + +glibc 2.30 has added syscalls wrapper for gettid +it should now be checked during configure if C library provides +this API then do not define local function + +Signed-off-by: Khem Raj +--- + configure.ac | 4 ++++ + src/base/logtrace.cc | 3 +++ + src/osaf/config.h.in | 3 +++ + 3 files changed, 10 insertions(+) + +diff --git a/configure.ac b/configure.ac +index 22ab936..90f3da4 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -480,6 +480,10 @@ fi + + AC_SUBST([localstatedir]) + ++############################################# ++# Checks for functions. ++############################################# ++AC_CHECK_FUNCS([ gettid ]) + + ############################################# + # Checks for programs. +diff --git a/src/base/logtrace.cc b/src/base/logtrace.cc +index 8908c1f..fe87e8d 100644 +--- a/src/base/logtrace.cc ++++ b/src/base/logtrace.cc +@@ -31,6 +31,7 @@ + #include "base/logtrace_client.h" + #include "base/logtrace_buffer.h" + #include "base/ncsgl_defs.h" ++#include "osaf/config.h" + + namespace global { + +@@ -58,7 +59,9 @@ std::once_flag init_flag; + thread_local LogTraceBuffer gl_thread_buffer{gl_local_thread_trace, + global::thread_trace_buffer_size}; + ++#ifndef HAVE_GETTID + static pid_t gettid() { return syscall(SYS_gettid); } ++#endif + + /** + * USR2 signal handler to enable/disable trace (toggle) +diff --git a/src/osaf/config.h.in b/src/osaf/config.h.in +index d1f6d1a..0a3f27d 100644 +--- a/src/osaf/config.h.in ++++ b/src/osaf/config.h.in +@@ -18,6 +18,9 @@ + /* Define if experimental code is enabled */ + #undef HAVE_EXPERIMENTAL + ++/* Define to 1 if you have the `gettid' function. */ ++#undef HAVE_GETTID ++ + /* SAHPI_INTERFACE_VERSION == A01 */ + #undef HAVE_HPI_A01 + diff --git a/meta-networking/recipes-daemons/opensaf/opensaf_5.19.03.bb b/meta-networking/recipes-daemons/opensaf/opensaf_5.19.03.bb index 0cccebdfcd..505c087f17 100644 --- a/meta-networking/recipes-daemons/opensaf/opensaf_5.19.03.bb +++ b/meta-networking/recipes-daemons/opensaf/opensaf_5.19.03.bb @@ -24,6 +24,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/releases/${BPN}-${PV}.tar.gz \ file://0001-configure-Disable-format-overflow-if-supported-by-gc.patch \ file://0001-src-Add-missing-header-limits.h-for-_POSIX_HOST_NAME.patch \ file://0001-immpbe_dump.cc-Use-sys-wait.h-instead-of-wait.h.patch \ + file://0001-Add-configure-time-check-for-gettid-API.patch \ " SRC_URI[md5sum] = "4dd1497ccd82d275735853bf0db5c510" SRC_URI[sha256sum] = "de42c8dd850990716ca494ca598165cc7a23b5b7f2bc21af5d71a3d971ddd595" From patchwork Sat Jul 27 18:59:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 169947 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1610620ilk; Sat, 27 Jul 2019 12:00:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJ3G5dbqiRqyqr1PHFXfZ2mApU1Qevx/WOOdFhf/I6UmW6qORkwsYRSjo0z0iSaXFswHjs X-Received: by 2002:aa7:9afc:: with SMTP id y28mr28088245pfp.252.1564254046638; Sat, 27 Jul 2019 12:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564254046; cv=none; d=google.com; s=arc-20160816; b=CPoRe3KCfbYX0OxJAxooMgs0X2x7itN5UzT0OJwL4trUyZF03cU0SceRX9/UDqkPuY XZWTLjtUjhTPFl7KdRQ+njTOhFdCHE/ysW3zfZOQ3Oz9GWXhnQ4HsBvXqcK0Ny04YmoY M8LAo/1ImOzlH0sI+rBrwgNhMGPXC2AmRMGnqTouM+Fr29cykCl/5qFD7w3TGcf3/0yy YoPYrYbmSBcFBAmjJVWT9b6sH2STs5cuS81NmmQJSEkegwTvuTWao1/+jbU4SDUht7XH G6h/DcsKGNhecwBJVMk/jyTDoJIyrWtPWw43QOuk+kolCgFw0+zdQzkRRDXXBr6HGOK0 KsJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=eAKsgvdH8RNsLA9HKWEN9hegkxMu6d9IOxhVfKh+dag=; b=qjMOcuqX+PajC55VN4OwdtmVfhNElx++6wnCsfb7JM7IIFyMYLHLTscl5Aw/rLFPDT 3LBM2FMDh1rAP6DeGAr3wU5PUUOExoahzJdZurLK8EhgSfGN46U7qtp6Uv2Z+H8mXYY5 RQzOcTpqWyVfg22dk4UGtx4fPBl6FyIisaQp/yS6ZsdzCshBN6/+37ofSZOy+VTmxY20 0ehgixl9ZhDHNXdhGDpt+u+wXRlh4eB4ZtkCzNMxZktNqE1JUBipr16OM87sDbLxt2lK FJLoQGcLJv+7RibBBcFHxeWxqn8CVzw/FObxmLjrq+u/OPQ1zLqr+o1fXiCrarNJtuhx 4gHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=bNKcQt2Y; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id 131si16651312pgf.597.2019.07.27.12.00.46; Sat, 27 Jul 2019 12:00:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=bNKcQt2Y; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id DD9017F220; Sat, 27 Jul 2019 19:00:31 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mail.openembedded.org (Postfix) with ESMTP id D8E497F20C for ; Sat, 27 Jul 2019 18:59:46 +0000 (UTC) Received: by mail-pl1-f171.google.com with SMTP id b7so25997748pls.6 for ; Sat, 27 Jul 2019 11:59:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5gLyBq5Cql3FCZBB6u9x4DXPrOiwlmJzJEKxZ46TSgI=; b=bNKcQt2YPJoUA3E9aM1HO38sMWnrmaLxP/vQBQEIDI5E05pZJF9Fe5SOpMVmzmDTA1 fAiLvLkHH25EnZufa6gMMWhupEIGv3yRPR99Bdg5mRt76HRUM8xUJkVYXtsVUI/jILia zJ1uEuYQpsmNQ1ntJlHQAzn0ItTSegc6loShRs4NW5oD/VdYG607nmXod9V9pA5yz+K5 EvXpXPt5eGFDHZ18EYAyPJOFiwE8d/QPfoIli6RzeKw/ZhAPzLZ2uT6S29DttniiTcxi UwyoLlIDSZwp67ZdYc1WJD8vKG10SPxYpSwf3QSVudYvmNfNC4ZpyJMa7GxGMsWwYsdN dPdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5gLyBq5Cql3FCZBB6u9x4DXPrOiwlmJzJEKxZ46TSgI=; b=XZxcA7Bs81HKG6GkAJybbV6G2cHvBVktvnt6OX96nvdw1/GP9sH4uRE74FdBTXqacL jczaz7/yieDC+1ddoI3L8MupGm5bhgnzi2a9ivedi9DcEh2DDVpirNfyANXXcwcmbUtn wnEpcyJd0MEjavljBgG34ovkN186o3KJSAWocfa8tcJDeEZn7bDwWQfBF/M/tCTshczG KMx42Jdn+tZamRKGuCY2QAKXSkUVdfciq/qDmVe110LDDRmHSIOBEan5BC8fnKfeYbFT B+fEbkKo8HdP4vLprKiBlrMjZG3iIpkMYmHlzrLgPiSPZyPOR4WB4W9ihCRBL/8SKl4g JUpw== X-Gm-Message-State: APjAAAWqSpvXsKEIy1W4Ot3oCqvevjTa9398rr+4oP7HENwtLjwOBZcX FPPjH7GqIGQWD4BIUUeUoVir0fFRnvk= X-Received: by 2002:a17:902:61:: with SMTP id 88mr97723650pla.50.1564253987571; Sat, 27 Jul 2019 11:59:47 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id k22sm60178333pfk.157.2019.07.27.11.59.47 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 27 Jul 2019 11:59:47 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Sat, 27 Jul 2019 11:59:37 -0700 Message-Id: <20190727185937.29832-4-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190727185937.29832-1-raj.khem@gmail.com> References: <20190727185937.29832-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-networking][PATCH 4/4] ypbind-mt: Fix build with glibc 2.30 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...-configure-time-check-for-gettid-API.patch | 45 +++++++++++++++++++ .../recipes-support/nis/ypbind-mt_2.6.bb | 1 + 2 files changed, 46 insertions(+) create mode 100644 meta-networking/recipes-support/nis/ypbind-mt/0001-Add-configure-time-check-for-gettid-API.patch -- 2.22.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-support/nis/ypbind-mt/0001-Add-configure-time-check-for-gettid-API.patch b/meta-networking/recipes-support/nis/ypbind-mt/0001-Add-configure-time-check-for-gettid-API.patch new file mode 100644 index 0000000000..9484d0b007 --- /dev/null +++ b/meta-networking/recipes-support/nis/ypbind-mt/0001-Add-configure-time-check-for-gettid-API.patch @@ -0,0 +1,45 @@ +From 25d5daf30aa2dc451ba528712f668036d8506054 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 27 Jul 2019 07:50:26 -0700 +Subject: [PATCH] Add configure time check for gettid API + +glibc 2.30 has added this syscalls wrapper + +Signed-off-by: Khem Raj +--- + configure.ac | 1 + + src/log_msg.c | 2 ++ + 2 files changed, 3 insertions(+) + +diff --git a/configure.ac b/configure.ac +index 9e32a4a..6d1067b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -33,6 +33,7 @@ if test -n "$TIRPC_LIBS"; then + AC_DEFINE(HAVE_TIRPC, 1, [Define to 1 if TIRPC is available]) + fi + ++AC_CHECK_FUNCS(gettid) + dnl The difficult part: could we reconfigure NSS or must we use DNS ? + AC_CHECK_FUNCS(__nss_configure_lookup) + if eval "test \"`echo '$ac_cv_func___nss_configure_lookup'`\" != yes"; then +diff --git a/src/log_msg.c b/src/log_msg.c +index 49f0905..37da311 100644 +--- a/src/log_msg.c ++++ b/src/log_msg.c +@@ -26,6 +26,7 @@ + #include "log_msg.h" + + #include ++#if !HAVE_GETTID + #ifdef __NR_gettid + static pid_t + gettid (void) +@@ -39,6 +40,7 @@ gettid (void) + return getpid (); + } + #endif ++#endif + + int debug_flag = 0; + int logfile_flag = 0; diff --git a/meta-networking/recipes-support/nis/ypbind-mt_2.6.bb b/meta-networking/recipes-support/nis/ypbind-mt_2.6.bb index 1a64e6c2e1..4f7f8aa3ef 100644 --- a/meta-networking/recipes-support/nis/ypbind-mt_2.6.bb +++ b/meta-networking/recipes-support/nis/ypbind-mt_2.6.bb @@ -32,6 +32,7 @@ SRC_URI = "https://github.com/thkukuk/ypbind-mt/releases/download/v${PV}/${BPN}- file://ypbind.init \ file://ypbind.service \ file://0001-dns_hosts-Fix-build-with-musl.patch \ + file://0001-Add-configure-time-check-for-gettid-API.patch \ " SRC_URI[md5sum] = "7cf89641fdc128d0919207e4b7caaf1d" SRC_URI[sha256sum] = "0696c0263c4fd48a4ff2ce6c109f05f37aab0f71646d81cb22c7c28591bf80eb"