Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 467210 - sys-apps/rescan-scsi-bus is missing rdepend on app-admin/killproc (for usleep command)
Summary: sys-apps/rescan-scsi-bus is missing rdepend on app-admin/killproc (for usleep...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: KEYWORDREQ
Depends on: 494254
Blocks: 530402
  Show dependency tree
 
Reported: 2013-04-25 13:42 UTC by Martin Pluskal
Modified: 2015-04-22 18:09 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
One-liner fix to RDEPEND to add app-admin/killproc dependency (rescan-scsi-bus-RDEPEND-killproc.patch,339 bytes, patch)
2014-06-28 15:35 UTC, Hank Leininger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Pluskal 2013-04-25 13:42:04 UTC
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.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2013-04-25 14:20:51 UTC
Correct usleep is part of app-admin/killproc. The separate usleep package shouldn't have been added to Portage. See bug 467212.
Comment 2 Kamen Dokov 2014-04-30 18:48:15 UTC
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
Comment 3 Hank Leininger 2014-06-28 15:35:59 UTC
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.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-07-01 06:04:47 UTC
InCVS.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-07-01 06:18:00 UTC
alpha hppa ppc64 sparc:
you need to keyword app-admin/killproc per bug 494254 and then sys-apps/rescan-scsi-bus-1.57-r1.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2014-07-01 13:11:12 UTC
Marked ~hppa.
Comment 7 Tobias Klausmann (RETIRED) gentoo-dev 2014-07-18 11:04:46 UTC
Keyworded on alpha.
Comment 8 Raúl Porcel (RETIRED) gentoo-dev 2014-08-01 10:45:48 UTC
sparc done
Comment 9 Joshua Kinard gentoo-dev 2014-08-26 09:43:43 UTC
~mips added to app-admin/killproc, as that was causing problems with a catalyst run.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2015-04-22 18:09:35 UTC
Stable for PPC64 (bug #530402). Closing.