unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Sarah Morgensen <iskarian@mgsn.dev>
To: Eric Brown <ecbrown@ericcbrown.com>
Cc: 32691@debbugs.gnu.org
Subject: bug#32691: OpenMolcas
Date: Fri, 24 Sep 2021 18:15:52 -0700	[thread overview]
Message-ID: <86sfxtwj3r.fsf@mgsn.dev> (raw)
In-Reply-To: <F6F1236B-84AF-4C04-9FAE-D479F5D8F078@ericcbrown.com> (Eric Brown's message of "Mon, 13 Sep 2021 07:53:43 -0500 (1 week, 4 days, 12 hours ago)")

Hi Eric,

Eric Brown <ecbrown@ericcbrown.com> writes:

>> On Sep 13, 2021, at 3:01 AM, Sarah Morgensen <iskarian@mgsn.dev> wrote:
>> 
>> 
>> Thanks for all your work on this package.  Did you ever make further
>> progress on this?  Are you still interested in working on getting
>> OpenMolcas in Guix?
>> 
>> —
>> Sarah
>
> Hi Sarah,
>
> I have made a new port from scratch, which I am testing currently.  It can be found here:
>
> (channel
>  (name 'ecbrown-guix)
>  (url "https://ericcbrown.com/ecbrown/ecbrown-guix.git")
>  (introduction
>   (make-channel-introduction
>    "72e02daa4cf59a5e591387e299729f2509128b58"
>    (openpgp-fingerprint
>     "AA5F 523D FD6D 0478 8505 6A7D C1D5 F8F0 85BF 4CF3"))))
>
> I would appreciate any help that you might provide!
>
> Best regards,
> Eric

I'm glad to see that you've continued to work on this!

I took a look at your definition and the package it builds, and I'll
start with two things:

Syntactically, you can do something like this in your extra phase:

  (let* ((out (assoc-ref outputs "out"))
         (share (string-append out "/share/openmolcas")))

  (mkdir-p share)
  (for-each
    (lambda (file)
      (rename-file file (string-append share "/" file)))
    '("LICENSE" "data" ...))

and to symlink (like you allude to in the phase name):

  (symlink target name)

Looking at the actual package, it looks like there are several ".exe"
executables (which are actually ELF and runnable on Linux?) along with
matching ".prgm" files which (it looks like) are required to load and
run the executables.  Are these part of OpenMolcas itself, or are they
examples or something?  It would be best if we can avoid putting
architecture-specific files (that is, executables) in "/share".

Finally, rather than propagating python inputs, we can probably use the
'wrap' phase from python-build-system.  Adding that is a bit more
complex, but you can look at the 'nncp' package for an example of how
this is done (it uses gnu-build-system, but takes phases from
go-build-system).

Okay, that was three things, but what can you do? :)

--
Sarah




  reply	other threads:[~2021-09-25  1:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-11  4:23 bug#32691: OpenMolcas Eric Brown
2018-09-14  9:27 ` Ludovic Courtès
2018-09-14 14:55   ` Eric Brown
2018-09-17 20:58     ` Ludovic Courtès
2018-09-20  0:13       ` Eric Brown
2018-09-21 11:22         ` Ludovic Courtès
2021-09-13  8:01         ` Sarah Morgensen
2021-09-13 12:53           ` Eric Brown
2021-09-25  1:15             ` Sarah Morgensen [this message]
2023-08-27  8:53 ` bug#32691: Progress Andreas Enge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86sfxtwj3r.fsf@mgsn.dev \
    --to=iskarian@mgsn.dev \
    --cc=32691@debbugs.gnu.org \
    --cc=ecbrown@ericcbrown.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).