Age | Commit message (Collapse) | Author | Files | Lines |
|
Makefile: fix pcap-config call
See merge request bustle/bustle!21
|
|
Fix the following build failure raised since libpcap version 1.10.2 and
https://github.com/the-tcpdump-group/libpcap/commit/d0cba780dc2b2bb4f3ca9427d1a0f03479f45707:
pcap-config: Invalid command-line option pcap-config specified
Usage: pcap-config [ --help ] [ --static | --static-pcap-only ] [ --libs | --additional-libs ]
perl -nle 'm/^Version:\s+(.*)$/ and print $1' \
bustle.cabal > dist/build/autogen/version.txt
echo '#define BUSTLE_VERSION "'`cat dist/build/autogen/version.txt`'"' > dist/build/autogen/version.h
/home/buildroot/autobuild/run/instance-2/output-1/host/bin/arm-linux-gcc -Idist/build/autogen -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 \
-o dist/build/bustle-pcap c-sources/pcap-reader.c c-sources/pcap-monitor.c c-sources/bustle-pcap.c \
-I/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/glib-2.0 -I/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/glib-2.0/include -I/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/libmount -I/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/blkid -I/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/gio-unix-2.0 -pthread -L/home/buildroot/autobuild/run/instance-2/output-1/host/bin/../arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0
/home/buildroot/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/10.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: /tmp/cc5SQkTV.o: in function `bustle_pcap_reader_finalize':
pcap-reader.c:(.text+0x254): undefined reference to `pcap_close'
Fixes:
- http://autobuild.buildroot.org/results/f3dcb617488e4172e639e3bd51a93bc9822ea186
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
|
|
|
36b1d769683818900ea079880c5c82122c2e19da removed the last entry from
this list but did not remove the trailing comma from the previous line.
When I am king, all file formats will support trailing commas in lists.
|
|
And stop explicitly installing it as a Cabal data file. It was
previously used by the about dialogue, but since the license is now
boring LGPL 2.1 (or later) we use GtkAboutDialog's built-in support for
that license instead.
|
|
|
|
Now that Bustle's license is a straightforward LGPL 2.1 or later, we can
use GtkAboutDialog:license-type rather than showing the full license
text in the dialogue.
Unfortunately this property and the corresponding GtkLicenseType enum
has no gtk2hs binding, but that's never stopped us before.
|
|
|
|
|
|
|
|
Maybe it would be nice to do this as part of the Cabal build…
|
|
|
|
This reverts commit ba56a44aac4585071e4ac09a66401939c3032424.
$ cabal new-build --dry-run --disable-tests --disable-benchmarks
Resolving dependencies...
Error:
Internal libraries only supported with per-component builds.
Per-component builds were disabled because build-type is Custom
In the inplace package 'bustle-0.7.5.1'
|
|
At some point in the past 12 years, Cabal has gaine support for both
internal libraries, and common stanzas.
Using an internal library for everything except Bustle's entrypoint
means tests don't need to list (and build!) all modules they use, and
all the necessary dependencies and flags again.
|
|
This squashes a warning about the License field. As documented at
https://cabal.readthedocs.io/en/stable/developing-packages.html#pkg-field-license,
before 2.2 the license identifiers were a small list which did not
include LGPL-2.1-or-later.
|
|
|
|
|
|
This application doesn't expose any setters, but in principle
GDBusMessage is mutable so these functions are impure.
|
|
This avoids needing two separate implementations of the DBus protocol in
the application, at the cost of writing a hand-written binding for parts
of the GDBusMessage and GVariant API.
|
|
|
|
This was collected before DLT_DBUS was assigned. BustlePcapReader
doesn't contain the workaround to allow DLT_NULL.
|
|
|
|
|
|
Previously, Bustle read directly from dbus-monitor, parsed the pcap
stream, then reserialized it back to a file.
dbus-monitor → bustle → UI
↓
file
Instead, use tee between dbus-monitor and Bustle to write the raw pcap
stream to disk:
dbus-monitor → tee → bustle
↓
file
This makes the code in Bustle quite a bit simpler.
|
|
|
|
Not used on the Haskell side yet.
|
|
Add new icon
Closes #17
See merge request bustle/bustle!19
|
|
These have an old version of Stack which is not compatible with the
latest lts resolver. https://hub.docker.com/u/zenhaskell has them all
marked as "DEPRECATED". OK!
|
|
Fixes #17
|
|
|
|
Drop close-without-saving confirmation dialog
Closes #15
See merge request bustle/bustle!18
|
|
Anecdotally, most users (including me) rarely want to save their logs,
they just want to record them and read them. In any case, all the
temporary logs are actually kept (forever) in $XDG_CACHE_DIR.
Fixes #15.
|
|
|
|
Update license
See merge request bustle/bustle!17
|
|
pcap-monitor: Fix build error
See merge request bustle/bustle!16
|
|
Since we no longer depend on any GPL library, we can proclaim just LGPL.
Specifying a valid SPDX license string will also make it easier
for distros to automatically check if the project is redistributable.
|
|
g_clear_handle_id was introduced in GLib 2.56 so it was not available in our target (GLIB_VERSION_MAX_ALLOWED),
leading to the following error:
c-sources/pcap-monitor.c: In function ‘handle_error’:
c-sources/pcap-monitor.c:415:13: error:
warning: Not available before
415 | g_clear_handle_id (&self->await_both_errors_id, g_source_remove);
| ^~~~~~~~~~~~~~~~~~~~~~~
|
415 | g_clear_handle_id (&self->await_both_errors_id, g_source_remove);
| ^
Weirdly, it did not seem to affect the build status.
|
|
Makefile: allow passing a custom path to pcap-config
See merge request bustle/bustle!15
|
|
Some build systems need to pass a custom location for the pcap-config
script, so let's provide a PCAP_CONFIG variable that allows such
customization. Its default value is pcap-config, which preserves the
backward compatibility.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
Setup.hs: Don’t import Gettext.hs without hgettext
See merge request bustle/bustle!14
|
|
It is broken and there are no translations anyway.
|
|
Bustle/UI.hs:490:3: error:
• No instance for (Control.Monad.Fail.MonadFail
(Bustle BConfig BState))
arising from a do statement
with the failable pattern ‘[openItem, openTwoItem]’
• In a stmt of a 'do' block:
[openItem, openTwoItem] <- mapM
(getW castToMenuItem) ["open", "openTwo"]
In the expression:
do builder <- io builderNew
io
$ builderAddFromFile builder =<< getDataFileName "data/bustle.ui"
let getW cast name = io $ builderGetObject builder cast name
window <- getW castToWindow "diagramWindow"
....
In an equation for ‘emptyWindow’:
emptyWindow
= do builder <- io builderNew
io
$ builderAddFromFile builder =<< getDataFileName "data/bustle.ui"
let getW cast name = ...
....
|
490 | [openItem, openTwoItem] <- mapM (getW castToMenuItem) ["open", "openTwo"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
Gettext.hs is broken with Cabal ≥ 2.4 so until we fix it, I made importing it
conditional on the value of `hgettext` flag, so that the builds still work.
|
|
This is used by tools like GNOME Builder to show some project metadata.
|
|
|
|
|
|
It's traditional not to do this because of the likelihood that it will
drift out of date. This does make life a little harder for translators,
but we've never seen one in half a decade...
|
|
This is expected, not an error. We can also just track the next
available fake name, rather than scanning the map each time.
|
|
We don't need any of these maps to be lazy; they will all be
fully-evaluated.
|
|
|