Article View: news.software.readers
Article #263642Re: The bystand newsreader
From: Michael Bäuerle
Date: Sat, 13 Jul 2019 10:29
Date: Sat, 13 Jul 2019 10:29
75 lines
3778 bytes
3778 bytes
news@zzo38computer.org wrote:
>
> Hello, this is my first post to Usenet, ever. I hope that it is good.
Looks good, except for the missing MIME declaration (see below).
> [...]
> If you have any comments, questions [...]
MIME support:
In general MIME support is mandatory since RFC 5536:
<https://tools.ietf.org/html/rfc5536#section-2.3>
<https://tools.ietf.org/html/rfc2049#section-2>
But it looks like you intentionally created a very small implementation
without MIME support.
ZIP archive:
Maybe put the files into a directory named "product-version"
("bystand-0.2.1" in this case) before archiving it.
This is common practice for source distributions.
Build system:
Currently there is none. Maybe add at least a Makefile like this:
------------------------------------------------------------------------
# original build note from bystand.c:
# gcc -s -O2 -o ~/bin/bystand bystand.c sqlite3.o -ldl -lpthread
#
OBJS= bystand.o
# Link executable against shared sqlite library
# -s is omitted, see install rule
bystand: $(OBJS)
$(CC) -o $@ $(OBJS) $(LDFLAGS) $(LIBS) -lsqlite3 -ldl -lpthread
# Install exeutable to ~/bin
# Symbol table is stripped after installation (similar to -s)
install: bystand
cp bystand ~/bin/bystand
strip ~/bin/bystand
# Delete object files and executable
clean:
rm -f *.o
rm -f bystand
# POSIX conformant inference rule (Source *.c => Object *.o)
# Should work with every make program
# Add debug symbols with -g
..c.o:
$(CC) -g -O2 $(CFLAGS) $(CPPFLAGS) -c -o $@ $*.c
------------------------------------------------------------------------
This way the user can configure the build with the standard environment
variables.
The local executable is build with debug symbols, the installed
executable is stripped after installation.
Example for a GNU/Linux system using pkgsrc (sqlite installed with
/usr/pkg prefix):
|
| $ CPPFLAGS="-I /usr/pkg/include" LDFLAGS="-L /usr/pkg/lib -R /usr/pkg/lib" make
| cc -g -O2 -I /usr/pkg/include -c -o bystand.o bystand.c
| cc -o bystand bystand.o -L /usr/pkg/lib -R /usr/pkg/lib -lsqlite3 -ldl -lpthread
| $ ldd bystand
| linux-vdso32.so.1 => (0x00100000)
| libsqlite3.so.0 => /usr/pkg/lib/libsqlite3.so.0 (0x0fed1000)
| libdl.so.2 => /lib/powerpc-linux-gnu/libdl.so.2 (0x0fead000)
| libpthread.so.0 => /lib/powerpc-linux-gnu/libpthread.so.0 (0x0fe72000)
| libc.so.6 => /lib/powerpc-linux-gnu/libc.so.6 (0x0fcd6000)
| libm.so.6 => /lib/powerpc-linux-gnu/libm.so.6 (0x0fc08000)
| /lib/ld.so.1 (0x20746000)
[Superseded because of Copy&Paste error in the ldd line]
Technical Details
Message-ID:
<AABdKbKh4CYAAAhe.A1.flnews@Server4.micha.freeshell.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mailReferences:
<1562970678.bystand@zzo38computer.org>Show Full Headers
Complete Article Headers
Message-ID: <AABdKbKh4CYAAAhe.A1.flnews@Server4.micha.freeshell.org> Subject: Re: The bystand newsreader Date: Sat, 13 Jul 2019 10:29:53 -0000 From: Michael Bäuerle <michael.baeuerle@gmx.net> References: <1562970678.bystand@zzo38computer.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail Newsgroups: news.software.readers Supersedes: <AABdKauG6OUAAAhe.A1.flnews@Server4.micha.freeshell.org> Lines: 75 Mime-Version: 1.0 X-Trace: individual.net qEsul7nrhuR1ACqRrJc0XAjpbfuIgbwApBphSSQV3BCRw01sv5 X-Orig-Path: not-for-mail Cancel-Lock: sha256:Q/5XXJs+NmudrlG5/wCCRWyzt+rpObE6uVu9N0FuxsM= sha1:IZLkkJ7Lw/dIzWbmKyq48SFkHe0= Cancel-Key: sha256:mQvjFqa7REvVL2NUEuEfMSOWRoVn8g3QSlsSKZ/en2w= sha1:zxRxk9h+f9tj85T+seO1EtHRDC8= Injection-Date: Sat, 13 Jul 2019 10:29:53 -0000 User-Agent: flnews/0.16 (for HP-UX) X-Received-Bytes: 3665 X-Received-Body-CRC: 3711729013