Skip to contentSkip to conversation

package/frotz: Update to version 2.53

PATCH New Thomas Huth 2 participants 4 messages Mar 7, 2021 – Mar 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/frotz: Update to version 2.53

This version should now also compile fine on systems without pthreads, so we can remove the dependency on BR2_TOOLCHAIN_HAS_THREADS again.

While we're at it, also fix a typo in the description (replace "can not" with "cannot").

---
 package/frotz/Config.in  | 6 +-----
 package/frotz/frotz.hash | 2 +-
 package/frotz/frotz.mk   | 2 +-
 3 files changed, 3 insertions(+), 7 deletions(-)
package/frotz/Config.in +1 -5
index b73beea330..9473f5944d 100644
@@ -1,14 +1,10 @@
 config BR2_PACKAGE_FROTZ
 	bool "frotz"
-	depends on BR2_TOOLCHAIN_HAS_THREADS
 	select BR2_PACKAGE_NCURSES
 	help
 	  Frotz is an interpreter for old Infocom adventure games and
-	  other Z-code games. Note that frotz can not be run as root.
+	  other Z-code games. Note that frotz cannot be run as root.
 	  You must add a normal user to your buildroot configuration to
 	  be able to use it.
 
 	  https://661.org/proj/if/frotz/
-
-comment "frotz needs a toolchain w/ threads"
-	depends on !BR2_TOOLCHAIN_HAS_THREADS
package/frotz/frotz.hash +1 -1
index 14f1a7fbe2..e5024aa2cd 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  7e488140791259a1a8c9e16a0c467ca69b694b918c28ffe3d83c654bcb253cca  frotz-2.51.tar.bz2
+sha256  8da558828dd74d6d6ee30483bb32276ef918b8b72b7f6e89b4f7cb27e7abf58b  frotz-2.53.tar.bz2
 sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
package/frotz/frotz.mk +1 -1
index ce27bdf0bf..cc0421358c 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-FROTZ_VERSION = 2.51
+FROTZ_VERSION = 2.53
 FROTZ_SOURCE = frotz-$(FROTZ_VERSION).tar.bz2
 FROTZ_SITE = https://gitlab.com/DavidGriffith/frotz/-/archive/$(FROTZ_VERSION)
 FROTZ_DEPENDENCIES = host-pkgconf ncurses
Signature · 1 line
2.29.2
#1 lore raw

PATCH 1/1 package/frotz: Update to version 2.53

Thomas, All,

On 2021-03-07 16:21 +0100, Thomas Huth spake thusly:

Quoted 7 lines

This version should now also compile fine on systems without pthreads, so we can remove the dependency on BR2_TOOLCHAIN_HAS_THREADS again.

While we're at it, also fix a typo in the description (replace "can not" with "cannot").

Applied to next, thanks.

But see below...

Quoted 11 lines
---
 package/frotz/Config.in  | 6 +-----
 package/frotz/frotz.hash | 2 +-
 package/frotz/frotz.mk   | 2 +-
 3 files changed, 3 insertions(+), 7 deletions(-)
package/frotz/Config.in +0 -0
index b73beea330..9473f5944d 100644

package/frotz/Config.in line 6

Quoted 8 lines
package/frotz/Config.in +1 -2
@@ -1,14 +1,10 @@
 config BR2_PACKAGE_FROTZ
 	bool "frotz"
-	depends on BR2_TOOLCHAIN_HAS_THREADS
 	select BR2_PACKAGE_NCURSES
 	help
 	  Frotz is an interpreter for old Infocom adventure games and
-	  other Z-code games. Note that frotz can not be run as root.
+	  other Z-code games. Note that frotz cannot be run as root.

Out of curiosity: what is the technical reason this is not possible?

There is an explicit check in src/curses/ux_init.c, but except for that, I could not easily spot a reason for not being able to run as root...

package/frotz/Config.in line 8

Quoted 2 lines
package/frotz/Config.in +0 -0
 	  You must add a normal user to your buildroot configuration to
 	  be able to use it.

Why don't we then define one, like:

    define FROTS_USERS
        frotz -1 frotz -1 - - - -
    endef

See: https://buildroot.org/downloads/manual/manual.html#makeuser-syntax

Care to send a patch?

Regards,
Yann E. MORIN.

Quoted 33 lines
package/frotz/Config.in +0 -3
 	  https://661.org/proj/if/frotz/
