From patchwork Tue May 12 14:11:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 3781 Return-Path: Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7BC58603E0 for ; Tue, 12 May 2020 16:11:05 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="hmVa8uHY"; dkim-atps=neutral Received: by mail-wm1-x342.google.com with SMTP id w19so8741837wmc.1 for ; Tue, 12 May 2020 07:11:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5qlCVoDjaglrtbiZRk5gRdY8NcU0QuRZjn9tqgBxY2A=; b=hmVa8uHY/r3Jg1Yd6YxwDWFLO4q8vrfWCB6eYv0uOh3X04TXXvlQZSQn4GohY4dc15 W8KrdNJCcLl7mDyoPn8/2C8+Apl2Bu4Bq+MEb3U8+jPa76U5RPxjKZP0aKCfL5suRfP6 3SBT1iklBzkTZxsVmEz7QtLSKV01ceDRybSC8= 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=5qlCVoDjaglrtbiZRk5gRdY8NcU0QuRZjn9tqgBxY2A=; b=P3pDsP730EDA4qrjnzZMuZAp+xsElV+LaSD+BLbAzBuIv1PNvOFoa1z4/RyE/D/h6r n0LN9uXF2c5x49z81a+rpuEi8mqGe/6RYJeKbPoaMlMw0V78WEfg58HT5+yM6yG0I5FI iL+sakOlJNo6rzONTwZOx/5VII/G6aGG+kNsdqRnR7A6qHUxebcniik2yiIZxpqi5Ii5 kIdPRhe5dYi5SDZnTI5BphAMcfBYrwPJBi52ZsCZperxyalBj+HqQbxkBgjXjJFsUq63 kiD6c+UACOr5sAQJQ384vyKNbWa/3gVcFp3bBpEAOgnmXpAuSaRG5vjKUAxH6KWtHstU 5UZw== X-Gm-Message-State: AGi0PuaN6E9UMlrwLW3eie46mcjjcuyoFaLOSDFeLCSCt5NjVyGvGi75 /hN7IX8sqad9UT1yHKwx7le6bzWOESkbcg== X-Google-Smtp-Source: APiQypJqCdTrQlN7BVERnKMVII30FPLelZxG6Ft9lYUHhkk/glIG4ZsXimi05JZUtxqlp08AWpjiqQ== X-Received: by 2002:a05:600c:201:: with SMTP id 1mr22505256wmi.155.1589292664783; Tue, 12 May 2020 07:11:04 -0700 (PDT) Received: from tfiga.c.googlers.com.com (205.215.190.35.bc.googleusercontent.com. [35.190.215.205]) by smtp.gmail.com with ESMTPSA id l1sm23582621wrc.24.2020.05.12.07.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2020 07:11:04 -0700 (PDT) From: Tomasz Figa To: libcamera-devel@lists.libcamera.org Date: Tue, 12 May 2020 14:11:01 +0000 Message-Id: <20200512141101.246262-1-tfiga@chromium.org> X-Mailer: git-send-email 2.26.2.645.ge9eca65c58-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: Skip IPA signing if there is no IPA built X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2020 14:11:06 -0000 Fix a build error when there is no IPA in the target path. Regenerating IPA modules signatures Can't open /build/soraka/tmp/portage/media-libs/libcamera-9999/image//usr/lib64/libcamera/*.so.sign for writing, No such file or directory 139813074323264:error:02001002:system library:fopen:No such file or directory:crypto/bio/bss_file.c:69:fopen('/build/soraka/tmp/portage/media-libs/libcamera-9999/image//usr/lib64/libcamera/*.s o.sign','wb') 139813074323264:error:2006D080:BIO routines:BIO_new_file:no such file:crypto/bio/bss_file.c:76: FAILED: meson-install /usr/lib64/python-exec/python3.6/meson install --no-rebuild ninja: build stopped: subcommand failed. Signed-off-by: Tomasz Figa Change-Id: I71c664fa5c8fc9a252634cb9569abe21eef9bea1 --- src/ipa/ipa-sign-install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ipa/ipa-sign-install.sh b/src/ipa/ipa-sign-install.sh index 5317a8a..f101970 100755 --- a/src/ipa/ipa-sign-install.sh +++ b/src/ipa/ipa-sign-install.sh @@ -13,6 +13,10 @@ ipa_sign=$(dirname "$0")/ipa-sign.sh echo "Regenerating IPA modules signatures" +if [[ ! -e "${MESON_INSTALL_DESTDIR_PREFIX}/${libdir}" ]]; then + exit 0 +fi + for module in "${MESON_INSTALL_DESTDIR_PREFIX}/${libdir}"/*.so ; do "${ipa_sign}" "${key}" "${module}" "${module}.sign" done