Github messages for voidlinux
 help / color / mirror / Atom feed
From: harrisonthorne <harrisonthorne@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] Making a devel subpackage: File conflicts
Date: Wed, 18 Nov 2020 07:10:34 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26474@inbox.vuxu.org> (raw)

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

New issue by harrisonthorne on void-packages repository

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

Description:
I'm still learning how to make Void packages. It's been a super pleasant experience, though.

I'm making a package for `tree-sitter`, which seems to be a dependency of Neovim's upcoming 0.5 release.

template:

```
# Template file for 'tree-sitter'
pkgname=tree-sitter
version=0.17.3
revision=1
build_style=gnu-makefile
short_desc="Parser generator tool and incremental parsing library"
maintainer="Harrison Thorne <harrisonthorne@protonmail.com>"
license="MIT"
homepage="https://tree-sitter.github.io"
distfiles="https://github.com/tree-sitter/${pkgname}/archive/${version}.tar.gz"
checksum=a897e5c9a7ccb74271d9b20d59121d2d2e9de8b896c4d1cfaac0f8104c1ef9f8

tree-sitter-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
	}
}
```

Then, when I add `tree-sitter-devel` to `neovim`'s `makedepends`, I get this with `xbps-src pkg neovim`:

```
ERROR: tree-sitter-devel-0.17.3_1: file `/usr/include/tree_sitter/api.h' already installed by package tree-sitter-0.17.3_1.
ERROR: tree-sitter-devel-0.17.3_1: file `/usr/include/tree_sitter/parser.h' already installed by package tree-sitter-0.17.3_1.
ERROR: tree-sitter-devel-0.17.3_1: file `/usr/lib/libtree-sitter.a' already installed by package tree-sitter-0.17.3_1.
ERROR: tree-sitter-devel-0.17.3_1: file `/usr/lib/pkgconfig/tree-sitter.pc' already installed by package tree-sitter-0.17.3_1.
ERROR: tree-sitter-devel-0.17.3_1: file `/usr/lib/libtree-sitter.so' already installed by package tree-sitter-0.17.3_1.
```

Why is this happening?

             reply	other threads:[~2020-11-18  6:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-18  6:10 harrisonthorne [this message]
2020-11-18  8:10 ` st3r4g
2020-11-18  8:11 ` st3r4g
2020-11-18  8:11 ` st3r4g
2020-11-18  8:15 ` st3r4g
2020-11-18  8:15 ` st3r4g
2020-11-18 14:41 ` [ISSUE] [CLOSED] " harrisonthorne
2020-11-18 14:41 ` harrisonthorne

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26474@inbox.vuxu.org \
    --to=harrisonthorne@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).