~toasterking

https://www.sgregoratto.me

Annoying as fuck shithead

~toasterking/public-inbox

Last active a month ago
View more

Recent activity

Requesting good monospace fonts for Sway 9 days ago

From Stephen Gregoratto to ~sircmpwn/public-inbox

Bit of an odd question, but here goes.

Pango recently dropped support for bitmap fonts, meaning I can't use the
classic misc fixed 6x13 font with Sway. So, I'm looking for a
replacement monospace font for my terminal/swaybar that satisfies the
following criteria:

- Must scale down to small sizes and still be legible (like misc fixed).
- Must not be blurry when scaled (the TTF versions of misc
  fixed have this problem).
- Must have a wide Unicode coverage.

Previously I used Source Sans Pro from Adobe, then Liberation Mono from
RedHat, before recently switching to misc fixed. It's ugly, but I prefer

Re: [PATCH v5] Add configure script and Makefile 23 days ago

From Stephen Gregoratto to ~emersion/mrsh-dev

This works fine on OpenBSD now, but there is one small problem.
Currently, OpenBSD doesn't ship pkg-config files for Readline or
editline. I recently submitted a patch[1] to do that, so if it gets
merged everything should work on OpenBSD 6.6+. When applied, Readline is
detected and linked to.

[1] https://marc.info/?l=openbsd-tech&m=156406831505665&w=2
-- 
Stephen Gregoratto

Re: [PATCH v4] Add configure script and Makefile 29 days ago

From Stephen Gregoratto to ~emersion/mrsh-dev

On 2019-07-19 15:11, Drew DeVault wrote:
> This is bizzare, because the configure script checks for unsupported
> flags, and from my testing it definitely omits flags which are not
> supported. Can you look into this more to see what's different on your
> system?

$ cat test.c
int
main(void)
{
  return 0;
}
$ cc -Wlogical-op test.c
warning: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'? [-Wunknown-warning-option]

Re: [PATCH v4] Add configure script and Makefile a month ago

From Stephen Gregoratto to ~emersion/mrsh-dev

This updated diff still doesn't fix the build errors I reported on
OpenBSD 6.5. It looks like some warnings are not available/different
on clang:

CC      arithm.o
error: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wimplicit-fallthrough=2'; did you mean '-Wimplicit-fallthrough'?
      [-Werror,-Wunknown-warning-option]
*** Error 1 in /home/liquid/gits/mrsh (Makefile:43 'arithm.o': @cc -c -g  -std=c99  -pedantic  -Werror  -Wundef
-Wlogical-op  -Wmissing-inc...)

Compiling with gcc 8 from ports got me to the end, but not without a
couple warnings:
[message trimmed]

Re: [PATCH v3] Add configure script and Makefile a month ago

From Stephen Gregoratto to ~emersion/mrsh-dev

On 2019-07-15 10:24, Drew DeVault wrote:
> The configure script is POSIX sh and the Makefile is POSIX make.
> ---
> This removes the % rules, but as a consequence moves the list of source
> files into the configure script and generates rules for them. This also
> no longer supports out of tree builds, in order to take advantage of
> POSIX inference rules.
> 
>  .gitignore             |   4 +
>  Makefile               |  88 +++++++++++++
>  configure              | 280 +++++++++++++++++++++++++++++++++++++++++
>  mkpc                   |  12 ++
>  test/conformance/if.sh |  16 +--
>  test/harness.sh        |   6 +-

[PATCH swayidle] remove space in scdoc preamble a month ago

From Stephen Gregoratto to ~sircmpwn/public-inbox

---
 swayidle.1.scd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/swayidle.1.scd b/swayidle.1.scd
index ce27bbd..74fe008 100644
--- a/swayidle.1.scd
+++ b/swayidle.1.scd
@@ -1,4 +1,4 @@
-swayidle (1)
+swayidle(1)
 
 # NAME
 
[message trimmed]

[PATCH] add missing column in table 2 months ago

From Stephen Gregoratto to ~sircmpwn/aerc

---
 doc/aerc-config.5.scd | 1 +
 1 file changed, 1 insertion(+)

diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd
index 22923aa..84a1c21 100644
--- a/doc/aerc-config.5.scd
+++ b/doc/aerc-config.5.scd
@@ -256,6 +256,7 @@ following special keys are supported:
 |  pause
 :  
 |  backtab
+: 
 |  c-space
[message trimmed]

[PATCH] Explicitly link in libc for project 6 months ago

From Stephen Gregoratto to ~emersion/mrsh-dev

---
 meson.build | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meson.build b/meson.build
index eaa9a8e..080c34d 100644
--- a/meson.build
+++ b/meson.build
@@ -17,6 +17,10 @@ add_project_arguments([
 	'-Wno-unused-parameter',
 ], language: 'c')
 
+add_project_link_arguments([
+        '-lc',
[message trimmed]

Re: Build failure on OpenBSD due to differing types for glob(3) 6 months ago

From Stephen Gregoratto to ~emersion/mrsh-dev

It seems that Todd Miller made the glob changes[1]. Huzzah! I just 
compiled on -current and it worked with readline linked in.

On 2019-01-30 10:20, Simon Ser wrote:
> On Wednesday, January 30, 2019 10:55 AM, Stephen Gregoratto <dev@sgregoratto.me> wrote:
> > Also, I've been trying to work around linking errors. OpenBSD is 
> > picky
> > about using the right linker flags, so you need to add '-lc' globally.
> 
> I see. I wonder if that's something that should be added to Meson.

I can't see why not. I think other compilers link in libc by default, so 
it won't harm anything. I'll send a patch through.

Build failure on OpenBSD due to differing types for glob(3) 6 months ago

From Stephen Gregoratto to ~emersion/mrsh-dev

I tried building mrsh on OpenBSD, but it fails due to a type mismatch 
for the glob(3) interface: POSIX/Linux/FreeBSD uses size_t but OpenBSD 
uses int. Quoting from the manual[1]:

  The include file <glob.h> defines the structure type glob_t,
  which contains at least the following fields:

  typedef struct {
    int gl_pathc;    /* count of total paths so far */
    int gl_matchc;   /* count of paths matching pattern */
    int gl_offs;     /* reserved at beginning of gl_pathv */
    int gl_flags;    /* returned flags */
    char **gl_pathv; /* list of paths matching pattern */
  } glob_t;