Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Package request: Wyrd
@ 2022-02-04 16:16 wayover13
  2022-05-19 14:38 ` Barbaross93
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: wayover13 @ 2022-02-04 16:16 UTC (permalink / raw)
  To: ml

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

New issue by wayover13 on void-packages repository

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

Description:
Wyrd is a text-based front-end to Remind, a sophisticated calendar and alarm program. Looks like Wyrd used to be in Void repositories but seems to have been removed, possibly owing to the project being moribund. Wyrd now has a new maintainer who has released a new version, 1.5.0--see https://gitlab.com/wyrd-calendar/wyrd. Requesting that Wyrd be re-added to Void repos.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Package request: Wyrd
  2022-02-04 16:16 [ISSUE] Package request: Wyrd wayover13
@ 2022-05-19 14:38 ` Barbaross93
  2022-05-19 15:51 ` Barbaross93
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Barbaross93 @ 2022-05-19 14:38 UTC (permalink / raw)
  To: ml

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

New comment by Barbaross93 on void-packages repository

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

Comment:
I started on putting a template file together:
```
# 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 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
}
```
The problem I'm running into now is that `wyrd` now depends on [`ocaml-curses`](https://github.com/mbacarella/curses). I think technically the right thing to do would be to create a separate package for it, but since it's an ocaml package I'm unsure of how to write the template file since there's no `build_style` for ocaml/dune build projects. Some pointers on how to proceed here would be greatly appreciated.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Package request: Wyrd
  2022-02-04 16:16 [ISSUE] Package request: Wyrd wayover13
  2022-05-19 14:38 ` Barbaross93
@ 2022-05-19 15:51 ` Barbaross93
  2022-05-19 17:06 ` Barbaross93
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Barbaross93 @ 2022-05-19 15:51 UTC (permalink / raw)
  To: ml

[-- 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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Package request: Wyrd
  2022-02-04 16:16 [ISSUE] Package request: Wyrd wayover13
  2022-05-19 14:38 ` Barbaross93
  2022-05-19 15:51 ` Barbaross93
@ 2022-05-19 17:06 ` Barbaross93
  2022-05-19 17:08 ` Barbaross93
  2022-05-20 15:54 ` wayover13
  4 siblings, 0 replies; 6+ messages in thread
From: Barbaross93 @ 2022-05-19 17:06 UTC (permalink / raw)
  To: ml

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

New comment by Barbaross93 on void-packages repository

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

Comment:
So, I _finally_ got everything working. I did end up making separate package for `ocaml-curses` and was successful in installing it.

The only issue left is that during the documentation creation, I have to manually hit enter a view times. The documents are made with `latex2man` and `lualatex`. I assume I'll need to edit the `makefile` to skip these checks?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Package request: Wyrd
  2022-02-04 16:16 [ISSUE] Package request: Wyrd wayover13
                   ` (2 preceding siblings ...)
  2022-05-19 17:06 ` Barbaross93
@ 2022-05-19 17:08 ` Barbaross93
  2022-05-20 15:54 ` wayover13
  4 siblings, 0 replies; 6+ messages in thread
From: Barbaross93 @ 2022-05-19 17:08 UTC (permalink / raw)
  To: ml

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

New comment by Barbaross93 on void-packages repository

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

Comment:
So, I _finally_ got everything working. I did end up making a separate package for `ocaml-curses` and was successful in installing it.

The only issue left is that during the documentation creation, I have to manually hit enter a few times. The documents are made with `latex2man` and `lualatex`. I assume I'll need to edit the `makefile` to skip these checks?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Package request: Wyrd
  2022-02-04 16:16 [ISSUE] Package request: Wyrd wayover13
                   ` (3 preceding siblings ...)
  2022-05-19 17:08 ` Barbaross93
@ 2022-05-20 15:54 ` wayover13
  4 siblings, 0 replies; 6+ messages in thread
From: wayover13 @ 2022-05-20 15:54 UTC (permalink / raw)
  To: ml

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

New comment by wayover13 on void-packages repository

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

Comment:
Great news! Thank you! Looking forward to this utility being back in the repos.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-20 15:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-04 16:16 [ISSUE] Package request: Wyrd wayover13
2022-05-19 14:38 ` Barbaross93
2022-05-19 15:51 ` Barbaross93
2022-05-19 17:06 ` Barbaross93
2022-05-19 17:08 ` Barbaross93
2022-05-20 15:54 ` wayover13

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).