Package: broadcom-sta-dkms
Followup-For: Bug #875619

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I tried the attached patch to fix the indentation, but it isn't enough. The
package still fails to install.

Paul

paul@testavoira /home/pbuilder/result $ sudo dpkg -i 
broadcom-sta-dkms_6.30.223.271-7.1_all.deb
[sudo] password for paul: 
Selecting previously unselected package broadcom-sta-dkms.
(Reading database ... 243196 files and directories currently installed.)
Preparing to unpack broadcom-sta-dkms_6.30.223.271-7.1_all.deb ...
Unpacking broadcom-sta-dkms (6.30.223.271-7.1) ...
Setting up broadcom-sta-dkms (6.30.223.271-7.1) ...
Loading new broadcom-sta-6.30.223.271 DKMS files...
Building for 4.12.0-1-amd64
Building initial module for 4.12.0-1-amd64
Done.

wl:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/4.12.0-1-amd64/updates/dkms/

depmod...

Backing up initrd.img-4.12.0-1-amd64 to /boot/initrd.img-4.12.0-1-amd64.old-dkms
Making new initrd.img-4.12.0-1-amd64
(If next boot fails, revert to initrd.img-4.12.0-1-amd64.old-dkms image)
update-initramfs........(bad exit status: 1)

- -------- Uninstall Beginning --------
Module:  broadcom-sta
Version: 6.30.223.271
Kernel:  4.12.0-1-amd64 (x86_64)
- -------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

wl.ko:
 - Uninstallation
   - Deleting from: /lib/modules/4.12.0-1-amd64/updates/dkms/
 - Original module
   - No original module was found for this module on this kernel.
   - Use the dkms install command to reinstall any previous module version.

depmod...

Backing up initrd.img-4.12.0-1-amd64 to /boot/initrd.img-4.12.0-1-amd64.old-dkms
Making new initrd.img-4.12.0-1-amd64
(If next boot fails, revert to initrd.img-4.12.0-1-amd64.old-dkms image)
update-initramfs........(bad exit status: 1)
Warning: There was a problem remaking your initrd.  You must manually remake it
before booting into this kernel.

DKMS: uninstall completed.
Error! Problems with mkinitrd detected.  Automatically uninstalling this module.
DKMS: Install Failed (mkinitrd problems).  Module rolled back to built state.
dpkg: error processing package broadcom-sta-dkms (--install):
 subprocess installed post-installation script returned error exit status 7
Errors were encountered while processing:
 broadcom-sta-dkms

- -- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (200, 'testing'), (50, 
'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.12.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages broadcom-sta-dkms depends on:
ii  dkms  2.3-3

Versions of packages broadcom-sta-dkms recommends:
ii  wireless-tools  30~pre9-12+b1

broadcom-sta-dkms suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEWLZtSHNr6TsFLeZynFyZ6wW9dQoFAlm4KbcACgkQnFyZ6wW9
dQqS4gf+MOlgJls0qSmDgo2/0kjXQAz9JVPiFsi8XqWReobRl2O0IxRimk5Eg9Qn
gv9RzORsjR/V+o+2sSuQHIdc9oMAk/5vmoPO32GLa/nkGPpW70eUoFK2HlJ4RNTA
dQe1Zhu1wHu4gWTzWKGYHNKqN8outbD8jpT1KPThuLTu9aK3uNUGRy75DvJAqU4+
1wzVG1gbhL/O3Vq4w+LjaBFyWo8O0yu8ovwYCQz/IQmeCPvh43VbBjJ21mRX1X7Y
jLI7yHm6z5dBCXEQminJMKSHHmUEX5BMOvCE1BKj4QTXogJA6AJdOu956Z7txL75
ty3cK7bY/KPkHKZs7CtFDB6qsPzYpQ==
=hOr0
-----END PGP SIGNATURE-----
DKMS make.log for broadcom-sta-6.30.223.271 for kernel 4.12.0-1-amd64 (x86_64)
di 12 sep 2017 20:26:28 CEST
/bin/sh: 1: [: Illegal number: 
/bin/sh: 1: [: Illegal number: 
Wireless Extension is the only possible API for this kernel version
Using Wireless Extension API
KBUILD_NOPEDANTIC=1 make -C /lib/modules/4.12.0-1-amd64/build M=`pwd`
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make 
rule.
make[1]: Entering directory '/usr/src/linux-headers-4.12.0-1-amd64'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
Kernel architecture is X86_64
  LD      /var/lib/dkms/broadcom-sta/6.30.223.271/build/built-in.o
  CC [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/shared/linux_osl.o
  CC [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_linux.o
  CC [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_iw.o
  CC [M]  
/var/lib/dkms/broadcom-sta/6.30.223.271/build/src/wl/sys/wl_cfg80211_hybrid.o
  LD [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/wl.o
  Building modules, stage 2.
CFG80211 API is prefered for this kernel version
Using CFG80211 API
Kernel architecture is X86_64
  MODPOST 1 modules
  CC      /var/lib/dkms/broadcom-sta/6.30.223.271/build/wl.mod.o
  LD [M]  /var/lib/dkms/broadcom-sta/6.30.223.271/build/wl.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.12.0-1-amd64'
Description: the Debian package fails to install due to 
-Wmisleading-indentation error
Author: Paul Gevers <elb...@debian.org>
Bug-Debian: https://bugs.debian.org/875619
Index: broadcom-sta/amd64/src/wl/sys/wl_linux.c
===================================================================
--- broadcom-sta.orig/amd64/src/wl/sys/wl_linux.c
+++ broadcom-sta/amd64/src/wl/sys/wl_linux.c
@@ -773,8 +773,8 @@ wl_pci_probe(struct pci_dev *pdev, const
        pci_read_config_dword(pdev, 0x40, &val);
        if ((val & 0x0000ff00) != 0)
                pci_write_config_dword(pdev, 0x40, val & 0xffff00ff);
-               bar1_size = pci_resource_len(pdev, 2);
-               bar1_addr = (uchar *)ioremap_nocache(pci_resource_start(pdev, 
2),
+       bar1_size = pci_resource_len(pdev, 2);
+       bar1_addr = (uchar *)ioremap_nocache(pci_resource_start(pdev, 2),
                        bar1_size);
        wl = wl_attach(pdev->vendor, pdev->device, pci_resource_start(pdev, 0), 
PCI_BUS, pdev,
                pdev->irq, bar1_addr, bar1_size);

Reply via email to