Skip to contentSkip to conversation

New terminal emulator: st 0.8.4

PATCH Superseded Yann Dirson 2 participants 5 messages Sep 2, 2020 1 message not in the archive

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 New terminal emulator: st 0.8.4

From: Yann Dirson <[email protected]>

Can be used as a replacement for matchbox-terminal, with much less dependencies (does not need gtk and vte), and supports "-e" flag.

---
 meta-oe/recipes-graphics/suckless/st_0.8.4.bb | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/suckless/st_0.8.4.bb
meta-oe/recipes-graphics/suckless/st_0.8.4.bb new file +28 -0
new file mode 100644
index 000000000..7d7c20e46
@@ -0,0 +1,28 @@
+SECTION = "shadow"
+LICENSE = "MIT-X"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=04c3ca13a702147c62db90f556c5b3ca"
+SRC_URI = " \
+ http://dl.suckless.org/${BPN}/${BPN}-${PV}.tar.gz \
+"
+
+inherit pkgconfig
+
+SRC_URI[sha256sum] = "d42d3ceceb4d6a65e32e90a5336e3d446db612c3fbd9ebc1780bc6c9a03346a6"
+
+DEPENDS += "libx11 libxft fontconfig"
+
+RDEPENDS_${PN} += "libx11-locale"
+
+do_compile() {
+    make INCS='-I. `pkg-config --cflags x11 fontconfig xft`' LIBS='-lm -lutil `pkg-config --libs x11 fontconfig xft`'
+}
+
+# don't use "make install" which builds terminfo, already in
+# ncurses-terminfo (and requires ncurses-native for "tic")
+
+do_install() {
+    mkdir -p ${D}${bindir}
+    install -m755 ${B}/st ${D}${bindir}/
+}
+
+RRECOMMENDS_${PN} += "ncurses-terminfo"
Signature · 1 line
2.28.0
#1 lore raw
Quoted 6 lines · Yann Dirson

From: Yann Dirson <[email protected]>

Can be used as a replacement for matchbox-terminal, with much less dependencies (does not need gtk and vte), and supports "-e" flag.

can you add it to meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb as well and see if you can build meta-oe-ptest-image

Quoted 44 lines
---
 meta-oe/recipes-graphics/suckless/st_0.8.4.bb | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/suckless/st_0.8.4.bb
meta-oe/recipes-graphics/suckless/st_0.8.4.bb new file +28 -1
new file mode 100644
index 000000000..7d7c20e46
@@ -0,0 +1,28 @@
+SECTION = "shadow"
+LICENSE = "MIT-X"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=04c3ca13a702147c62db90f556c5b3ca"
+SRC_URI = " \
+ http://dl.suckless.org/${BPN}/${BPN}-${PV}.tar.gz \
+"
+
+inherit pkgconfig
+
+SRC_URI[sha256sum] = "d42d3ceceb4d6a65e32e90a5336e3d446db612c3fbd9ebc1780bc6c9a03346a6"
+
+DEPENDS += "libx11 libxft fontconfig"
+
+RDEPENDS_${PN} += "libx11-locale"
+
+do_compile() {
+    make INCS='-I. `pkg-config --cflags x11 fontconfig xft`' LIBS='-lm -lutil `pkg-config --libs x11 fontconfig xft`'
+}
+
+# don't use "make install" which builds terminfo, already in
+# ncurses-terminfo (and requires ncurses-native for "tic")
+
+do_install() {
+    mkdir -p ${D}${bindir}
+    install -m755 ${B}/st ${D}${bindir}/
+}
+
+RRECOMMENDS_${PN} += "ncurses-terminfo"
--

2.28.0

#2 lore raw
Quoted 5 lines · Khem Raj
Quoted 3 lines · Yann Dirson

From: Yann Dirson <[email protected]>

Quoted 8 lines
Quoted 3 lines

Can be used as a replacement for matchbox-terminal, with much less dependencies (does not need gtk and vte), and supports "-e" flag.

can you add it to meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb as well and see if you can build meta-oe-ptest-image

