linuxulator-steam-utils icon indicating copy to clipboard operation
linuxulator-steam-utils copied to clipboard

Dependencies repository hardcoding

Open Tectu opened this issue 3 years ago • 4 comments
trafficstars

The Makefile contains this dependencies target:

dependencies:
	pkg install -r FreeBSD ${DEPS} ${NVIDIA_DEPS}

Is there any particular reason why the repository is hardcoded? In a scenario where a user isn't using the official FreeBSD packages this results in failure of installation of the packages although the packages are available in a pkg repository (just not the FreeBSD one).

Tectu avatar Sep 19 '22 18:09 Tectu

Explicit > Implicit when the system/user environment is unknown, resulting in a better user experience (error condition handled) in the case where the system defaults have been changed.

koobs avatar Sep 20 '22 00:09 koobs

I have no idea, that part was in https://github.com/shkhln/linuxulator-steam-utils/pull/2.

shkhln avatar Sep 20 '22 02:09 shkhln

Explicit > Implicit when the system/user environment is unknown, resulting in a better user experience (error condition handled) in the case where the system defaults have been changed.

Except that now in a scenario like mine (custom poudriere repo) I can't use the dependencies target at all (without modifying the makefile). Is putting road blocks in front of more experienced users really the sacrifice needed to provide a "better user experience when the environment is unknown"?

I might still be missing something here. Would just simply removing the -r FreeBSD parameter result in this still working for pretty much everyone who tries to use this out-of-the-box while also working for people with custom package repos?

Tectu avatar Sep 20 '22 11:09 Tectu

Again, the only thing I know about pkg and multiple repositories is "don't". You'll have to ask @dch how that is supposed to work.

shkhln avatar Sep 20 '22 12:09 shkhln