| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
- Add NetBSD as a recognized platform without -ldl.
- Allow building with NetBSD libcurses instead of ncurses.
- Portability to NetBSD sh - use POSIX '=' instead of '=='.
|
|
|
|
|
| |
Make Profanity compilable with gtk2 and gtk3.
Prefer the latter.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With recent changes to c99 and -D_POSIX_C_SOURCE=200809L we get the following:
openSUSE TW CI sais:
```
Now you can run `make' to build profanity
In file included from /usr/include/python2.7/Python.h:8,
from src/plugins/python_plugins.c:37:
/usr/include/python2.7/pyconfig.h:1226: error: "_POSIX_C_SOURCE" redefined [-Werror]
1226 | #define _POSIX_C_SOURCE 200112L
|
<command-line>: note: this is the location of the previous definition
In file included from /usr/include/python2.7/Python.h:8,
from src/plugins/python_api.c:37:
/usr/include/python2.7/pyconfig.h:1226: error: "_POSIX_C_SOURCE" redefined [-Werror]
1226 | #define _POSIX_C_SOURCE 200112L
|
<command-line>: note: this is the location of the previous definition
cc1: all warnings being treated as errors
```
OpenBSD CI sais:
```
cc1: warnings being treated as errors
src/database.c: In function 'log_database_get_previous_chat':
src/database.c:226: warning: implicit declaration of function 'asprintf'
gmake[1]: *** [Makefile:1924: src/database.o] Error 1
gmake[1]: Leaving directory '/home/build/profanity'
gmake: *** [Makefile:1211: all] Error 2
```
Let us use gnu99. Has been proposed before already and is fine.
Regards https://github.com/profanity-im/profanity/issues/1357
Regards https://github.com/profanity-im/profanity/pull/1351
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
https://github.com/profanity-im/profanity/commit/98c38dc6d6d29333c63f80327774f094610d8602
sets C99 as standard.
strdup() is not part of C99.
For now set `-D_POSIX_C_SOURCE=200809L` macro to have strdup() in C99.
Using `gnu99` instead would be another option.
We should take more care to use glib functions whenever possible.
Regards https://github.com/profanity-im/profanity/issues/1357
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Some systems don't provide recent libstrophe releases. When older
version of libstrophe is detected, don't build legacy auth support.
To simplify this patch, report about unsupported legacy auth and
keep commands option as is.
|
| |
|
| |
|
|
|
|
|
| |
legacy auth (ac410445af65b9d332d4606a08ff549672042766) requires
libstrophe 0.9.3 because of XMPP_CONN_FLAG_LEGACY_AUTH.
|
|
|
|
|
| |
The expect library doesnt export 'main'. But it exports (and we use)
exp_expectl.
|
|\
| |
| | |
Use always c99
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
without this, i receive this error on openbsd 6.7:
src/event/server_events.c:1477:19: error: universal character names are only valid in C++ and C99
src/event/server_events.c:1478:19: error: universal character names are only valid in C++ and C99
gmake[1]: *** [Makefile:1925: src/event/server_events.o] Error 1
gmake[1]: Leaving directory '/home/toogley/profanity'
gmake: *** [Makefile:1212: all] Error 2
|
|\ \
| |/
|/| |
configure.ac: add additional check for libstrophe
|
| |
| |
| |
| | |
Regards https://github.com/profanity-im/profanity/issues/1334
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
After the library is found by pkg-config, try to build a simple program
to check the installation. The motivation of this check is that the
chance that users manually install libstrophe/libmesode is higher than
for other libs.
Fixes #1334.
|
|/ |
|
|
|
|
|
|
|
| |
Last version in Ubuntu LTS (bionic 18.04).
I think we don't use later functionality. Let's see.
glib version fits.
|
|
|
|
|
|
|
|
|
|
|
| |
Use g_date_time_format() instead of g_date_time_format_iso8601() to only
rely on glib 2.56.0 which is the latest version in Debian Buster
(current stable).
We also only use basic sqlite functions so 3.27.0 should be fine there
(also the one in Debian buster).
Thanks to @DebXWoody.
|
|
|
|
| |
g_date_time_format_iso8601() is only in glib since 2.62.
|
|
|
|
|
| |
We don't need newer features and so it runs on Leap 15.1 too.
Let's see what Debian etc. need.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I plan to save all messages in an SQLite db.
For retrieving information it's nicer than having it in a text file.
We will have more info in there and easier to parse it.
This will also be good for later MAM
(https://github.com/profanity-im/profanity/issues/660).
Regular text files will still be an option for users so that they can
easily grep them and do whatever they like.
Internally Profanity will only use the SQLite db.
|
|
|
|
|
|
|
|
| |
* Add .builds/openbsd.yml for builds.sr.ht
* Update travis-build.sh -> ci-build.sh with OpenBSD case
* Fix libdl check in configure.ac (OpenBSD has libdl built-in)
* Fix some minor issues found when compiling on OpenBSD with GCC (e.g.
uninitialized variables)
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Instead of adding `profanity_LDADD = -lm` to Makefile.am or using
`AC_CHECK_LIB()` in configurea.c I use `AC_SEARCH_LIBS()` in case the
fmod() function is in the libc.
See https://autotools.io/autoconf/finding.html
|
|
|
|
| |
General GTK.
|
|
|
|
| |
Fixes compilation when using custom Python installed with pyenv.
|
| |
|
| |
|
| |
|
|
|
|
| |
Move from github.com/boothj5/* to github.com/profanity-im/*
|
| |
|
| |
|
|
|
|
| |
This reverts commit 7be6158c80af09daf58e9b873263d9e98e36aff9.
|
|
|
|
|
|
|
|
| |
We already use uint_32 from stdint.h which AFAIK is C99.
I seem to remember there is more C99 in the code. Let's explicitly
define it here.
Also fixes build for https://github.com/boothj5/profanity/pull/1053
|
| |
|
| |
|
| |
|
| |
|
| |
|