DREAMER

[bitbake] WARNING: python should use 4 spaces indentation, (solved) 본문

프로그래밍/YOCTO

[bitbake] WARNING: python should use 4 spaces indentation, (solved)

연소민 2023. 3. 22. 16:54
728x90
반응형

busybox를 버전에 따라 비교하기 위해 3개의 버전을 빌드하는 작업 중 발생한 warning 해결 법이다.

다음 3개 중 1.27.2 버전에서만 warning이 발생하였다.

  • 1.27.2 (warning 발생)
  • 1.31.1 (빌드 성공)
  • 1.36.0 (빌드 성공)

다음 명령어 실행 시 warning 발생, 무시하였으나 해당 경고의 영향으로 compile 에러가 나는 건가 싶어서 warning을 해결 후 compile 하였으나 같은 에러로 실패하였다. 그러므로 compile 실패를 해결하는 것이 아닌, 단순히 warning 해결용으로 작성 중이다.

$ bitbake busybox -c fetch
$ bitbake busybox -c configure

실행 시 다음의 warning 발생

WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 57
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 58
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 59
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 60
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 61
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 62
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 63
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 67
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 68
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 69
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 70
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 71
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 72
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 73
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 74
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 75
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 76
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 81
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 82
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 84
WARNING: python should use 4 spaces indentation, but found tabs in busybox.inc, line 85

에디터를 열어서 find and replace로 \t를 "    " 공백 4개로 대체하였다. 끝.

 

=================================================================================

에러

bitbake busybox -c compile

 

728x90
반응형
Comments