profile
viewpoint

Flowdalic/asmack 1338

A build environment for the XMPP client library Smack on Android

Dr-Terrible/go-overlay 33

This Portage overlay is for Go related ebuilds.

Flowdalic/androidclient 1

Kontalk official Android client

Flowdalic/bitcoin 1

Bitcoin integration/staging tree

Flowdalic/aenigma 0

The | state-of-the-art | secure-by-default | one-touch-deployed | XMPP server for everyone.

Flowdalic/Ammonite 0

Scala Scripting

Flowdalic/api-gentoo-org 0

[MIRROR] Seed data for api.gentoo.org

Flowdalic/Apktool 0

A tool for reverse engineering Android apk files

Flowdalic/atalk-android 0

xmpp/jabber client for android

issue commentbluez/bluez

(Maybe) #220 was fixed after all

Just re-emerged net-wireless/bluez-9999, i.e., the live ebuild from the current master, with 2ca87617bcb70bdfe97d744043942d6559b0dea4 and 9ba27547df6991b47f507fce362bfe4561b3718b applied. I will report if this fixes the issue for me.

Flowdalic

comment created time in 8 hours

issue commentbluez/bluez

(Maybe) #220 was fixed after all

It is trying to pair and fail, now how come it is not paired and reconnecting seems to be the real culprit here.

Hmm, I think the mouse is paired, because I paired it (ha) and after systemctl restart bluetooth it starts working. But maybe I am missing something?

After a GDM login, I see the following when starting to move the mouse in bluetoothctl:

$ bluetoothctl                                                                                                                                                                                    
Agent registered
[CHG] Controller E8:48:B8:C8:20:00 Pairable: yes
[CHG] Device E9:F9:E3:08:AC:BA Connected: yes
[CHG] Device E9:F9:E3:08:AC:BA Connected: no
[CHG] Device E9:F9:E3:08:AC:BA Connected: yes
[CHG] Device E9:F9:E3:08:AC:BA Connected: no
[CHG] Device E9:F9:E3:08:AC:BA Connected: yes
[CHG] Device E9:F9:E3:08:AC:BA Connected: no
[CHG] Device E9:F9:E3:08:AC:BA Connected: yes
[CHG] Device E9:F9:E3:08:AC:BA Connected: no

obviously the mouse (E9:F9:E3:08:AC:BA) is not working. Then, after restarting the bluetooth systemd service:

[CHG] Controller E8:48:B8:C8:20:00 Discovering: no
[CHG] Controller E8:48:B8:C8:20:00 Class: 0x00000000
Agent unregistered
[DEL] Device E9:F9:E3:08:AC:BA MX Master 3
[DEL] Device 38:18:4C:D2:CF:49 WH-1000XM3
[DEL] Controller E8:48:B8:C8:20:00 neo-pc.sch [default]
Agent registered
[CHG] Controller E8:48:B8:C8:20:00 Class: 0x00000104
[CHG] Controller E8:48:B8:C8:20:00 Powered: yes
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000111f-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 Name: neo-pc.sch
[CHG] Controller E8:48:B8:C8:20:00 Alias: neo-pc.sch
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000111f-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 Alias: BlueZ 5.63
[CHG] Controller E8:48:B8:C8:20:00 Class: 0x00200104
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000111f-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 Class: 0x00600104
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000111f-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 Class: 0x00640104
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000111f-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 Class: 0x006c0104
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000111f-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 UUIDs: 0000180a-0000-1000-8000-00805f9b34fb
[CHG] Controller E8:48:B8:C8:20:00 Alias: neo-pc.sch
[CHG] Device E9:F9:E3:08:AC:BA WakeAllowed: yes
[CHG] Device E9:F9:E3:08:AC:BA Connected: yes
[NEW] Primary Service (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service000a
	00001801-0000-1000-8000-00805f9b34fb
	Generic Attribute Profile
[NEW] Characteristic (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service000a/char000b
	00002a05-0000-1000-8000-00805f9b34fb
	Service Changed
[NEW] Descriptor (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service000a/char000b/desc000d
	00002902-0000-1000-8000-00805f9b34fb
	Client Characteristic Configuration
[NEW] Primary Service (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service000e
	0000180a-0000-1000-8000-00805f9b34fb
	Device Information
[NEW] Characteristic (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service000e/char000f
	00002a29-0000-1000-8000-00805f9b34fb
	Manufacturer Name String
[NEW] Characteristic (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service000e/char0011
	00002a24-0000-1000-8000-00805f9b34fb
	Model Number String
[NEW] Characteristic (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service000e/char0013
	00002a25-0000-1000-8000-00805f9b34fb
	Serial Number String
[NEW] Characteristic (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service000e/char0015
	00002a27-0000-1000-8000-00805f9b34fb
	Hardware Revision String
[NEW] Characteristic (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service000e/char0017
	00002a26-0000-1000-8000-00805f9b34fb
	Firmware Revision String
[NEW] Characteristic (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service000e/char0019
	00002a28-0000-1000-8000-00805f9b34fb
	Software Revision String
[NEW] Characteristic (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service000e/char001b
	00002a50-0000-1000-8000-00805f9b34fb
	PnP ID
[NEW] Primary Service (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service001d
	0000180f-0000-1000-8000-00805f9b34fb
	Battery Service
[NEW] Characteristic (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service001d/char001e
	00002a19-0000-1000-8000-00805f9b34fb
	Battery Level
[NEW] Descriptor (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service001d/char001e/desc0020
	00002902-0000-1000-8000-00805f9b34fb
	Client Characteristic Configuration
[NEW] Primary Service (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service0041
	00010000-0000-1000-8000-011f2000046d
	Vendor specific
[NEW] Characteristic (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service0041/char0042
	00010001-0000-1000-8000-011f2000046d
	Vendor specific
[NEW] Descriptor (Handle 0x0000)
	/org/bluez/hci0/dev_E9_F9_E3_08_AC_BA/service0041/char0042/desc0044
	00002902-0000-1000-8000-00805f9b34fb
	Client Characteristic Configuration
[CHG] Device E9:F9:E3:08:AC:BA ServicesResolved: yes
[CHG] Device E9:F9:E3:08:AC:BA Paired: yes

Does that help?

Flowdalic

comment created time in 3 days

push eventFlowdalic/Smack

Florian Schmaus

commit sha 1a727c152e9af15d519a7af6663798a210c13447

[core] Improve warning message of ExceptionThrowingCallbackWithHint

view details

Florian Schmaus

commit sha 1dae0c0c32e73035b47fd9efcf0e8695addf910b

[core] Use Enum.toString() in XmlStringBuilder.attribute(String, Enum<?>) All other enum-using methods of XmlStringBuilder already use Enum.toString(), as opposed to Enum.name(), this was the only left. I do not remember why I did not to change this method too, probably because of its plenty call sites. But since this method already broke Jingle XML serializaton, JingleAction was e.g., 'session_accept' when it should be 'session-accept', we change it now. Fixes SMACK-921.

view details

Florian Schmaus

commit sha 6a4d7d29e3308f7cc706598ff81ed6af755a8072

Merge branch '4.4'

view details

push time in 4 days

push eventFlowdalic/Smack

Florian Schmaus

commit sha 1a727c152e9af15d519a7af6663798a210c13447

[core] Improve warning message of ExceptionThrowingCallbackWithHint

view details

Florian Schmaus

commit sha 1dae0c0c32e73035b47fd9efcf0e8695addf910b

[core] Use Enum.toString() in XmlStringBuilder.attribute(String, Enum<?>) All other enum-using methods of XmlStringBuilder already use Enum.toString(), as opposed to Enum.name(), this was the only left. I do not remember why I did not to change this method too, probably because of its plenty call sites. But since this method already broke Jingle XML serializaton, JingleAction was e.g., 'session_accept' when it should be 'session-accept', we change it now. Fixes SMACK-921.

view details

push time in 4 days

pull request commentgentoo/gentoo

app-text/katarakt: Katarakt is a simple PDF viewer (new package)

@shifty91 I saw that you put katarakt in ::guru. Would you be interested in moving it in ::gentoo? I am happy to proxy maintain it. If so, then please update this PR.

shifty91

comment created time in 5 days

issue openedbluez/bluez

(Maybe) #220 was fixed after all

I run net-wireless/bluez-5.63-r1 on my Gentoo system. This version has the patches for #220 included (see https://github.com/gentoo/gentoo/commit/277ef13c7bb383657ee4628b45a37b62f66eb20e). However I still have to systemctl restart bluetooth for my Logitech MX 3 mouse to connect. Before restarting the bluetooth service, bluetoothctl shows that devices is connected then disconnected and then connected again as soon as I start moving the mouse. I've also attached the btmon capture while this happens: btmon.gz

created time in 5 days

push eventFlowdalic/docker-debian-testing-dev

Florian Schmaus

commit sha 110d36f549ab75e7351190ed091a68a6256757ff

Install gradle

view details

push time in 6 days

created tagFlowdalic/docker-debian-testing-dev

tag1.20

created time in 6 days

push eventFlowdalic/docker-debian-testing-dev

Florian Schmaus

commit sha 6a1bff1080f6d378a99125b2055f094b8ebdc3a9

Install tree

view details

push time in 6 days

PR closed gentoo/gentoo

media-libs/libaom: remove unused patch(es) assigned no bug found

Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Michael Mair-Keimberger mmk@levelnine.at

+0 -211

3 comments

5 changed files

mm1ke

pr closed time in 6 days

pull request commentgentoo/gentoo

media-libs/libaom: remove unused patch(es)

Fixed with 8b879fded0dc01423d42526dbab7e9f66eefedbc and hence obsolete. But thanks for your PR. :)

mm1ke

comment created time in 6 days

pull request commentgentoo/gentoo

dev-ada/langkit: remove unused patch(es)

@atupone ping :)

mm1ke

comment created time in 6 days

pull request commentgentoo/gentoo

net-ftp/ncftp: bump to EAPI 8 and fix bugs

Thanks for your contribution.

ceamac

comment created time in 6 days

Pull request review commentgentoo/gentoo

net-ftp/ncftp: bump to EAPI 8 and fix bugs

+# Copyright 1999-2022 Gentoo Authors+# Distributed under the terms of the GNU General Public License v2++EAPI=8+inherit autotools toolchain-funcs++DESCRIPTION="An extremely configurable ftp client"+HOMEPAGE="https://www.ncftp.com/"+SRC_URI="+	https://ftp.mirrorservice.org/sites/ftp.${PN}.com/${PN}/${P}-src.tar.xz+"++LICENSE="Clarified-Artistic"+SLOT="0"+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x86-solaris"+IUSE="pch"++DEPEND="+	sys-libs/ncurses:=+"+RDEPEND="+	${DEPEND}+"+BDEPEND="virtual/pkgconfig"++PATCHES=(+	"${FILESDIR}"/${PN}-3.2.6-fno-common.patch+)++src_prepare() {+	default++	sed -i -e '/^AR=/d' autoconf_local/aclocal.m4 || die+	# 727774+	sed -i -e 's/STRIP=".*"/STRIP=":"/' autoconf_local/aclocal.m4 || die++	AT_M4DIR=autoconf_local/ eautoreconf+}++src_configure() {+	tc-export AR CC+	LC_ALL="C" \+	LIBS="$( $(tc-getPKG_CONFIG) --libs ncurses)" \+		econf \+		$(use_enable pch precomp) \+		--disable-ccdv \+		--disable-universal+}++src_install() {+	default++	DOCS=( README.txt doc/*.txt )

I think

dodoc README.txt doc/*.txt
docinto html
dodoc doc/html/*.html

is just fine. One could maybe consider replacing the final dodoc with dodoc -r doc/html.

ceamac

comment created time in 7 days

PullRequestReviewEvent

Pull request review commentgentoo/gentoo

net-ftp/ncftp: bump to EAPI 8 and fix bugs

+# Copyright 1999-2022 Gentoo Authors+# Distributed under the terms of the GNU General Public License v2++EAPI=8+inherit autotools toolchain-funcs++DESCRIPTION="An extremely configurable ftp client"+HOMEPAGE="https://www.ncftp.com/"+SRC_URI="+	https://ftp.mirrorservice.org/sites/ftp.${PN}.com/${PN}/${P}-src.tar.xz+"++LICENSE="Clarified-Artistic"+SLOT="0"+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x86-solaris"+IUSE="pch"++DEPEND="+	sys-libs/ncurses:=+"+RDEPEND="+	${DEPEND}+"+BDEPEND="virtual/pkgconfig"++PATCHES=(+	"${FILESDIR}"/${PN}-3.2.6-fno-common.patch+)++src_prepare() {+	default++	sed -i -e '/^AR=/d' autoconf_local/aclocal.m4 || die+	# 727774+	sed -i -e 's/STRIP=".*"/STRIP=":"/' autoconf_local/aclocal.m4 || die++	AT_M4DIR=autoconf_local/ eautoreconf+}++src_configure() {+	tc-export AR CC+	LC_ALL="C" \+	LIBS="$( $(tc-getPKG_CONFIG) --libs ncurses)" \+		econf \+		$(use_enable pch precomp) \+		--disable-ccdv \+		--disable-universal+}++src_install() {+	default++	DOCS=( README.txt doc/*.txt )

Sometimes a glob in DOCS could cause issues, see also https://github.com/gentoo/gentoo/pull/23668#issuecomment-1010143030.

I recommend to use dodoc and dohtml, potentially with -r, instead.

ceamac

comment created time in 7 days

PullRequestReviewEvent
PullRequestReviewEvent

pull request commentgentoo/gentoo

media-sound/mumble: bump version

I am not sure why, but /usr/bin/mumble does not link against libopus.so:

$ scanelf -n /usr/bin/mumble
 TYPE   NEEDED FILE 
ET_DYN libPocoZip.so.71,libsndfile.so.1,libQt5Sql.so.5,libQt5Svg.so.5,libQt5Widgets.so.5,libXi.so.6,librt.so.1,libspeex.so.1,libspeexdsp.so.1,libQt5DBus.so.5,libdns_sd.so.1,libasound.so.2,libPocoXML.so.71,libPocoFoundation.so.71,libpthread.so.0,libprotobuf.so.28,libssl.so.1.1,libcrypto.so.1.1,libQt5Network.so.5,libQt5Xml.so.5,libQt5Gui.so.5,libX11.so.6,libQt5Core.so.5,libstdc++.so.6,libm.so.6,libgcc_s.so.1,libc.so.6,ld-linux-x86-64.so.2 /usr/bin/mumble 

I would have expected libopus.so here. But maybe I am missing something?

returntoreality

comment created time in 7 days

PR closed gentoo/gentoo

ejabberd: Package updates for 21.07 assigned no bug found

Tested on an amd64 system.

+1039 -0

4 comments

53 changed files

jpds

pr closed time in 8 days

pull request commentgentoo/gentoo

ejabberd: Package updates for 21.07

This probably has become obsolete with ejabberd 21.12 in ::gentoo now. Hence I am closing it. Feel free to issue a new PR if there are things of this PR that you believe should still be merge.d

jpds

comment created time in 8 days

PullRequestReviewEvent

pull request commentlefou/millw

Use system mill version if possible

I think checking the mtime might not be enought, as in case this is also just a script which follows some config or links

Symlinks should not be a problem. Most shell script functions and tools automatically follow the symlinks, so we would end up with the mtime of the symlink target.

Beside millw I'm not aware of such, but from my experience with Gentoo or how I would handle it, I would always assume such situation.

In Gentoo, /usr/bin/gradle is a symlink managed by eselect-gradle. And mill is unslotted, so /usr/bin/mill is just the system-wide installed mill verison.

So, with the information at hand, are you still interested in the "use system mill version if possible" feature?

Flowdalic

comment created time in 9 days

pull request commentlefou/millw

Use system mill version if possible

Hmm, maybe /var/tmp would work. But I have to think more about hits.

Another option would be to use $XDG_CACHE_DIR/mill/$FQDN/system-version`. For now, that's what I would aim for.

Flowdalic

comment created time in 10 days

pull request commentlefou/millw

Use system mill version if possible

$XDG_CACHE_HOME/mill

I suggested ~/.local because I assumed that this directory should be system local. But that doesn't seem to be the case.

The with XDG_CACHE_HOME is that if the user's home on a network filesystem then the cached value will be the same for all hosts of the user. But the cached value is (typically) host specific. Hmm, maybe /var/tmp would work. But I have to think more about hits.

Also we may need to refresh it from time to time.

The idea is to update the mill/system-version file, every time the recorded mtime does not longer match the current mtime. And since the mtime lookup is cheap, especially compared to invoking mill --version, I'd simply perform that check every time millw is invoked.

I'd prefer to keep the features of millw and millw.bat the same, so the Windows version should be updated as well.

I am sorry, but I do not have a Windows system to test this on, nor the motivation to implement this feature for Windows. Please let me know if this is a show stopper for your.

And, sooner or later we need some testing for all that script logic. It's already way more than a simple wrapper. If you have an idea about that, let me hear. Maybe we need to fire up docker or something like this.

Funny that you mention it. :) Shellcheck already reports a few issues with the script. Most troublesome is the missing quoting of some patch variables (which would break if the path would contain a whitespace character). Hence I already though about submitting a PR to address the issues reported by shellcheck. And since I know that those things tend to slip in again if there is no CI regularly checking for it, I also considered adding CI for it.

Flowdalic

comment created time in 10 days

pull request commentlefou/millw

Use system mill version if possible

Fair point. We could cache the system mill version in e.g. $HOME/.local/mill/system-version containing

<system-mill-path> <system-mill-mtime> <system-mill-version>

then you would only pay the mill --version delay if the cache file does not exist or if the system version has changed.

WDYT?

Flowdalic

comment created time in 10 days

delete branch Flowdalic/millw

delete branch : read-mill-version-relative

delete time in 10 days

pull request commentlefou/millw

Read .mill-version relative to millw script directory

Yeah, I figured in the meanwhile that mill always has to be executed with the working directory set to the project root. This is was a stupid idea in the first place. Sorry for the noise.

Flowdalic

comment created time in 10 days

PR opened lefou/millw

Read .mill-version relative to millw script directory

Instead of reading the .mill-version file relative to the current working directory, assume the file is next to the millw script.

+5 -2

0 comment

1 changed file

pr created time in 10 days

PR opened lefou/millw

Use system mill version if possible

If the mill version in PATH has the right version, then use that version.

+13 -1

0 comment

1 changed file

pr created time in 10 days

more