Github messages for voidlinux
 help / color / mirror / Atom feed
From: Barbaross93 <Barbaross93@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: Package request: Wyrd
Date: Thu, 19 May 2022 17:51:11 +0200	[thread overview]
Message-ID: <20220519155111.tDIHS9Ny-SANG24A6KXFI655w7YFbI0qraui_yCFR5k@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-35401@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1963 bytes --]

New comment by Barbaross93 on void-packages repository

https://github.com/void-linux/void-packages/issues/35401#issuecomment-1131896310

Comment:
So, I ended up finding  a package that used `opam install` within it's template and applied that method to the wyrd package. The new template looks like this:
```
# Template file for 'wyrd'
pkgname=wyrd
version=1.5.3
revision=1
build_style=gnu-configure
#configure_args=""
#make_build_args=""
#make_install_args=""
hostmakedepends="ocaml camlp5 opam base-devel"
makedepends="ncurses-devel"
depends="remind"
conf_files="/etc/wyrdrc"
short_desc="Ncurses front-end to Remind"
maintainer="Barbaross <cullenrss@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://gitlab.com/wyrd-calendar/wyrd"
distfiles="${homepage}/-/archive/${version}/wyrd-${version}.tar.gz"
checksum=1d7936dd10b795a17bbce06ae14079eb36120f26fd7bd27b522f8df5196790e7

pre_configure() {
	./prep-devtree.sh
}

pre_build() {
	opam init -y --compiler=ocaml-system --disable-sandboxing
	eval $(opam env)
	opam install -y curses
}
```

The issue now however is that during `opam install -y curses`, an error occurs in which one of the dependencies fails to get installed and therefore breaks the command. See [here](https://github.com/ocaml/opam-repository/issues/19600). There seems to be debate on whether the fix should come from either Void or the maintainer of the ocaml dependency. A Void maintainer has made a firm stance against fixing the issue in `pkg-config` ([source](https://github.com/void-linux/void-packages/pull/32988)), so it seems the fix needs to come from opam, where an [issue has already been reported](https://github.com/ocaml/opam-repository/issues/19600).

So it seems I'm back to square one.  An [AUR package](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=ocaml-curses) managed to get it working through dune, but again, I'm unsure of how to approach this for Void's xbps packaging.

  parent reply	other threads:[~2022-05-19 15:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-04 16:16 [ISSUE] " wayover13
2022-05-19 14:38 ` Barbaross93
2022-05-19 15:51 ` Barbaross93 [this message]
2022-05-19 17:06 ` Barbaross93
2022-05-19 17:08 ` Barbaross93
2022-05-20 15:54 ` wayover13

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

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

  git send-email \
    --in-reply-to=20220519155111.tDIHS9Ny-SANG24A6KXFI655w7YFbI0qraui_yCFR5k@z \
    --to=barbaross93@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /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.
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 NNTP newsgroup(s).