Running now, will send an updated version once it has passed, looks like it's going to use some CPU :)

While preparing for that though, I stumbled on a strange issue (I'm not using the tools for that usually,
but I confess it is convenient ;):

build (master=)$ bitbake-layers add-layer
../../meta-openembedded/meta-networking/
NOTE: Starting bitbake server...

build (master=)$ bitbake-layers add-layer ../../meta-openembedded/meta-filesystems/
NOTE: Starting bitbake server...
Traceback (most recent call last):
File
"/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/bin/bitbake-layers", line 95, in <module>
ret = main()
File
"/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/bin/bitbake-layers", line 63, in main
tinfoil.prepare(True)
File
"/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/tinfoil.py", line 410, in prepare
self.run_command('parseConfiguration')
File
"/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/tinfoil.py", line 466, in run_command
raise TinfoilCommandFailed(result[1])
bb.tinfoil.TinfoilCommandFailed: Traceback (most recent call last):
File
"/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/command.py", line 81, in runCommand
result = command_method(self, commandline)
File
"/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/command.py", line 280, in parseConfiguration
command.cooker.parseConfiguration()
File
"/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/cooker.py", line 426, in parseConfiguration
self.handleCollections(self.data.getVar("BBFILE_COLLECTIONS"))
File
"/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/cooker.py", line 1255, in handleCollections
raise CollectionError("Errors during parsing layer configuration")
bb.cooker.CollectionError: Errors during parsing layer configuration

Same problem after adding it by hand, trying to add meta-python. Adding that one by hand as well does the trick.

Quoted 48 lines

Review

Quoted 7 lines
---
 meta-oe/recipes-graphics/suckless/st_0.8.4.bb | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/suckless/st_0.8.4.bb
(quoted diff) +0 -0

b/meta-oe/recipes-graphics/suckless/st_0.8.4.bb

Quoted 5 lines

new file mode 100644
index 000000000..7d7c20e46

meta-oe/recipes-graphics/suckless/st_0.8.4.bb line 10

Quoted 10 lines
meta-oe/recipes-graphics/suckless/st_0.8.4.bb new file +10 -0
@@ -0,0 +1,28 @@
+SECTION = "shadow"
+LICENSE = "MIT-X"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=04c3ca13a702147c62db90f556c5b3ca"
+SRC_URI = " \
+ http://dl.suckless.org/${BPN}/${BPN}-${PV}.tar.gz \
+"
+
+inherit pkgconfig
+
+SRC_URI[sha256sum] =

"d42d3ceceb4d6a65e32e90a5336e3d446db612c3fbd9ebc1780bc6c9a03346a6"

meta-oe/recipes-graphics/suckless/st_0.8.4.bb

Quoted 7 lines
meta-oe/recipes-graphics/suckless/st_0.8.4.bb new file +7 -0
+
+DEPENDS += "libx11 libxft fontconfig"
+
+RDEPENDS_${PN} += "libx11-locale"
+
+do_compile() {
+    make INCS='-I. `pkg-config --cflags x11 fontconfig xft`' LIBS='-lm

-lutil pkg-config --libs x11 fontconfig xft'

Quoted 15 lines
meta-oe/recipes-graphics/suckless/st_0.8.4.bb new file +11 -1
+}
+
+# don't use "make install" which builds terminfo, already in
+# ncurses-terminfo (and requires ncurses-native for "tic")
+
+do_install() {
+    mkdir -p ${D}${bindir}
+    install -m755 ${B}/st ${D}${bindir}/
+}
+
+RRECOMMENDS_${PN} += "ncurses-terminfo"
--

2.28.0

Signature · 2 lines
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 13 lines · Yann Dirson via lists.openembedded.org
Quoted 9 lines · Khem Raj
Quoted 6 lines · Yann Dirson

From: Yann Dirson <[email protected]>

Can be used as a replacement for matchbox-terminal, with much less dependencies (does not need gtk and vte), and supports "-e" flag.

Quoted 8 lines
Quoted 4 lines

can you add it to meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb as well and see if you can build meta-oe-ptest-image

Running now, will send an updated version once it has passed, looks like it's going to use some CPU :)

Well, isn't there some CI runner somewhere with already a full sstate-cache ?

The qemux86-64 build fails in webkitgtk whose build takes up so much RAM my poor brand new laptop OoMs...

Quoted 109 lines

While preparing for that though, I stumbled on a strange issue (I'm not using the tools for that usually,
but I confess it is convenient ;):

build (master=)$ bitbake-layers add-layer
../../meta-openembedded/meta-networking/
NOTE: Starting bitbake server...

build (master=)$ bitbake-layers add-layer ../../meta-openembedded/meta-filesystems/
NOTE: Starting bitbake server...
Traceback (most recent call last):
File
"/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/bin/bitbake-layers", line 95, in <module>
ret = main()
File
"/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/bin/bitbake-layers", line 63, in main
tinfoil.prepare(True)
File
"/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/tinfoil.py", line 410, in prepare
self.run_command('parseConfiguration')
File
"/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/tinfoil.py", line 466, in run_command
raise TinfoilCommandFailed(result[1])
bb.tinfoil.TinfoilCommandFailed: Traceback (most recent call last):
File
"/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/command.py", line 81, in runCommand
result = command_method(self, commandline)
File
"/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/command.py", line 280, in parseConfiguration
command.cooker.parseConfiguration()
File
"/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/cooker.py", line 426, in parseConfiguration
self.handleCollections(self.data.getVar("BBFILE_COLLECTIONS"))
File
"/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/cooker.py", line 1255, in handleCollections
raise CollectionError("Errors during parsing layer configuration")
bb.cooker.CollectionError: Errors during parsing layer configuration

Same problem after adding it by hand, trying to add meta-python. Adding that one by hand as well does the trick.

Quoted 33 lines

Review

Quoted 7 lines
---
 meta-oe/recipes-graphics/suckless/st_0.8.4.bb | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/suckless/st_0.8.4.bb
(quoted diff) +0 -0

b/meta-oe/recipes-graphics/suckless/st_0.8.4.bb

meta-oe/recipes-graphics/suckless/st_0.8.4.bb line 3

Quoted 8 lines

new file mode 100644
index 000000000..7d7c20e46

meta-oe/recipes-graphics/suckless/st_0.8.4.bb new file +3 -0
@@ -0,0 +1,28 @@
+SECTION = "shadow"
+LICENSE = "MIT-X"
+LIC_FILES_CHKSUM =

"file://LICENSE;md5=04c3ca13a702147c62db90f556c5b3ca"

meta-oe/recipes-graphics/suckless/st_0.8.4.bb

Quoted 7 lines
meta-oe/recipes-graphics/suckless/st_0.8.4.bb new file +7 -0
+SRC_URI = " \
+ http://dl.suckless.org/${BPN}/${BPN}-${PV}.tar.gz \
+"
+
+inherit pkgconfig
+
+SRC_URI[sha256sum] =

"d42d3ceceb4d6a65e32e90a5336e3d446db612c3fbd9ebc1780bc6c9a03346a6"

meta-oe/recipes-graphics/suckless/st_0.8.4.bb

Quoted 7 lines
meta-oe/recipes-graphics/suckless/st_0.8.4.bb new file +7 -0
+
+DEPENDS += "libx11 libxft fontconfig"
+
+RDEPENDS_${PN} += "libx11-locale"
+
+do_compile() {
+    make INCS='-I. `pkg-config --cflags x11 fontconfig xft`' LIBS='-lm

-lutil pkg-config --libs x11 fontconfig xft'

Quoted 16 lines
Quoted 12 lines
meta-oe/recipes-graphics/suckless/st_0.8.4.bb new file +11 -1
+}
+
+# don't use "make install" which builds terminfo, already in
+# ncurses-terminfo (and requires ncurses-native for "tic")
+
+do_install() {
+    mkdir -p ${D}${bindir}
+    install -m755 ${B}/st ${D}${bindir}/
+}
+
+RRECOMMENDS_${PN} += "ncurses-terminfo"
--
Quoted 3 lines

2.28.0

--
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech

