Bug#1084243: bustle: FTBFS: Bustle/Loader/Pcap.hs:107:5: error: [GHC-88464]

Santiago Vila sanvila at debian.org
Mon Oct 7 09:29:26 BST 2024


Package: src:bustle
Version: 0.8.0-2
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary
    dh_update_autotools_config
    dh_autoreconf
    debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
ghc -package Cabal Setup.hs -o setup
[1 of 2] Compiling Main             ( Setup.hs, Setup.o )
[2 of 2] Linking setup
./setup configure --prefix /usr -f-threaded --datasubdir=bustle
Configuring bustle-0.8.0...
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make
make[2]: Entering directory '/<<PKGBUILDDIR>>'
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
cc -Idist/build/autogen -g -O2 -Wall -Wunused -Waddress -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro \
	-o dist/build/bustle-pcap c-sources/pcap-reader.c c-sources/pcap-monitor.c c-sources/bustle-pcap.c \
	-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -pthread -lgio-2.0 -lgobject-2.0 -lglib-2.0  -I/usr/include -lpcap
help2man --output=bustle-pcap.1 --no-info --name='Generate D-Bus logs for bustle' dist/build/bustle-pcap
msgfmt --desktop -d po --template data/org.freedesktop.Bustle.desktop.in -o org.freedesktop.Bustle.desktop
msgfmt: po/LINGUAS does not exist
msgfmt --xml -d po --template data/org.freedesktop.Bustle.appdata.xml.in -o org.freedesktop.Bustle.appdata.xml
Warning: program compiled against libxml 212 using older 209
msgfmt: po/LINGUAS does not exist
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
./setup build
Preprocessing executable 'bustle' for bustle-0.8.0..
Building executable 'bustle' for bustle-0.8.0..
[ 1 of 28] Compiling Bustle.Application.Monad ( Bustle/Application/Monad.hs, dist/build/bustle/bustle-tmp/Bustle/Application/Monad.o )
[ 2 of 28] Compiling Bustle.GVariant  ( Bustle/GVariant.hs, dist/build/bustle/bustle-tmp/Bustle/GVariant.o )
[ 3 of 28] Compiling Bustle.GDBusMessage ( Bustle/GDBusMessage.hs, dist/build/bustle/bustle-tmp/Bustle/GDBusMessage.o )

Bustle/GDBusMessage.hs:70:1: warning: [-Wunused-imports]
     The import of ‘Foreign.Marshal.Alloc’ is redundant
       except perhaps to import instances from ‘Foreign.Marshal.Alloc’
     To import instances alone, use: import Foreign.Marshal.Alloc()
    |
70 | import Foreign.Marshal.Alloc
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 4 of 28] Compiling Bustle.Missing   ( Bustle/Missing.hs, dist/build/bustle/bustle-tmp/Bustle/Missing.o )
[ 5 of 28] Compiling Bustle.Regions   ( Bustle/Regions.hs, dist/build/bustle/bustle-tmp/Bustle/Regions.o )
[ 6 of 28] Compiling Bustle.Translation ( src-no-hgettext/Bustle/Translation.hs, dist/build/bustle/bustle-tmp/Bustle/Translation.o )
[ 7 of 28] Compiling Bustle.Types     ( Bustle/Types.hs, dist/build/bustle/bustle-tmp/Bustle/Types.o )
[ 8 of 28] Compiling Bustle.Stats     ( Bustle/Stats.hs, dist/build/bustle/bustle-tmp/Bustle/Stats.o )
[ 9 of 28] Compiling Bustle.Reader    ( Bustle/Reader.hs, dist/build/bustle/bustle-tmp/Bustle/Reader.o )
[10 of 28] Compiling Bustle.Monitor   ( Bustle/Monitor.hs, dist/build/bustle/bustle-tmp/Bustle/Monitor.o )

Bustle/Monitor.hs:41:1: warning: [-Wunused-imports]
     The qualified import of ‘Data.ByteString’ is redundant
       except perhaps to import instances from ‘Data.ByteString’
     To import instances alone, use: import Data.ByteString()
    |
41 | import qualified Data.ByteString as BS
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[11 of 28] Compiling Bustle.Marquee   ( Bustle/Marquee.hs, dist/build/bustle/bustle-tmp/Bustle/Marquee.o )
[12 of 28] Compiling Bustle.StatisticsPane ( Bustle/StatisticsPane.hs, dist/build/bustle/bustle-tmp/Bustle/StatisticsPane.o )
[13 of 28] Compiling Bustle.Loader.Pcap ( Bustle/Loader/Pcap.hs, dist/build/bustle/bustle-tmp/Bustle/Loader/Pcap.o )

Bustle/Loader/Pcap.hs:107:5: error: [GHC-88464]
     Variable not in scope: guard :: Bool -> MaybeT IO a3
     |
107 |     guard (sender == B.dbusName)
     |     ^^^^^

Bustle/Loader/Pcap.hs:109:5: error: [GHC-88464]
     Variable not in scope: guard :: Bool -> MaybeT IO a2
     |
109 |     guard (type_ == MessageTypeSignal)
     |     ^^^^^

Bustle/Loader/Pcap.hs:111:5: error: [GHC-88464]
     Variable not in scope: guard :: Bool -> MaybeT IO a1
     |
111 |     guard (iface == B.dbusInterface)
     |     ^^^^^

Bustle/Loader/Pcap.hs:113:5: error: [GHC-88464]
     Variable not in scope: guard :: Bool -> MaybeT IO a0
     |
113 |     guard (formatMemberName member == "NameOwnerChanged")
     |     ^^^^^

Bustle/Loader/Pcap.hs:150:5: error: [GHC-88464]
     Variable not in scope: guard :: Bool -> MaybeT IO a4
     |
