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

build: support out-of-tree compilation for id3 plugin #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

build: support out-of-tree compilation for id3 plugin #19

wants to merge 1 commit into from

Conversation

Tarnyko
Copy link

@Tarnyko Tarnyko commented Oct 26, 2015

Some build systems, such as Yocto, use a separate directory
to output compilation results.

Creating an id3 source file with gawk using given syntax
will then fail, because the output directory is invalid.
Even if it was, there is a risk for the rest of the process
to fail if it looks for the generated file inside the
source tree instead of the build tree.

Thus, fix this by forcing creation inside the source tree.

Signed-off-by: Manuel Bachmann manuel.bachmann@iot.bzh

Some build systems, such as Yocto, use a separate directory
to output compilation results.

Creating an id3 source file with gawk using given syntax
will then fail, because the output directory is invalid.
Even if it was, there is a risk for the rest of the process
to fail if it looks for the generated file inside the
source tree instead of the build tree.

Thus, fix this by forcing creation inside the source tree.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
@Tarnyko
Copy link
Author

Tarnyko commented Oct 26, 2015

Hi folks,

Please consider this commit, which allows building latest version under Yocto/OpenEmbedded.

@barbieri
Copy link
Member

Are you sure this is the best approach for out-of-tree builds? What if we generate it in builddir and change _SOURCES?

If so, just need to force mkdir -p before the awk

@dorileo
Copy link

dorileo commented Oct 26, 2015

The patch indeed seems to fix the issue, but @barbieri do you mean not generating source code within the source tree but builddir instead?

@barbieri
Copy link
Member

Yes

shr-project pushed a commit to openembedded/meta-openembedded that referenced this pull request Oct 26, 2015
We update "lightmediascanner" to its latest version,
which also allows us to :
- remove mentions of former company (now dissolved)
and website (now migrated to GitHub) ;
- properly split all plugins into subpackages ;
- have a new plugin based on libav, "generic", which
we do not automatically enable because of the well-known
licensing restrictions of its parent package.

MP4 plugin is disabled, because it depends on the MP4v2
library, which we do not have.

ID3 plugin requires a patch, already sent to upstream :
profusion/lightmediascanner#19

meta-openembedded's only dependent recipe, "enjoy", has
been verified with this change.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
@Tarnyko
Copy link
Author

Tarnyko commented Oct 27, 2015

@barbieri Good point, few time left at the moment, will look at it next week.

shr-project pushed a commit to openembedded/meta-openembedded that referenced this pull request Nov 2, 2015
We update "lightmediascanner" to its latest version,
which also allows us to :
- remove mentions of former company (now dissolved)
and website (now migrated to GitHub) ;
- properly split all plugins into subpackages ;
- have a new plugin based on libav, "generic", which
we do not automatically enable because of the well-known
licensing restrictions of its parent package.

MP4 plugin is disabled, because it depends on the MP4v2
library, which we do not have.

ID3 plugin requires a patch, already sent to upstream :
profusion/lightmediascanner#19

meta-openembedded's only dependent recipe, "enjoy", has
been verified with this change.

Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants