From patchwork Mon Mar 29 22:35:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksander Morgado X-Patchwork-Id: 1459828 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aleksander-es.20150623.gappssmtp.com header.i=@aleksander-es.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=TONcnVzo; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4F8S932MWQz9sVm for ; Tue, 30 Mar 2021 09:36:05 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 0AB5740397; Mon, 29 Mar 2021 22:36:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ncuOSU3Hqchw; Mon, 29 Mar 2021 22:36:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 226914038E; Mon, 29 Mar 2021 22:36:01 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 533FC1BF958 for ; Mon, 29 Mar 2021 22:35:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 428E24038E for ; Mon, 29 Mar 2021 22:35:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jz5ceDyAhXjR for ; Mon, 29 Mar 2021 22:35:57 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by smtp4.osuosl.org (Postfix) with ESMTPS id 87F184038D for ; Mon, 29 Mar 2021 22:35:56 +0000 (UTC) Received: by mail-wr1-x432.google.com with SMTP id b9so14312265wrt.8 for ; Mon, 29 Mar 2021 15:35:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aleksander-es.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=m5JTwRQWTEH+83GDcoyidg8LFHKF5praLTrDtpPns3g=; b=TONcnVzosIJltTfoBt/smhPHfoB0J2jCdvgxqnDtcqbaQlco2ArJG14v2YTw4BDmsj MS0mwXjnS2JofyFXkE5she894T8AN5kDR2sadRLXSSbGzgTCkvR90PFYQ+XJf6O/373+ Thq/6+proyhgG8L5gf7hR1P1hd+HWtPzDFcRmshm1plVdo9491O1cj1IKwuBQ4YN9SRa uYiOYHilUPN5v/K3ydWW+AbwcTcHdHJGkhmQt7W6cvX+0OXCees5S/OztOlmGwuMdWet zPgG3egI21NZMLJZh3jbitWWtR99n+Swef4zpoBdbZM41H+AHmFExA7l4R6OgVwL6Qbd wlPQ== 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=m5JTwRQWTEH+83GDcoyidg8LFHKF5praLTrDtpPns3g=; b=ce9pct4I2ftOVqJqblsZDQmdvL6LD8GvUXAMuewVApYhERLgoojfn+z+aabf+YtW2P 5qHW9tY3ygibicumGmKlQPqw6FHlPicH9So9HnGFomZ0DgvpEKy26KChaYEoAfFAVDLk 3yH6YXRGPbVq7cB+xGZZ2Y8TeCmH910hAQzBwmW1jjZOV9UAoBQG/2EelLgtwP8y7oiR DtGa1T+VoRJAhiAL4o9fIbzgbDA5ynC/v5clJlEBz11ZwybRfiQjJI6v5ikJvJXfCZdt uSAm1BzWDDmfys0fPoM400Kmp9hrq5OFUWe6GDsbYEo5H085dOQqSS7qlEJRiajgU5uR 6Y+w== X-Gm-Message-State: AOAM530nOmjzJ92xo4yuV8ouD7PoMgs04e6IkYbOzoXN/fPyH1zDyDaF LplgMf+2+exx6lh1ozouPhIVAO8JgscF9g== X-Google-Smtp-Source: ABdhPJyTL1VufLFKpnUdFW9tD8yhUV/OOY+0rPoI2d9/gDiVccn27PVFTWxglQbw2EtPM24smrVSXA== X-Received: by 2002:a05:6000:1803:: with SMTP id m3mr31300424wrh.50.1617057355181; Mon, 29 Mar 2021 15:35:55 -0700 (PDT) Received: from localhost.localdomain (52.red-83-38-21.dynamicip.rima-tde.net. [83.38.21.52]) by smtp.gmail.com with ESMTPSA id l21sm797494wmg.41.2021.03.29.15.35.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 15:35:54 -0700 (PDT) From: Aleksander Morgado To: buildroot@buildroot.org, fontaine.fabrice@gmail.com, matthew.weber@rockwellcollins.com Date: Tue, 30 Mar 2021 00:35:42 +0200 Message-Id: <20210329223542.13907-1-aleksander@aleksander.es> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/libqmi: fix build when libc doesn't define ARPHRD_RAWIP X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aleksander Morgado Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The ARPHRD_RAWIP symbol is used in the rmnet backend in the link management support now included in libqmi. If libc doesn't provide this symbol yet, define it ourselves. The symbol will only be used if rmnet is enabled in the kernel anyway. This patch will be included in the next libqmi 1.28.4. Signed-off-by: Aleksander Morgado --- ...-when-ARPHRD_RAWIP-isn-t-defined-in-.patch | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/libqmi/0001-libqmi-fix-build-when-ARPHRD_RAWIP-isn-t-defined-in-.patch diff --git a/package/libqmi/0001-libqmi-fix-build-when-ARPHRD_RAWIP-isn-t-defined-in-.patch b/package/libqmi/0001-libqmi-fix-build-when-ARPHRD_RAWIP-isn-t-defined-in-.patch new file mode 100644 index 0000000000..fb438676a9 --- /dev/null +++ b/package/libqmi/0001-libqmi-fix-build-when-ARPHRD_RAWIP-isn-t-defined-in-.patch @@ -0,0 +1,39 @@ +From 6745e19b07006611eb392e5b33095c63ee41fe92 Mon Sep 17 00:00:00 2001 +From: Aleksander Morgado +Date: Tue, 30 Mar 2021 00:13:45 +0200 +Subject: [PATCH] libqmi: fix build when ARPHRD_RAWIP isn't defined in libc + +The kernel may be new enough to have rmnet support, but it could be +that libc doesn't have ARPHRD_RAWIP defined yet; if so, just define it +ourselves. + +Fixes http://autobuild.buildroot.org/results/c8853b7161bd85d46c1282c6c097e7ef4042ae68 + +Signed-off-by: Aleksander Morgado +--- + src/libqmi-glib/qmi-net-port-manager-rmnet.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/src/libqmi-glib/qmi-net-port-manager-rmnet.c b/src/libqmi-glib/qmi-net-port-manager-rmnet.c +index bd6727e3..82935bb8 100644 +--- a/src/libqmi-glib/qmi-net-port-manager-rmnet.c ++++ b/src/libqmi-glib/qmi-net-port-manager-rmnet.c +@@ -24,8 +24,15 @@ + #include + #include + #include ++ + #include + #include ++ ++/* The if_arp.h from libc may not have this symbol yet */ ++#if !defined ARPHRD_RAWIP ++#define ARPHRD_RAWIP 519 ++#endif ++ + #include + #include + #include +-- +2.30.1 +