{"id":3781,"url":"https://patchwork.libcamera.org/api/patches/3781/?format=json","web_url":"https://patchwork.libcamera.org/patch/3781/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20200512141101.246262-1-tfiga@chromium.org>","date":"2020-05-12T14:11:01","name":"[libcamera-devel] libcamera: Skip IPA signing if there is no IPA built","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"8aa594040ed38186e15b6da2284990879e6060ee","submitter":{"id":9,"url":"https://patchwork.libcamera.org/api/people/9/?format=json","name":"Tomasz Figa","email":"tfiga@chromium.org"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/3781/mbox/","series":[{"id":899,"url":"https://patchwork.libcamera.org/api/series/899/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=899","date":"2020-05-12T14:11:01","name":"[libcamera-devel] libcamera: Skip IPA signing if there is no IPA built","version":1,"mbox":"https://patchwork.libcamera.org/series/899/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/3781/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/3781/checks/","tags":{},"headers":{"Return-Path":"<tfiga@chromium.org>","Received":["from mail-wm1-x342.google.com (mail-wm1-x342.google.com\n\t[IPv6:2a00:1450:4864:20::342])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 7BC58603E0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 12 May 2020 16:11:05 +0200 (CEST)","by mail-wm1-x342.google.com with SMTP id w19so8741837wmc.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 12 May 2020 07:11:05 -0700 (PDT)","from tfiga.c.googlers.com.com\n\t(205.215.190.35.bc.googleusercontent.com. [35.190.215.205])\n\tby smtp.gmail.com with ESMTPSA id\n\tl1sm23582621wrc.24.2020.05.12.07.11.03\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 12 May 2020 07:11:04 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=chromium.org\n\theader.i=@chromium.org header.b=\"hmVa8uHY\"; \n\tdkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; h=from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=5qlCVoDjaglrtbiZRk5gRdY8NcU0QuRZjn9tqgBxY2A=;\n\tb=hmVa8uHY/r3Jg1Yd6YxwDWFLO4q8vrfWCB6eYv0uOh3X04TXXvlQZSQn4GohY4dc15\n\tW8KrdNJCcLl7mDyoPn8/2C8+Apl2Bu4Bq+MEb3U8+jPa76U5RPxjKZP0aKCfL5suRfP6\n\t3SBT1iklBzkTZxsVmEz7QtLSKV01ceDRybSC8=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=5qlCVoDjaglrtbiZRk5gRdY8NcU0QuRZjn9tqgBxY2A=;\n\tb=P3pDsP730EDA4qrjnzZMuZAp+xsElV+LaSD+BLbAzBuIv1PNvOFoa1z4/RyE/D/h6r\n\tn0LN9uXF2c5x49z81a+rpuEi8mqGe/6RYJeKbPoaMlMw0V78WEfg58HT5+yM6yG0I5FI\n\tiL+sakOlJNo6rzONTwZOx/5VII/G6aGG+kNsdqRnR7A6qHUxebcniik2yiIZxpqi5Ii5\n\tkIdPRhe5dYi5SDZnTI5BphAMcfBYrwPJBi52ZsCZperxyalBj+HqQbxkBgjXjJFsUq63\n\tkiD6c+UACOr5sAQJQ384vyKNbWa/3gVcFp3bBpEAOgnmXpAuSaRG5vjKUAxH6KWtHstU\n\t5UZw==","X-Gm-Message-State":"AGi0PuaN6E9UMlrwLW3eie46mcjjcuyoFaLOSDFeLCSCt5NjVyGvGi75\n\t/hN7IX8sqad9UT1yHKwx7le6bzWOESkbcg==","X-Google-Smtp-Source":"APiQypJqCdTrQlN7BVERnKMVII30FPLelZxG6Ft9lYUHhkk/glIG4ZsXimi05JZUtxqlp08AWpjiqQ==","X-Received":"by 2002:a05:600c:201:: with SMTP id\n\t1mr22505256wmi.155.1589292664783; \n\tTue, 12 May 2020 07:11:04 -0700 (PDT)","From":"Tomasz Figa <tfiga@chromium.org>","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","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH] libcamera: Skip IPA signing if there is\n\tno IPA built","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Tue, 12 May 2020 14:11:06 -0000"},"content":"Fix a build error when there is no IPA in the target path.\n\nRegenerating IPA modules signatures\nCan't open /build/soraka/tmp/portage/media-libs/libcamera-9999/image//usr/lib64/libcamera/*.so.sign for writing, No such file or directory\n139813074323264: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\no.sign','wb')\n139813074323264:error:2006D080:BIO routines:BIO_new_file:no such file:crypto/bio/bss_file.c:76:\nFAILED: meson-install\n/usr/lib64/python-exec/python3.6/meson install --no-rebuild\nninja: build stopped: subcommand failed.\n\nSigned-off-by: Tomasz Figa <tfiga@chromium.org>\nChange-Id: I71c664fa5c8fc9a252634cb9569abe21eef9bea1\n---\n src/ipa/ipa-sign-install.sh | 4 ++++\n 1 file changed, 4 insertions(+)","diff":"diff --git a/src/ipa/ipa-sign-install.sh b/src/ipa/ipa-sign-install.sh\nindex 5317a8a..f101970 100755\n--- a/src/ipa/ipa-sign-install.sh\n+++ b/src/ipa/ipa-sign-install.sh\n@@ -13,6 +13,10 @@ ipa_sign=$(dirname \"$0\")/ipa-sign.sh\n \n echo \"Regenerating IPA modules signatures\"\n \n+if [[ ! -e \"${MESON_INSTALL_DESTDIR_PREFIX}/${libdir}\" ]]; then\n+\texit 0\n+fi\n+\n for module in \"${MESON_INSTALL_DESTDIR_PREFIX}/${libdir}\"/*.so ; do\n \t\"${ipa_sign}\" \"${key}\" \"${module}\" \"${module}.sign\"\n done\n","prefixes":["libcamera-devel"]}