-
-comment "frotz needs a toolchain w/ threads"
-	depends on !BR2_TOOLCHAIN_HAS_THREADS
package/frotz/frotz.hash +1 -1
index 14f1a7fbe2..e5024aa2cd 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256  7e488140791259a1a8c9e16a0c467ca69b694b918c28ffe3d83c654bcb253cca  frotz-2.51.tar.bz2
+sha256  8da558828dd74d6d6ee30483bb32276ef918b8b72b7f6e89b4f7cb27e7abf58b  frotz-2.53.tar.bz2
 sha256  8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
package/frotz/frotz.mk +1 -1
index ce27bdf0bf..cc0421358c 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-FROTZ_VERSION = 2.51
+FROTZ_VERSION = 2.53
 FROTZ_SOURCE = frotz-$(FROTZ_VERSION).tar.bz2
 FROTZ_SITE = https://gitlab.com/DavidGriffith/frotz/-/archive/$(FROTZ_VERSION)
 FROTZ_DEPENDENCIES = host-pkgconf ncurses
Signature · 6 lines
2.29.2

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH 1/1 package/frotz: Update to version 2.53

Am Sun, 7 Mar 2021 22:41:15 +0100
schrieb "Yann E. MORIN" <[email protected]>:

Quoted 3 lines

Thomas, All,

On 2021-03-07 16:21 +0100, Thomas Huth spake thusly:

[...]

Quoted 10 lines
Quoted 10 lines
package/frotz/Config.in +0 -1
index b73beea330..9473f5944d 100644
@@ -1,14 +1,10 @@
 config BR2_PACKAGE_FROTZ
 	bool "frotz"
-	depends on BR2_TOOLCHAIN_HAS_THREADS
 	select BR2_PACKAGE_NCURSES
 	help
Quoted 8 lines
Quoted 6 lines
package/frotz/Config.in +0 -0
 	  Frotz is an interpreter for old Infocom adventure games

and

package/frotz/Config.in +0 -1
-	  other Z-code games. Note that frotz can not be run as

root.

package/frotz/Config.in +1 -0
+	  other Z-code games. Note that frotz cannot be run as

root.

Out of curiosity: what is the technical reason this is not possible?

I don't know for sure, but I think it's because Frotz is running untrusted byte code - so if there's a bug in the interpreter, some malicious byte code could get root access to the system.

Quoted 4 lines

There is an explicit check in src/curses/ux_init.c, but except for that, I could not easily spot a reason for not being able to run as root...

Quoted 8 lines
Quoted 2 lines

You must add a normal user to your buildroot
configuration to be able to use it.

Why don't we then define one, like:

    define FROTS_USERS
        frotz -1 frotz -1 - - - -
    endef

Not sure whether it makes sense to hard-code a user without password here...? IMHO it makes more sense to leave that decision (how should the user be called? should the account get a password or not?) to the person who creates the buildroot image.

Thomas

#3 lore raw

PATCH 1/1 package/frotz: Update to version 2.53

Thomas, All,

On 2021-03-08 05:15 +0100, Thomas Huth spake thusly:

Quoted 9 lines

Am Sun, 7 Mar 2021 22:41:15 +0100
schrieb "Yann E. MORIN" <[email protected]>:

Quoted 4 lines

On 2021-03-07 16:21 +0100, Thomas Huth spake thusly:

Quoted 2 lines
(quoted diff) +1 -0
+	  other Z-code games. Note that frotz cannot be run as

root.

Out of curiosity: what is the technical reason this is not possible?

I don't know for sure, but I think it's because Frotz is running untrusted byte code - so if there's a bug in the interpreter, some malicious byte code could get root access to the system.

Ok, that is indeed not a technical limitation, but rathetr an attempt at not causing too much trouble... But in practice, that does not protect from much, and there night be cases where running as root is actually required. But oh well, this is a game emualtor, so I am not too concerned about it. ;-)

Thanks for the explanations.

Quoted 10 lines
Quoted 6 lines
Quoted 2 lines

You must add a normal user to your buildroot
configuration to be able to use it.

Why don't we then define one, like:

    define FROTS_USERS
        frotz -1 frotz -1 - - - -
    endef

Not sure whether it makes sense to hard-code a user without password here...? IMHO it makes more sense to leave that decision (how should the user be called? should the account get a password or not?) to the person who creates the buildroot image.

I am a bit torn between the "make things work by default" mantra, and the "let the user customise as they see fit" attitude...

I guess we can leave ats it is now, then...

Thanks! :-)

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'