rescan-scsi-bus.sh uses usleep, however rdepend for sys-apps/usleep is missing. Reproducible: Always Steps to Reproduce: 1. rescan-scsi-bus --color --forcerescan 2. 3. Actual Results: rescan-scsi-bus --color --forcerescan: /usr/sbin/rescan-scsi-bus: line 628: [: 1.11: integer expression expected Host adapter 0 (ahci) found. Host adapter 1 (ahci) found. Host adapter 2 (ahci) found. Host adapter 3 (ahci) found. Host adapter 4 (ahci) found. Host adapter 5 (ahci) found. Syncing file systems Scanning SCSI subsystem for new devices and remove devices that have disappeared Scanning host 0 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs Scanning for device 0 0 0 0 ... OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: KINGSTON SVP200S Rev: 332A Type: Direct-Access ANSI SCSI revision: 05 Scanning host 1 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs Scanning for device 1 0 0 0 ... OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: HL-DT-ST Model: DVD-ROM DH41N Rev: A101 Type: CD-ROM ANSI SCSI revision: 05 /usr/sbin/rescan-scsi-bus: line 236: usleep: command not found /usr/sbin/rescan-scsi-bus: line 236: usleep: command not found /usr/sbin/rescan-scsi-bus: line 236: usleep: command not found /usr/sbin/rescan-scsi-bus: line 236: usleep: command not found /usr/sbin/rescan-scsi-bus: line 236: usleep: command not found /usr/sbin/rescan-scsi-bus: line 236: usleep: command not found OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 00: command not found Vendor: HL-DT-ST Model: DVD-ROM DH41N Rev: A101 found Type: CD-ROM ANSI SCSI revision: 05 Scanning host 2 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs Scanning for device 2 0 0 0 ... OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 00 Vendor: PLDS Model: DVD+-RW DH-16ACS Rev: JD11 Type: CD-ROM ANSI SCSI revision: 05 /usr/sbin/rescan-scsi-bus: line 236: usleep: command not found /usr/sbin/rescan-scsi-bus: line 236: usleep: command not found /usr/sbin/rescan-scsi-bus: line 236: usleep: command not found /usr/sbin/rescan-scsi-bus: line 236: usleep: command not found /usr/sbin/rescan-scsi-bus: line 236: usleep: command not found /usr/sbin/rescan-scsi-bus: line 236: usleep: command not found OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 00: command not found Vendor: PLDS Model: DVD+-RW DH-16ACS Rev: JD11 found Type: CD-ROM ANSI SCSI revision: 05 Scanning host 3 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs Scanning host 4 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs Scanning host 5 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs 0 new device(s) found. 0 device(s) removed. Expected Results: rescan-scsi-bus --color --forcerescan: /usr/sbin/rescan-scsi-bus: line 628: [: 1.11: integer expression expected Host adapter 0 (ahci) found. Host adapter 1 (ahci) found. Host adapter 2 (ahci) found. Host adapter 3 (ahci) found. Host adapter 4 (ahci) found. Host adapter 5 (ahci) found. Syncing file systems Scanning SCSI subsystem for new devices and remove devices that have disappeared Scanning host 0 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs Scanning for device 0 0 0 0 ... OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: KINGSTON SVP200S Rev: 332A Type: Direct-Access ANSI SCSI revision: 05 Scanning host 1 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs Scanning for device 1 0 0 0 ... OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 00 Vendor: HL-DT-ST Model: DVD-ROM DH41N Rev: A101 Type: CD-ROM ANSI SCSI revision: 05 Scanning host 2 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs Scanning for device 2 0 0 0 ... OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 00 Vendor: PLDS Model: DVD+-RW DH-16ACS Rev: JD11 Type: CD-ROM ANSI SCSI revision: 05 Scanning host 3 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs Scanning host 4 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs Scanning host 5 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs 0 new device(s) found. 0 device(s) removed.
Correct usleep is part of app-admin/killproc. The separate usleep package shouldn't have been added to Portage. See bug 467212.
One year later: rescan-scsi-bus │ Host adapter 0 ((null)) found. Host adapter 1 (sata_nv) found. Host adapter 2 (sata_nv) found. Host adapter 3 (sata_nv) found. Host adapter 4 (sata_nv) found. Host adapter 5 (sata_nv) found. Host adapter 6 (sata_nv) found. Host adapter 7 (pata_amd) found. Host adapter 8 (pata_amd) found. Scanning SCSI subsystem for new devices Scanning host 0 for SCSI target IDs 0 1 2 3 4 5 6 7, all LUNs Scanning for device 0 0 0 0 ... OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: Areca Model: ARC-1210-VOL#00 Rev: R001 Type: Direct-Access ANSI SCSI revision: 05 /usr/sbin/rescan-scsi-bus: line 374: usleep: command not found /usr/sbin/rescan-scsi-bus: line 374: usleep: command not found /usr/sbin/rescan-scsi-bus: line 374: usleep: command not found /usr/sbin/rescan-scsi-bus: line 374: usleep: command not found /usr/sbin/rescan-scsi-bus: line 374: usleep: command not found /usr/sbin/rescan-scsi-bus: line 374: usleep: command not found
Created attachment 379856 [details, diff] One-liner fix to RDEPEND to add app-admin/killproc dependency Same problem here/still; attached patch fixes the ebuild.
InCVS.
alpha hppa ppc64 sparc: you need to keyword app-admin/killproc per bug 494254 and then sys-apps/rescan-scsi-bus-1.57-r1.
Marked ~hppa.
Keyworded on alpha.
sparc done
~mips added to app-admin/killproc, as that was causing problems with a catalyst run.
Stable for PPC64 (bug #530402). Closing.