150 |     guard (formatMemberName member == "GetNameOwner")
     |     ^^^^^
[14 of 28] Compiling Bustle.Diagram   ( Bustle/Diagram.hs, dist/build/bustle/bustle-tmp/Bustle/Diagram.o )

Bustle/Diagram.hs:307:5: error: [GHC-88464]
     Variable not in scope:
       forM_ :: [Shape] -> (Shape -> Render ()) -> Render ()
     |
307 |     forM_ (filter f shapes) $ \x -> do
     |     ^^^^^

Bustle/Diagram.hs:308:9: error: [GHC-88464]
     Variable not in scope: when :: Bool -> Render () -> Render a2
     |
308 |         when drawBounds (drawBoundingBox x)
     |         ^^^^

Bustle/Diagram.hs:408:5: error: [GHC-88464]
     Variable not in scope:
       forM_ :: Maybe Double -> (Double -> Render ()) -> Render a1
     |
408 |     forM_ mleft $ \left -> do
     |     ^^^^^

Bustle/Diagram.hs:414:5: error: [GHC-88464]
     Variable not in scope:
       forM_ :: Maybe Double -> (Double -> Render ()) -> Render ()
     |
414 |     forM_ mright $ \right -> do
     |     ^^^^^

Bustle/Diagram.hs:472:24: error: [GHC-88464]
     Variable not in scope:
       forM_ :: [(a0, String)] -> ((Double, s0) -> Render ()) -> Render ()
     |
472 | drawHeader names x y = forM_ (zip [0..] names) $ \(i, name) -> do
     |                        ^^^^^

Bustle/Diagram.hs:506:5: error: [GHC-88464]
     Variable not in scope:
       forM_ :: [Double] -> (Double -> Render ()) -> Render ()
     |
506 |     forM_ (toList xs) $ \x -> do
     |     ^^^^^
[16 of 28] Compiling Bustle.UI.DetailsView ( Bustle/UI/DetailsView.hs, dist/build/bustle/bustle-tmp/Bustle/UI/DetailsView.o )
[17 of 28] Compiling Bustle.UI.Recorder ( Bustle/UI/Recorder.hs, dist/build/bustle/bustle-tmp/Bustle/UI/Recorder.o )
[18 of 28] Compiling Bustle.Util      ( Bustle/Util.hs, dist/build/bustle/bustle-tmp/Bustle/Util.o )
[22 of 28] Compiling Paths_bustle     ( dist/build/bustle/autogen/Paths_bustle.hs, dist/build/bustle/bustle-tmp/Paths_bustle.o )
[23 of 28] Compiling Bustle.UI.RecordAddressDialog ( Bustle/UI/RecordAddressDialog.hs, dist/build/bustle/bustle-tmp/Bustle/UI/RecordAddressDialog.o )
[24 of 28] Compiling Bustle.UI.OpenTwoDialog ( Bustle/UI/OpenTwoDialog.hs, dist/build/bustle/bustle-tmp/Bustle/UI/OpenTwoDialog.o )
[25 of 28] Compiling Bustle.UI.FilterDialog ( Bustle/UI/FilterDialog.hs, dist/build/bustle/bustle-tmp/Bustle/UI/FilterDialog.o )

Bustle/UI/FilterDialog.hs:34:1: warning: [-Wunused-imports]
     The import of ‘Graphics.UI.Gtk.ModelView.CellRendererCombo’ is redundant
       except perhaps to import instances from ‘Graphics.UI.Gtk.ModelView.CellRendererCombo’
     To import instances alone, use: import Graphics.UI.Gtk.ModelView.CellRendererCombo()
    |
34 | import Graphics.UI.Gtk.ModelView.CellRendererCombo (cellComboTextModel)
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Bustle/UI/FilterDialog.hs:145:17: warning: [GHC-62161] [-Wincomplete-uni-patterns]
     Pattern match(es) are non-exhaustive
     In a pattern binding:
         Patterns of type ‘Maybe Int’ not matched: Nothing
     |
145 |             let Just j = elemIndex (neVisibility ne) nameVisibilities
     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Bustle/UI/FilterDialog.hs:148:29: warning: [GHC-62161] [-Wincomplete-uni-patterns]
     Pattern match(es) are non-exhaustive
     In a lambda abstraction:
         Patterns of type ‘[Int]’, ‘String’ not matched:
             [] _
             (_:_:_) _
     |
148 |     comboCell `on` edited $ \[i] str -> do
     |                             ^^^^^^^^^^^^^^...

Bustle/UI/FilterDialog.hs:149:13: warning: [GHC-62161] [-Wincomplete-uni-patterns]
     Pattern match(es) are non-exhaustive
     In a pattern binding:
         Patterns of type ‘Maybe Int’ not matched: Nothing
     |
149 |         let (Just j) = elemIndex str nameVisibilityNames
     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Bustle/UI/FilterDialog.hs:189:33: warning: [GHC-62161] [-Wincomplete-uni-patterns]
     Pattern match(es) are non-exhaustive
     In a lambda abstraction:
         Patterns of type ‘[Int]’, ‘TreeIter’ not matched:
             [] _
             (_:_:_) _
     |
189 |     nameStore `on` rowChanged $ \[i] _iter -> do
     |                                 ^^^^^^^^^^^^^^^^...
[26 of 28] Compiling Bustle.UI.AboutDialog ( Bustle/UI/AboutDialog.hs, dist/build/bustle/bustle-tmp/Bustle/UI/AboutDialog.o )
make[1]: *** [debian/rules:21: override_dh_auto_build] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202410/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.



More information about the Pkg-haskell-maintainers mailing list