From patchwork Tue Nov 7 13:47:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Howard X-Patchwork-Id: 742430 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4586C4167B for ; Tue, 7 Nov 2023 13:49:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234951AbjKGNtt (ORCPT ); Tue, 7 Nov 2023 08:49:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234922AbjKGNtb (ORCPT ); Tue, 7 Nov 2023 08:49:31 -0500 Received: from mail-wr1-x463.google.com (mail-wr1-x463.google.com [IPv6:2a00:1450:4864:20::463]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B8233878 for ; Tue, 7 Nov 2023 05:47:23 -0800 (PST) Received: by mail-wr1-x463.google.com with SMTP id ffacd0b85a97d-32d834ec222so2898856f8f.0 for ; Tue, 07 Nov 2023 05:47:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gadgetoid.com; s=google; t=1699364842; x=1699969642; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=8Mpl5ro6bpqJv9Ig+eJOuNrA5aYb9lgA2xY9vuT5fPs=; b=EmxO77eFP8MjIzZSWh7ytHS8JnWCCSOQeg+g6e3mDrDv9yFDRQaWIwPYSh+eu6875O pQerL5fn/kywMwEtkvrgQpO8igO0ynxNZHcwB0vVbB7k8RF9TXXGIYsdDHAZ9+GoOv7y a9YemBJNCwrREqTE5+9Pjn8eDbYRIFOELj3z7iyY88uqSgYZ9VGLjgm+3iIDrhIPjIVJ NgdgpjzlFVgyQOXlU5ADomqPSu/T1Uw4eBuVLMnps/lusjb0wvPuoFD5kQO6wTOiJUJi CrRWcU6/lz+qosFm2Hn9b1qfzWesXB7x375MD3HeH3rbthQcms7Ua1+sdPLN34onpSIK NWAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699364842; x=1699969642; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8Mpl5ro6bpqJv9Ig+eJOuNrA5aYb9lgA2xY9vuT5fPs=; b=qgjUBwH0miuhzy9fXAlVLVcGsSB7/yKxd5cUrQJv7UhBfkJepCeEvNc2xCjNuRawzV 3BtOYxfL0Jk8DE5Cu7tABClpjppHkc2Ne2aI2+aKDnz+Tz3x+wJk20wckMTcM8kf9ffx fkItxTXQ1D5wxwCljXpVE3zUoi1NdjHK2pCSeNZ7XR60Gc3qr/Wd21nIrz+m7d9xi9tI vrk3Sgwmg06vFtFGQP/1zQGCydsFvax9s2qB6FmDhAEBfaudtxKfaTzyhOvLbZ4P4UxA n47RF7W8g4RPB7msXaMSBroX1Vx70/e3vcLzI4s6UCWpynZTzyGVhKEEoYn5cEbdDskL BT6w== X-Gm-Message-State: AOJu0Yw/K1YjvHFG22cerHY/Na1cWKQEAX067/z3XocP2rsvO+Yd4fjO nFnnYmpQLj1+664VFuJw99C3HXZc1hzWJO3slJa71DqQOD7Hiw== X-Google-Smtp-Source: AGHT+IG2eCPMN5cGPxI/ExjRYboKjbGkAgFXgY1ppoJbxYrA3uDHMNcX5Cox0issLBE21GRNWyepddAjaNf5 X-Received: by 2002:a5d:4b90:0:b0:32d:9b3d:4f69 with SMTP id b16-20020a5d4b90000000b0032d9b3d4f69mr22709600wrt.64.1699364841535; Tue, 07 Nov 2023 05:47:21 -0800 (PST) Received: from pop-os.. (cpc91242-cmbg18-2-0-cust972.5-4.cable.virginm.net. [82.8.131.205]) by smtp-relay.gmail.com with ESMTPS id x8-20020a5d4908000000b0032db2e770f1sm66153wrq.66.2023.11.07.05.47.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 05:47:21 -0800 (PST) X-Relaying-Domain: gadgetoid.com From: Phil Howard To: Linus Walleij , Andy Shevchenko , Kent Gibson , Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org, Phil Howard Subject: [PATCH 1/2] bindings: python: fix library path for python test builds Date: Tue, 7 Nov 2023 13:47:17 +0000 Message-Id: <20231107134718.2913223-1-phil@gadgetoid.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Correct top_srcdir to top_builddir for out of tree builds. Signed-off-by: Phil Howard --- bindings/python/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am index 079ceb1..b2f2779 100644 --- a/bindings/python/Makefile.am +++ b/bindings/python/Makefile.am @@ -15,7 +15,7 @@ all-local: GPIOD_WITH_TESTS=$(BUILD_TESTS) \ $(PYTHON) setup.py build_ext --inplace \ --include-dirs=$(top_srcdir)/include/:$(top_srcdir)/tests/gpiosim/ \ - --library-dirs=$(top_builddir)/lib/.libs/:$(top_srcdir)/tests/gpiosim/.libs/ + --library-dirs=$(top_builddir)/lib/.libs/:$(top_builddir)/tests/gpiosim/.libs/ install-exec-local: GPIOD_WITH_TESTS= \ From patchwork Tue Nov 7 13:47:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Howard X-Patchwork-Id: 742117 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EAE5AC4332F for ; Tue, 7 Nov 2023 13:49:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234882AbjKGNts (ORCPT ); Tue, 7 Nov 2023 08:49:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234925AbjKGNtc (ORCPT ); Tue, 7 Nov 2023 08:49:32 -0500 Received: from mail-lj1-x261.google.com (mail-lj1-x261.google.com [IPv6:2a00:1450:4864:20::261]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75BDF1721 for ; Tue, 7 Nov 2023 05:47:24 -0800 (PST) Received: by mail-lj1-x261.google.com with SMTP id 38308e7fff4ca-2c6b30acacdso75513731fa.2 for ; Tue, 07 Nov 2023 05:47:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gadgetoid.com; s=google; t=1699364842; x=1699969642; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7dT8HNQOrxIm3pkuqT2pRA4XkMhzWg9k/6qHhenud2A=; b=CP4zAY5vEi8UJtnFyGECT4yr2osFXpOmKrhgUqdNiugNrK6TcDkceHV9xBIwcsxO0J ATDI8O6GU4Zdm6Zg7Wd2L60OkRywEagMT+/cTFQHpDpf2nyj8OtXAlYISY0yqZvqZb9U 7+0VCMPaveJ0pAUB+BFN8CNw9LAAuethP+8lmuGPzR0MiaZyf5g62p6GdkZMIzR+SL8f UiLV6ERNtIHtWHBup4qM17CIgKMu29uhN4CRwlLPHqG+ZzkEEpiHERkYQLO2NghudxvM OWn2oWJEasqF4lxU0K7iWw0itFCja0/vrVQS7UtgYWd6seBt2sFU0lgyy09kURO35x3K Q2Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699364842; x=1699969642; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7dT8HNQOrxIm3pkuqT2pRA4XkMhzWg9k/6qHhenud2A=; b=GPJ7vuIDpQ42aChJxnW2dn/296K3M6Kz+ceJ5wo+OZRHhHr7eYrpMtOPjDNAuqsMfL PZJu3nPn8XmT93NbOGl+ETZkMKmeAU0Mv3KewN9bZIx1jTvwH39tMdB+vcuVFqeHjQb2 v4ph7OVB4l20SAXZ6vmpAjKM8CQKmIUeIFnE2urwgwTib8r2AgiSGui4Z5MPuwL2glbl jLEmvVib6rZjurTql8qOz3vgfLfRcjXaGVXPR2imo/c9ujwdF0I8FU8Dmt8PbwycARKM aC2KDrwJ8UcGDEeHKs1qeoEvxuxhren9Xz3rNTtndA3WUFztA3YqA+b1CWxO90QzENjM a1RQ== X-Gm-Message-State: AOJu0YzWtLIePHRr+iWvDDrYUEriGd2ZhHtQUWzkz5PjOCXvSMtl7xjV iM+G7Oys9espjeVN7aK3lQQBqCLfckwMnEYTcKD3qOKgdDJWmA== X-Google-Smtp-Source: AGHT+IHyctoVVuPshnlL40GpsjVRt9xwgrMfJDFxe8gnyu8YqyTnkxXmo0l+2C4O3Urt+6wYYo4f6IKNE2dd X-Received: by 2002:a19:430d:0:b0:507:9d70:b297 with SMTP id q13-20020a19430d000000b005079d70b297mr22347999lfa.60.1699364842167; Tue, 07 Nov 2023 05:47:22 -0800 (PST) Received: from pop-os.. (cpc91242-cmbg18-2-0-cust972.5-4.cable.virginm.net. [82.8.131.205]) by smtp-relay.gmail.com with ESMTPS id x8-20020a5d4908000000b0032db2e770f1sm66153wrq.66.2023.11.07.05.47.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 05:47:22 -0800 (PST) X-Relaying-Domain: gadgetoid.com From: Phil Howard To: Linus Walleij , Andy Shevchenko , Kent Gibson , Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org, Phil Howard Subject: [libgpiod][PATCH 2/2] bindings: python: use absolute paths for python test builds Date: Tue, 7 Nov 2023 13:47:18 +0000 Message-Id: <20231107134718.2913223-2-phil@gadgetoid.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231107134718.2913223-1-phil@gadgetoid.com> References: <20231107134718.2913223-1-phil@gadgetoid.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Change the paths used to build test C extensions in place to their abs counterparts. Avoids issues locating files if the build behaviour changes. Signed-off-by: Phil Howard --- bindings/python/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am index b2f2779..95edfff 100644 --- a/bindings/python/Makefile.am +++ b/bindings/python/Makefile.am @@ -14,8 +14,8 @@ endif all-local: GPIOD_WITH_TESTS=$(BUILD_TESTS) \ $(PYTHON) setup.py build_ext --inplace \ - --include-dirs=$(top_srcdir)/include/:$(top_srcdir)/tests/gpiosim/ \ - --library-dirs=$(top_builddir)/lib/.libs/:$(top_builddir)/tests/gpiosim/.libs/ + --include-dirs=$(abs_top_srcdir)/include/:$(abs_top_srcdir)/tests/gpiosim/ \ + --library-dirs=$(abs_top_builddir)/lib/.libs/:$(abs_top_builddir)/tests/gpiosim/.libs/ install-exec-local: GPIOD_WITH_TESTS= \