Signature · 2 lines
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech
#5 lore raw
Quoted 22 lines · Yann Dirson
Quoted 18 lines · Yann Dirson via lists.openembedded.org
Quoted 12 lines · Khem Raj
Quoted 6 lines · Yann Dirson

From: Yann Dirson <[email protected]>

Can be used as a replacement for matchbox-terminal, with much less dependencies (does not need gtk and vte), and supports "-e" flag.

can you add it to meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb as well and see if you can build meta-oe-ptest-image

Quoted 7 lines
Quoted 1 line

Running now, will send an updated version once it has passed, looks like it's going to use some CPU :)

Well, isn't there some CI runner somewhere with already a full sstate-cache ?

The qemux86-64 build fails in webkitgtk whose build takes up so much RAM my poor brand new laptop OoMs...

Oh, yes it will run in CI if you added it to packagegroup and sent a v2

Quoted 92 lines
Quoted 75 lines

While preparing for that though, I stumbled on a strange issue (I'm not using the tools for that usually, but I confess it is convenient ;):

build (master=)$ bitbake-layers add-layer ../../meta-openembedded/meta-networking/
NOTE: Starting bitbake server...

build (master=)$ bitbake-layers add-layer ../../meta-openembedded/meta-filesystems/
NOTE: Starting bitbake server...
Traceback (most recent call last):
File "/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/bin/bitbake-layers", line 95, in <module>
ret = main()
File "/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/bin/bitbake-layers", line 63, in main
tinfoil.prepare(True)
File "/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/tinfoil.py", line 410, in prepare
self.run_command('parseConfiguration')
File "/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/tinfoil.py", line 466, in run_command
raise TinfoilCommandFailed(result[1])
bb.tinfoil.TinfoilCommandFailed: Traceback (most recent call last):
File "/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/command.py", line 81, in runCommand
result = command_method(self, commandline)
File "/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/command.py", line 280, in parseConfiguration
command.cooker.parseConfiguration()
File "/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/cooker.py", line 426, in parseConfiguration
self.handleCollections(self.data.getVar("BBFILE_COLLECTIONS"))
File "/home/yann/shadow/meta-blade/meta-shadow-os/poky/bitbake/lib/bb/cooker.py", line 1255, in handleCollections
raise CollectionError("Errors during parsing layer configuration")
bb.cooker.CollectionError: Errors during parsing layer configuration

Same problem after adding it by hand, trying to add meta-python. Adding that one by hand as well does the trick.

Quoted 43 lines
Quoted 43 lines
---
 meta-oe/recipes-graphics/suckless/st_0.8.4.bb | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/suckless/st_0.8.4.bb
meta-oe/recipes-graphics/suckless/st_0.8.4.bb new file +28 -1
new file mode 100644
index 000000000..7d7c20e46
@@ -0,0 +1,28 @@
+SECTION = "shadow"
+LICENSE = "MIT-X"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=04c3ca13a702147c62db90f556c5b3ca"
+SRC_URI = " \
+ http://dl.suckless.org/${BPN}/${BPN}-${PV}.tar.gz \
+"
+
+inherit pkgconfig
+
+SRC_URI[sha256sum] = "d42d3ceceb4d6a65e32e90a5336e3d446db612c3fbd9ebc1780bc6c9a03346a6"
+
+DEPENDS += "libx11 libxft fontconfig"
+
+RDEPENDS_${PN} += "libx11-locale"
+
+do_compile() {
+    make INCS='-I. `pkg-config --cflags x11 fontconfig xft`' LIBS='-lm -lutil `pkg-config --libs x11 fontconfig xft`'
+}
+
+# don't use "make install" which builds terminfo, already in
+# ncurses-terminfo (and requires ncurses-native for "tic")
+
+do_install() {
+    mkdir -p ${D}${bindir}
+    install -m755 ${B}/st ${D}${bindir}/
+}
+
+RRECOMMENDS_${PN} += "ncurses-terminfo"
--

2.28.0

Quoted 10 lines
Quoted 2 lines
Quoted 2 lines

--
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech

--
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech