Skip to content

msgpack-c 6.0.1 generates invalid pkg-config file #1128

Closed

Description

@fumoboy007

Describe the bug
msgpack-c 6.0.1 generates an invalid msgpack-c.pc pkg-config file. The libdir and includedir variables are missing the prefix:

prefix=/opt/homebrew/Cellar/msgpack/6.0.1
exec_prefix=/opt/homebrew/Cellar/msgpack/6.0.1
libdir=lib
includedir=include

Name: MessagePack
Description: Binary-based efficient object serialization library
Version: 6.0.1
Libs: -L${libdir} -lmsgpack-c
Cflags: -I${includedir}

To Reproduce
Just build/install the project with default settings.

Expected behavior
msgpack-c 6.0.0 generates a valid msgpack-c.pc:

prefix=/opt/homebrew/Cellar/msgpack/6.0.0
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: MessagePack
Description: Binary-based efficient object serialization library
Version: 6.0.0
Libs: -L${libdir} -lmsgpack-c
Cflags: -I${includedir}

Notice that libdir and includedir correctly include the prefix.

Activity

  1. fumoboy007 commented on Jun 24, 2024

    @fumoboy007
    Author

    d1af4a3 is the culprit.

    The bug was already fixed by 68cc50a and 4e027b7. We just need to release a new version including those two commits.

    Perhaps we should also consider removing the 6.0.1 release to avoid confusion.

  2. redboltz commented on Jun 24, 2024

    @redboltz
    Contributor

    Could you create a pull request that removes d1af4a3 effect ?

    Then I will check it and merge it. Then I will release the merged c_master as 6.0.2 with CHANGELOG.

  3. fumoboy007 commented on Jun 24, 2024

    @fumoboy007
    Author

    @redboltz c_master already has the fix that I mentioned, so we can just create 6.0.2 from the current c_master. Or did I misunderstand you?

  4. redboltz commented on Jun 24, 2024

    @redboltz
    Contributor

    Ok, I understand. I will release 6.0.2 soon.

  5. redboltz commented on Jun 24, 2024

    @redboltz
    Contributor

    I noticed that #1124 and #1125 are related issues.
    Now I am confirming that I should merge #1125 and close #1124. After this issue would be solved, I will release.

    @fumoboy007, could you try that #1125 works as you expected ?

  6. fumoboy007 commented on Jun 24, 2024

    @fumoboy007
    Author

    Ah, yes. That is a separate issue but also related, so would be good to include in 6.0.2.

    I confirmed that #1125 works as expected. It is a small change, so I think we should merge this one and release 6.0.2.

    #1124 is a more foundational change that may reduce complexity in the long term though I am not sure whether the current pull request is bug-free. It’s probably too risky of a change for 6.0.2 but we could keep it open and let @saper and @otegami decide on what to do about it later.

  7. fumoboy007 commented on Jun 24, 2024

    @fumoboy007
    Author

    By the way, I just noticed that tag c-6.0.2 already exists!

  8. redboltz commented on Jun 24, 2024

    @redboltz
    Contributor

    By the way, I just noticed that tag c-6.0.2 already exists!

    Yes, I was working to release c-6.0.2 just before. Current c-6.0.2 is incorrect and not released. I will force update later.
    However, it would make confusion, so I removed it just now.

  9. redboltz commented on Jun 24, 2024

    @redboltz
    Contributor

    6.0.2 has been pre released.
    https://github.com/msgpack/msgpack-c/releases/tag/c-6.0.2

    Could you check this ?

    After you checking, I will release it.

  10. fumoboy007 commented on Jun 24, 2024

    @fumoboy007
    Author

    Confirmed that version 6.0.2 works as expected. Thanks!

  11. redboltz commented on Jun 24, 2024

    @redboltz
    Contributor

    Now 6.0.2 has been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions