* [gentoo-commits] repo/proj/guru:dev commit in: dev-ml/ollama/
@ 2024-06-22 2:00 Vitaly Zdanevich
0 siblings, 0 replies; 6+ messages in thread
From: Vitaly Zdanevich @ 2024-06-22 2:00 UTC (permalink / raw
To: gentoo-commits
commit: 1ac2f0ec38641fc5683566336fff67c52565b55a
Author: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Sat Jun 22 02:00:03 2024 +0000
Commit: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
CommitDate: Sat Jun 22 02:00:03 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1ac2f0ec
dev-ml/ollama: remote-id fix
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru>
dev-ml/ollama/metadata.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-ml/ollama/metadata.xml b/dev-ml/ollama/metadata.xml
index 64c220557..093eafbc1 100644
--- a/dev-ml/ollama/metadata.xml
+++ b/dev-ml/ollama/metadata.xml
@@ -10,6 +10,6 @@
<flag name="amd">Add support of amd</flag>
</use>
<upstream>
- <remote-id type="github">nulloy/nulloy</remote-id>
+ <remote-id type="github">ollama/ollama</remote-id>
</upstream>
</pkgmetadata>
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-ml/ollama/
@ 2024-06-22 2:00 Vitaly Zdanevich
0 siblings, 0 replies; 6+ messages in thread
From: Vitaly Zdanevich @ 2024-06-22 2:00 UTC (permalink / raw
To: gentoo-commits
commit: 0f88f858710b8552aff11d83a52db56bb22d8af4
Author: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Sat Jun 22 02:00:35 2024 +0000
Commit: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
CommitDate: Sat Jun 22 02:00:35 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0f88f858
dev-ml/ollama: add a note that this ebuild is a copy from an overlay
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru>
dev-ml/ollama/metadata.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/dev-ml/ollama/metadata.xml b/dev-ml/ollama/metadata.xml
index 093eafbc1..352043225 100644
--- a/dev-ml/ollama/metadata.xml
+++ b/dev-ml/ollama/metadata.xml
@@ -4,6 +4,7 @@
<maintainer type="person" proxied="yes">
<email>zdanevich.vitaly@ya.ru</email>
<name>Vitaly Zdanevich</name>
+ <description>A copy from https://github.com/MrPenguin07/ebuilds/tree/master/dev-ml/ollama</description>
</maintainer>
<use>
<flag name="nvidia">Add support of nvidia</flag>
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-ml/ollama/
@ 2024-06-22 2:13 Vitaly Zdanevich
0 siblings, 0 replies; 6+ messages in thread
From: Vitaly Zdanevich @ 2024-06-22 2:13 UTC (permalink / raw
To: gentoo-commits
commit: d9663ac0df073c4631a5d02daa5f5ef024dcbecc
Author: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Sat Jun 22 02:13:40 2024 +0000
Commit: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
CommitDate: Sat Jun 22 02:13:40 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d9663ac0
dev-ml/ollama: chmod to fperms, add einfo quick guide
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru>
dev-ml/ollama/ollama-9999.ebuild | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dev-ml/ollama/ollama-9999.ebuild b/dev-ml/ollama/ollama-9999.ebuild
index 5e58c7a4f..a0dd04624 100644
--- a/dev-ml/ollama/ollama-9999.ebuild
+++ b/dev-ml/ollama/ollama-9999.ebuild
@@ -49,8 +49,12 @@ src_compile() {
src_install() {
dobin ollama
doinitd "${FILESDIR}"/ollama
+ fperms 0755 /etc/init.d/ollama
}
pkg_postinst() {
- chmod 0755 /etc/init.d/ollama || die
+ einfo "Quick guide:"
+ einfo "ollama serve"
+ einfo "ollama run llama3:70b"
+ einfo "See available models at https://ollama.com/library"
}
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-ml/ollama/
@ 2024-07-08 4:25 Vitaly Zdanevich
0 siblings, 0 replies; 6+ messages in thread
From: Vitaly Zdanevich @ 2024-07-08 4:25 UTC (permalink / raw
To: gentoo-commits
commit: f0eb17f75400cdea0262eadf2b3ba90425b9d29f
Author: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
AuthorDate: Mon Jul 8 04:25:07 2024 +0000
Commit: Vitaly Zdanevich <zdanevich.vitaly <AT> ya <DOT> ru>
CommitDate: Mon Jul 8 04:25:07 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f0eb17f7
dev-ml/ollama: fix --version
Closes https://github.com/gentoo/guru/pull/205
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly <AT> ya.ru>
dev-ml/ollama/ollama-9999.ebuild | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dev-ml/ollama/ollama-9999.ebuild b/dev-ml/ollama/ollama-9999.ebuild
index a0dd04624..62369f277 100644
--- a/dev-ml/ollama/ollama-9999.ebuild
+++ b/dev-ml/ollama/ollama-9999.ebuild
@@ -42,6 +42,12 @@ src_unpack() {
}
src_compile() {
+ VERSION=$(
+ git describe --tags --first-parent --abbrev=7 --long --dirty --always \
+ | sed -e "s/^v//g"
+ )
+ export GOFLAGS="'-ldflags=-w -s \"-X=github.com/ollama/ollama/version.Version=$VERSION\"'"
+
ego generate ./...
ego build .
}
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-ml/ollama/
@ 2024-07-11 0:53 Lucio Sauer
0 siblings, 0 replies; 6+ messages in thread
From: Lucio Sauer @ 2024-07-11 0:53 UTC (permalink / raw
To: gentoo-commits
commit: 4e7eaeaafeb248b9a06de9d6b929b2f348fdc4a2
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Thu Jul 11 00:50:34 2024 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Thu Jul 11 00:52:11 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4e7eaeaa
dev-ml/ollama: add missing pipe exit status check
Fix variable order
Remove redundant file mode change
Add braces to variable
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
dev-ml/ollama/ollama-9999.ebuild | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
diff --git a/dev-ml/ollama/ollama-9999.ebuild b/dev-ml/ollama/ollama-9999.ebuild
index a8b1e063e..3db009887 100644
--- a/dev-ml/ollama/ollama-9999.ebuild
+++ b/dev-ml/ollama/ollama-9999.ebuild
@@ -13,6 +13,11 @@ SLOT="0"
IUSE="nvidia amd"
+RDEPEND="
+ acct-group/ollama
+ acct-user/ollama
+"
+IDEPEND="${RDEPEND}"
BDEPEND="
>=dev-lang/go-1.21.0
>=dev-build/cmake-3.24
@@ -24,16 +29,6 @@ BDEPEND="
)
"
-RDEPEND="
- acct-group/ollama
- acct-user/ollama
-"
-
-IDEPEND="
- acct-group/ollama
- acct-user/ollama
-"
-
pkg_pretend() {
if use amd; then
ewarn "WARNING: AMD & Nvidia support in this ebuild are experimental"
@@ -53,8 +48,9 @@ src_compile() {
VERSION=$(
git describe --tags --first-parent --abbrev=7 --long --dirty --always \
| sed -e "s/^v//g"
+ assert
)
- export GOFLAGS="'-ldflags=-w -s \"-X=github.com/ollama/ollama/version.Version=$VERSION\"'"
+ export GOFLAGS="'-ldflags=-w -s \"-X=github.com/ollama/ollama/version.Version=${VERSION}\"'"
ego generate ./...
ego build .
@@ -63,7 +59,6 @@ src_compile() {
src_install() {
dobin ollama
doinitd "${FILESDIR}"/ollama
- fperms 0755 /etc/init.d/ollama
}
pkg_preinst() {
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-ml/ollama/
@ 2024-07-11 0:53 Lucio Sauer
0 siblings, 0 replies; 6+ messages in thread
From: Lucio Sauer @ 2024-07-11 0:53 UTC (permalink / raw
To: gentoo-commits
commit: ec9321fa791adba089e1c378427309c594587e31
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Thu Jul 11 00:49:08 2024 +0000
Commit: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Thu Jul 11 00:52:08 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ec9321fa
dev-ml/ollama: move log ownership changes to pkg_preinst
Since the ollama UID and GID are dynamically assigned, we cannot rely on
them being the same on different machines. Calling fowners ollama:ollama
<file> in src_install could cause permission issues at runtime, when
e.g. a binary package is created on one machine and used on another.
Moving the offending code to pkg_preinst, which is called for binary and
source packages, solves the issue.
Closes: https://github.com/gentoo/guru/pull/210
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
dev-ml/ollama/ollama-9999.ebuild | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/dev-ml/ollama/ollama-9999.ebuild b/dev-ml/ollama/ollama-9999.ebuild
index 269471175..a8b1e063e 100644
--- a/dev-ml/ollama/ollama-9999.ebuild
+++ b/dev-ml/ollama/ollama-9999.ebuild
@@ -61,14 +61,16 @@ src_compile() {
}
src_install() {
- touch /var/log/ollama.log || die
- fowners ollama:ollama /var/log/ollama.log
-
dobin ollama
doinitd "${FILESDIR}"/ollama
fperms 0755 /etc/init.d/ollama
}
+pkg_preinst() {
+ touch /var/log/ollama.log || die
+ fowners ollama:ollama /var/log/ollama.log
+}
+
pkg_postinst() {
einfo "Quick guide:"
einfo "ollama serve"
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-07-11 0:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-22 2:13 [gentoo-commits] repo/proj/guru:dev commit in: dev-ml/ollama/ Vitaly Zdanevich
-- strict thread matches above, loose matches on Subject: below --
2024-07-11 0:53 Lucio Sauer
2024-07-11 0:53 Lucio Sauer
2024-07-08 4:25 Vitaly Zdanevich
2024-06-22 2:00 Vitaly Zdanevich
2024-06-22 2:00 Vitaly Zdanevich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox