From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gvBTCrKG8F8sGAAA0tVLHw (envelope-from ) for ; Sat, 02 Jan 2021 14:44:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8AyABbKG8F8fbgAAbx9fmQ (envelope-from ) for ; Sat, 02 Jan 2021 14:44:02 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D0AFD94043A for ; Sat, 2 Jan 2021 14:44:01 +0000 (UTC) Received: from localhost ([::1]:43660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kvi8O-0005cI-Nn for larch@yhetil.org; Sat, 02 Jan 2021 09:44:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kvi8E-0005aX-CY for guix-devel@gnu.org; Sat, 02 Jan 2021 09:43:50 -0500 Received: from mail-il1-x12c.google.com ([2607:f8b0:4864:20::12c]:33297) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kvi8C-0004WU-7k for guix-devel@gnu.org; Sat, 02 Jan 2021 09:43:50 -0500 Received: by mail-il1-x12c.google.com with SMTP id n9so21306373ili.0 for ; Sat, 02 Jan 2021 06:43:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=/loj5pqAPEi5o9fSjqQYRg+mtcqzJBPWpMVoe19+3lU=; b=EJesdtTTbuCefiS/ZGkWpyijgad8JQ8J7zuHErlPKBisvpeXXdfgtqlM0evh3AVRQ2 WGIuIy0xKcZF5eDlcGNTWpwucsap6nk1hPx6//QTfMv5M4DaADLsS5gFDOuiszQP0k2o 7sL8ZQ3kWQ+1uFBFDAi/BNuZHHqStNhbIqFpJcStGSwL0eJg0jzJtgz1qxE62CuQ4ndM XoznRPHQFi4VWAScNHjo2/sp0RPm6lD+UPnbUTHBoBZ52Em9JqeDtyDb5DcdycI0y3Zf 9bhY7es9oIiIpz/0ldrF/mnTQIjpaCreScv5VcB5WGGL0tkG7wwsYLxhexUvmWEr8V+B FZJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=/loj5pqAPEi5o9fSjqQYRg+mtcqzJBPWpMVoe19+3lU=; b=quQ31shPfNkGtFe0SfTcPKabIJx3uEU64PNyapOCsgV0QTJcsgLsb2Uv3cSlA+ByDQ DjfJATtUj3oi8LZtA0VHPcG0J9DK5vdQnaWyIL2nhZgzGSIIaCW0k6ep85PxS9VCwW8G QH9IkQBFzyVRtlluv2pCPmcItLQZgzoWfJGFm+S4vQ0TJHZFJscc1iWraREP92ywWPMN 15Wu5SLNO+yHkThEmrpTafAvCUlZRstpNzsBolqGCj9z8f+0IwrPy48Ljh3htsV1FSVN NAAHUU/2dN8CK9OTla0fB79LYXymj/nR1FxjaFPWDy1sJtdSZQFMvvGrM1LySJRXXlLn Qu+Q== X-Gm-Message-State: AOAM532tEtBFQesRIIOZLKDBK300DFh9bEe2w1aqhb64hHlOJgDrtxJM z6Z5OWpqFYmKKuoAKef18/8jUbcckcWneLkLsaoffcRahLI= X-Google-Smtp-Source: ABdhPJxoQu8YcqK+cPhEw1DEvnQLr8DSrNApT8+M6nYHVLXlFZ6OErvQTEcPYxH0S0GQ0dHsh0jgcZevU/7I9YYR2jg= X-Received: by 2002:a92:410b:: with SMTP id o11mr67270045ila.306.1609598626941; Sat, 02 Jan 2021 06:43:46 -0800 (PST) MIME-Version: 1.0 References: <424245f9f30e2418942a8eec27019864294550cd.camel@student.tugraz.at> In-Reply-To: From: Rovanion Luckey Date: Sat, 2 Jan 2021 15:43:20 +0100 Message-ID: Subject: Re: [RFC] Package of Nomacs To: guix-devel@gnu.org, Leo Prikler Content-Type: multipart/alternative; boundary="00000000000063ce6405b7ebe217" Received-SPF: pass client-ip=2607:f8b0:4864:20::12c; envelope-from=rovanion.luckey@gmail.com; helo=mail-il1-x12c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.03 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=EJesdtTT; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: D0AFD94043A X-Spam-Score: -3.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: EWMjZFoap8xn --00000000000063ce6405b7ebe217 Content-Type: text/plain; charset="UTF-8" I can get the package to build using the following steps: git clone https://github.com/nomacs/nomacs.git cd nomacs mkdir build cd build guix environment --ad-hoc cmake make gcc libraw exiv2 libtiff opencv python quazip qtbase qtsvg qttools pkg-config git cmake "../ImageLounge" "-DCMAKE_BUILD_TYPE=RelWithDebInfo" "-DCMAKE_INSTALL_PREFIX=/gnu/store/fiwxb6mlwhvnr49f9ydbhbam\ wp4bzb8b-nomacs-3.16.224" "-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE" "-DCMAKE_INSTALL_RPA\ TH=/gnu/store/fiwxb6mlwhvnr49f9ydbhbamwp4bzb8b-nomacs-3.16.224/lib" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DENABLE_TRANSLATIO\ NS=true" "-DUSE_SYSTEM_QUAZIP=true" "-DENABLE_OPENCV=true" make -j 8 ./nomacs For some reason that is different than when `guix package --from-file` runs. Den fre 1 jan. 2021 kl 23:02 skrev Rovanion Luckey < rovanion.luckey@gmail.com>: > Hi Leo and thank you for explaining. And hi again guix-devel. > > I've now rewritten the file according to your comments except that its > still its own file/module, something I'll fix later. > > Now I'm stuck trying to figure out a build error after going from the > tarball release through url-fetch to the non-recursive git-clone download. > CMake finds the package OpenCV when it runs, removing OpenCV from the > package inputs results in an error from CMake (as expected). But the build > fails during the build phase with the following error: > > > make[2]: *** No rule to make target 'opencv_core-NOTFOUND', needed by > 'libnomacsCore.so.3.16.0'. Stop. > > I've not found any relevant mentions of opencv_core in the source code. I > tried adding monkeying about with the CMakeLists a little to no avail. Also > looked at what Debian does to their package but found nothing that I > thought to be relevant: > https://sources.debian.org/src/nomacs/3.12.0+dfsg-3/debian/ > > I've attached the new package source. > --00000000000063ce6405b7ebe217 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I can get the package to build using the following st= eps:

cd nomacs<= /div>
mkdir build
cd build
guix environment --ad-ho= c cmake make gcc libraw exiv2 libtiff opencv python quazip qtbase qtsvg qtt= ools pkg-config git
cmake "../ImageLounge" "-DCMAK= E_BUILD_TYPE=3DRelWithDebInfo" "-DCMAKE_INSTALL_PREFIX=3D/gnu/sto= re/fiwxb6mlwhvnr49f9ydbhbam\
wp4bzb8b-nomacs-3.16.224" "-DCMAK= E_INSTALL_LIBDIR=3Dlib" "-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=3DTR= UE" "-DCMAKE_INSTALL_RPA\
TH=3D/gnu/store/fiwxb6mlwhvnr49f9ydb= hbamwp4bzb8b-nomacs-3.16.224/lib" "-DCMAKE_VERBOSE_MAKEFILE=3DON&= quot; "-DENABLE_TRANSLATIO\
NS=3Dtrue" "-DUSE_SYSTEM_QUAZ= IP=3Dtrue" "-DENABLE_OPENCV=3Dtrue"
make -j 8
./nomacs

For some reason that is differe= nt than when `guix package --from-file` runs.

Den fre 1 jan. 2021 = kl 23:02 skrev Rovanion Luckey <rovanion.luckey@gmail.com>:
Hi Leo and t= hank you for explaining. And hi again guix-devel.

<= div>I've now rewritten the file according to your comments except that = its still its own file/module, something I'll fix later.

Now I'm stuck trying to figure out a build error after = going from the tarball release through url-fetch to the non-recursive git-c= lone download. CMake finds the package OpenCV when it runs, removing OpenCV= from the package inputs results in an error from CMake (as expected). But = the build fails during the build phase with the following error:
=
> make[2]: *** No rule to make target 'ope= ncv_core-NOTFOUND', needed by 'libnomacsCore.so.3.16.0'.=C2=A0 = Stop.

I've not found any relevant mentions of = opencv_core in the source code. I tried adding monkeying about with the CMa= keLists a little to no avail. Also looked at what Debian does to their pack= age but found nothing that I thought to be relevant: https:/= /sources.debian.org/src/nomacs/3.12.0+dfsg-3/debian/

= I've attached the new package source.
--00000000000063ce6405b7ebe217--