From unknown Sat Jun 14 18:04:33 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#41263 <41263@debbugs.gnu.org> To: bug#41263 <41263@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add openctm Reply-To: bug#41263 <41263@debbugs.gnu.org> Date: Sun, 15 Jun 2025 01:04:33 +0000 retitle 41263 [PATCH] gnu: Add openctm reassign 41263 guix-patches submitter 41263 Ekaitz Zarraga severity 41263 normal tag 41263 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu May 14 11:01:50 2020 Received: (at submit) by debbugs.gnu.org; 14 May 2020 15:01:50 +0000 Received: from localhost ([127.0.0.1]:34429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZFMo-0001aP-RQ for submit@debbugs.gnu.org; Thu, 14 May 2020 11:01:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:33286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZFMn-0001ZR-No for submit@debbugs.gnu.org; Thu, 14 May 2020 11:01:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZFMn-0003i4-CI for guix-patches@gnu.org; Thu, 14 May 2020 11:01:45 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:24011) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZFMk-0006ey-P5 for guix-patches@gnu.org; Thu, 14 May 2020 11:01:44 -0400 Date: Thu, 14 May 2020 15:01:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail; t=1589468495; bh=VVgcnJsX8Nbpi0o+9WZmGa0xxtaA44FLCeMbzZqqKRM=; h=Date:To:From:Reply-To:Subject:From; b=h7h1rv0ti9wHzghHWz3z9OoBoIeaH37a1rvqAIf9gvJpuXJhpVK3bMD6XWeNUPOip B3GzK0rNZmgObI81eP74Eh4qu3qi3/SdQb4TfHe4T2A2qxoC61Cgjktv+eVO3PX957 4J7AS2V2LhU/VDVepqf82pd3GfRV3rVcVlOWqQpk= To: "guix-patches@gnu.org" From: Ekaitz Zarraga Subject: [PATCH] gnu: Add openctm Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch Received-SPF: pass client-ip=185.70.40.22; envelope-from=ekaitz@elenq.tech; helo=mail2.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/14 11:01:39 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ekaitz Zarraga Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Adding OpenCTM as discussed here: https://issues.guix.gnu.org/issue/40492 Regards, Ekaitz --- >From 8bbac5bccdb0b2fd5ffa8fe1e2dec25a6a359810 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Thu, 14 May 2020 16:55:32 +0200 Subject: [PATCH] gnu: Add openctm * gnu/packages/engineering.scm (openctm): New Variable. --- gnu/packages/engineering.scm | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index 172f8481eb..e3e346b1e9 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -17,6 +17,7 @@ ;;; Copyright =C2=A9 2020 Brice Waegeneire ;;; Copyright =C2=A9 2020 Vincent Legoll ;;; Copyright =C2=A9 2020 Marius Bakke +;;; Copyright =C2=A9 2020 Ekaitz Zarraga ;;; ;;; This file is part of GNU Guix. ;;; @@ -38,6 +39,7 @@ #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix git-download) + #:use-module (guix svn-download) #:use-module (guix monads) #:use-module (guix store) #:use-module (guix utils) @@ -2533,3 +2535,60 @@ without any changes. And programmers that are famil= iar with the magellan API can continue using it with a free library without the restrictions of the official SDK.") (license license:bsd-3))) + +(define-public openctm + (let ((revision 603)) + ; Previous versions don't compile, they need to link libGL and libGLU. + ; Fixed in this revision. + (package + (name "openctm") + (version (number->string revision)) + (source + (origin + (method svn-fetch) + (uri + (svn-reference + (url "https://svn.code.sf.net/p/openctm/code/trunk") + (revision revision))) + (sha256 + (base32 "01wb70m48xh5gwhv60a5brv4sxl0i0rh038w32cgnlxn5x86s9f1"= )))) + (build-system gnu-build-system) + (native-inputs + `(("mesa" ,mesa) + ("glu" ,glu) + ("glut" ,freeglut) + ("gtk" ,gtk+-2) + ("pkg-config" ,pkg-config))) + (arguments + `(#:tests? #f + #:phases + (modify-phases + %standard-phases + (replace + 'configure + (lambda* (#:key outputs #:allow-other-keys) + (rename-file "Makefile.linux" "Makefile") ; Use linux Make= file + (let ((out (assoc-ref outputs "out"))) + ; Create output directories + (mkdir-p (string-append out "/lib")) + (mkdir-p (string-append out "/include")) + (mkdir-p (string-append out "/bin")) + ; Fix rpath + (substitute* "tools/Makefile.linux" + (("-rpath,\\.") + (string-append "-rpath," out "/lib/")) + (("\\/usr\\/local") + out)) + ; Set right output + (substitute* "Makefile" + (("\\/usr\\/lib") + (string-append out "/lib")) + (("\\/usr\\/local") + out)))))))) + (synopsis "3D triangle mesh format and related tools and libraries") + (description "OpenCTM is a file format, a software library and a too= l set +for compression of 3D triangle meshes. The geometry is compressed to a +fraction of comparable file formats (3DS, STL, COLLADA...), and the format= is +accessible through a simple API") + (license license:zlib) + (home-page "http://openctm.sourceforge.net/")))) -- 2.26.1 From debbugs-submit-bounces@debbugs.gnu.org Fri May 15 06:12:52 2020 Received: (at 41263-done) by debbugs.gnu.org; 15 May 2020 10:12:53 +0000 Received: from localhost ([127.0.0.1]:35895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZXKm-0005TC-Jz for submit@debbugs.gnu.org; Fri, 15 May 2020 06:12:52 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZXKj-0005Sw-Rd for 41263-done@debbugs.gnu.org; Fri, 15 May 2020 06:12:51 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59097) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZXKe-0001FM-1e; Fri, 15 May 2020 06:12:44 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=41692 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jZXKb-0005r5-SN; Fri, 15 May 2020 06:12:42 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Ekaitz Zarraga Subject: Re: [bug#41263] [PATCH] gnu: Add openctm References: Date: Fri, 15 May 2020 12:12:40 +0200 In-Reply-To: (Ekaitz Zarraga's message of "Thu, 14 May 2020 15:01:32 +0000") Message-ID: <87eerltskn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41263-done Cc: 41263-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Ekaitz Zarraga skribis: >>>From 8bbac5bccdb0b2fd5ffa8fe1e2dec25a6a359810 Mon Sep 17 00:00:00 2001 > From: Ekaitz Zarraga > Date: Thu, 14 May 2020 16:55:32 +0200 > Subject: [PATCH] gnu: Add openctm > > * gnu/packages/engineering.scm (openctm): New Variable. Applied with the cosmetic changes below, mostly indentation (consider running ./etc/indent-code.el as mentioned in the manual). Thanks! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm index e3e346b1e9..190632436b 100644 --- a/gnu/packages/engineering.scm +++ b/gnu/packages/engineering.scm @@ -2538,53 +2538,52 @@ official SDK.") (define-public openctm (let ((revision 603)) - ; Previous versions don't compile, they need to link libGL and libGLU. - ; Fixed in this revision. + ;; Previous versions don't compile, they need to link libGL and libGLU. + ;; Fixed in this revision. (package (name "openctm") - (version (number->string revision)) + (version (string-append "1.0.3." (number->string revision))) (source - (origin - (method svn-fetch) - (uri - (svn-reference - (url "https://svn.code.sf.net/p/openctm/code/trunk") - (revision revision))) - (sha256 - (base32 "01wb70m48xh5gwhv60a5brv4sxl0i0rh038w32cgnlxn5x86s9f1")))) + (origin + (method svn-fetch) + (uri (svn-reference + (url "https://svn.code.sf.net/p/openctm/code/trunk") + (revision revision))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 "01wb70m48xh5gwhv60a5brv4sxl0i0rh038w32cgnlxn5x86s9f1")))) (build-system gnu-build-system) (native-inputs - `(("mesa" ,mesa) - ("glu" ,glu) - ("glut" ,freeglut) - ("gtk" ,gtk+-2) - ("pkg-config" ,pkg-config))) + `(("mesa" ,mesa) + ("glu" ,glu) + ("glut" ,freeglut) + ("gtk" ,gtk+-2) + ("pkg-config" ,pkg-config))) (arguments - `(#:tests? #f - #:phases - (modify-phases - %standard-phases - (replace - 'configure - (lambda* (#:key outputs #:allow-other-keys) - (rename-file "Makefile.linux" "Makefile") ; Use linux Makefile - (let ((out (assoc-ref outputs "out"))) - ; Create output directories - (mkdir-p (string-append out "/lib")) - (mkdir-p (string-append out "/include")) - (mkdir-p (string-append out "/bin")) - ; Fix rpath - (substitute* "tools/Makefile.linux" - (("-rpath,\\.") - (string-append "-rpath," out "/lib/")) - (("\\/usr\\/local") - out)) - ; Set right output - (substitute* "Makefile" - (("\\/usr\\/lib") - (string-append out "/lib")) - (("\\/usr\\/local") - out)))))))) + `(#:tests? #f ;no tests + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (rename-file "Makefile.linux" "Makefile") + (let ((out (assoc-ref outputs "out"))) + ;; Create output directories. + (mkdir-p (string-append out "/lib")) + (mkdir-p (string-append out "/include")) + (mkdir-p (string-append out "/bin")) + ;; Fix rpath. + (substitute* "tools/Makefile.linux" + (("-rpath,\\.") + (string-append "-rpath," out "/lib/")) + (("/usr/local") + out)) + ;; Set right output. + (substitute* "Makefile" + (("/usr/lib") + (string-append out "/lib")) + (("\\/usr\\/local") + out)) + #t)))))) (synopsis "3D triangle mesh format and related tools and libraries") (description "OpenCTM is a file format, a software library and a tool set for compression of 3D triangle meshes. The geometry is compressed to a --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 15 13:44:57 2020 Received: (at 41263-done) by debbugs.gnu.org; 15 May 2020 17:44:57 +0000 Received: from localhost ([127.0.0.1]:38678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZeOG-0002A3-VY for submit@debbugs.gnu.org; Fri, 15 May 2020 13:44:57 -0400 Received: from mail1.protonmail.ch ([185.70.40.18]:12272) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZeOF-00029q-UU for 41263-done@debbugs.gnu.org; Fri, 15 May 2020 13:44:56 -0400 Date: Fri, 15 May 2020 17:44:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail; t=1589564689; bh=eZdkak3EqLFKffVlZae6ULrSwsxsD/bcfsAFUHRqZRs=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=ukLT4Bc8kNjvOIVV18GUZGuyM+/DSJpXeyPK8Ouv70LdtuhdR3u4H185P1dBwO8kS P27Lh0YStOfdXULFVWGWG35Gxgz+nhe50gZAouAmZG0YQZRc9eggnPj/pgBc1XHfb7 8ExlLmfnedg77eIYWlKdnQJ/gYgXP9wESRYtjtHk= To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= From: Ekaitz Zarraga Subject: Re: [bug#41263] [PATCH] gnu: Add openctm Message-ID: In-Reply-To: <87eerltskn.fsf@gnu.org> References: <87eerltskn.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.protonmail.ch X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 41263-done Cc: "41263-done@debbugs.gnu.org" <41263-done@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ekaitz Zarraga Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi, =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Friday, May 15, 2020 12:12 PM, Ludovic Court=C3=A8s wrote= : > Hi, > > Ekaitz Zarraga ekaitz@elenq.tech skribis: > > > > From 8bbac5bccdb0b2fd5ffa8fe1e2dec25a6a359810 Mon Sep 17 00:00:00 200= 1 > > > From: Ekaitz Zarraga ekaitz@elenq.tech > > > Date: Thu, 14 May 2020 16:55:32 +0200 > > > Subject: [PATCH] gnu: Add openctm > > > > * gnu/packages/engineering.scm (openctm): New Variable. > > > > Applied with the cosmetic changes below, mostly indentation (consider > running ./etc/indent-code.el as mentioned in the manual). > > Thanks! > > Ludo=E2=80=99. Thanks for the help Ludo (and the motivation!). I was wondering about if it's worth to separate the package in multiple out= puts like: GUI for openctm files, openctm library and so on, as described h= ere: https://guix.gnu.org/manual/en/html_node/Packages-with-Multiple-Outputs.htm= l#Packages-with-Multiple-Outputs It has like a `tools` part and a `lib` part I'd say. Does it make sense for= this package? It would avoid using GTK in the library part I think. I never did this before but looks like an option to reduce the package size= (total: 830.2 MiB reported by guix size O_O). Opinions? Thanks! From unknown Sat Jun 14 18:04:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 13 Jun 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator