Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New AV warnings on Homebrew #203

Closed
chapulina opened this issue Apr 14, 2021 · 6 comments
Closed

New AV warnings on Homebrew #203

chapulina opened this issue Apr 14, 2021 · 6 comments
Assignees
Labels
AV AV component bug Something isn't working macOS macOS support tests Broken or missing tests / testing infra

Comments

@chapulina
Copy link
Contributor

Environment

  • OS Version: macOS Mojave
  • Source or binary build? Source, version 3

Description

  • Expected behavior: No warnings
  • Actual behavior: 4 warnings, turning the build yellow

There are 4 new deprecation warnings on macOS. This is most likely caused by an update of an upstream dependency. Due to Homebrew's rolling nature, we unfortunately need to be addressing these as they come. It would be great to have some stability on the macOS side like we have on Linux.

Steps to reproduce

Run Homebrew CI for this repository.

Output

/Users/jenkins/workspace/ignition_common-ci-pr_any-homebrew-amd64/ign-common/av/src/AudioDecoder.cc:113:3: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
  av_init_packet(&packet);
  ^
/usr/local/Cellar/ffmpeg/4.4/include/libavcodec/packet.h:487:1: note: 'av_init_packet' has been explicitly marked deprecated here
attribute_deprecated
^
/usr/local/Cellar/ffmpeg/4.4/include/libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated'
#    define attribute_deprecated __attribute__((deprecated))
                                                ^
/Users/jenkins/workspace/ignition_common-ci-pr_any-homebrew-amd64/ign-common/av/src/VideoEncoder.cc:801:5: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
    av_init_packet(avPacket);
    ^
/usr/local/Cellar/ffmpeg/4.4/include/libavcodec/packet.h:487:1: note: 'av_init_packet' has been explicitly marked deprecated here
attribute_deprecated
^
/usr/local/Cellar/ffmpeg/4.4/include/libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated'
#    define attribute_deprecated __attribute__((deprecated))
                                                ^
/Users/jenkins/workspace/ignition_common-ci-pr_any-homebrew-amd64/ign-common/av/src/VideoEncoder.cc:895:7: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
      av_init_packet(avPacket);
      ^
/usr/local/Cellar/ffmpeg/4.4/include/libavcodec/packet.h:487:1: note: 'av_init_packet' has been explicitly marked deprecated here
attribute_deprecated
^
/usr/local/Cellar/ffmpeg/4.4/include/libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated'
#    define attribute_deprecated __attribute__((deprecated))
                                                ^

CC @scpeters

@chapulina chapulina added bug Something isn't working tests Broken or missing tests / testing infra macOS macOS support AV AV component labels Apr 14, 2021
@scpeters
Copy link
Member

this was deprecated in the following patch:

the patch has some clues for migration

@scpeters scpeters self-assigned this Apr 19, 2021
@scpeters
Copy link
Member

started work in d6b7844

@chapulina
Copy link
Contributor Author

Do we need ifdefs to support different ffmpeg versions?

@scpeters
Copy link
Member

Do we need ifdefs to support different ffmpeg versions?

I used existing ifdefs for my first approach in d6b7844; I think the rest of the cases will need new ifdefs

@chapulina
Copy link
Contributor Author

Got it, let me know if I can help as buildfarmer 👩‍🌾

@mjcarroll
Copy link
Contributor

Fixed by #220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AV AV component bug Something isn't working macOS macOS support tests Broken or missing tests / testing infra
Projects
None yet
Development

No branches or pull requests

3 participants