)]}'
{
  "commit": "101fcf0806bbdf8a9202cabd668e650c9ce8cfb1",
  "tree": "e66e7d0496df1f65f8c5e40296f39a58b9c9a92f",
  "parents": [
    "7e4df50d17f0a04a39193af2a7bac4076eed47c4"
  ],
  "author": {
    "name": "Baptiste Jonglez",
    "email": "git@bitsofnetworks.org",
    "time": "Fri Jul 08 00:46:04 2016 +0200"
  },
  "committer": {
    "name": "Baptiste Jonglez",
    "email": "git@bitsofnetworks.org",
    "time": "Fri Jul 08 00:46:04 2016 +0200"
  },
  "message": "Fix compilation errors for downstream projects caused by incorrect pkgconfig paths\n\nRecent commit 911e2b0fea (\"By default use \u003cprefix\u003e relative paths when\ninstalling\") introduced relative install paths in CMake.  But this\ninteracts badly with commit e6f1cffdd3 from a year ago: now, the paths in\n`pkgconfig/jsoncpp.pc` are relative, which is incorrect.\n\nBefore 911e2b0fea (1.7.2 on Archlinux), this was correct:\n\n    $ head -4 /usr/lib/pkgconfig/jsoncpp.pc\n    prefix\u003d/usr\n    exec_prefix\u003d${prefix}\n    libdir\u003d/usr/lib\n    includedir\u003d/usr/include\n\nAfter 911e2b0fea (1.7.3 on Archlinux), this is now incorrect:\n\n    $ head -4 /usr/lib/pkgconfig/jsoncpp.pc\n    prefix\u003d/usr\n    exec_prefix\u003d${prefix}\n    libdir\u003dlib\n    includedir\u003dinclude\n\nThis change causes hard-to-debug compilation errors for projects that\ndepend on jsoncpp, for instance:\n\n    CXXLD    libring.la\n    /tmp/ring-daemon/src/ring-daemon/src/../libtool: line 7486: cd: lib: No such file or directory\n    libtool:   error: cannot determine absolute directory name of \u0027lib\u0027\n    make[3]: *** [Makefile:679: libring.la] Error 1\n\nThis is because jsoncpp contributes `-Llib -ljsoncpp` to the LDFLAGS, via\nthe pkg-config machinery.  Notice the relative path in `-Llib`.\n\nTo fix this, simply revert commit e6f1cffdd3 (\"Fix custom includedir \u0026\nlibdir substitution in pkg-config\").  The change in 911e2b0fea should have\nthe same effect.\n\nSee #279, #470 for references.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3ca4a84d02728617c600f0cb2d262469cb67de87",
      "old_mode": 33188,
      "old_path": "pkg-config/jsoncpp.pc.in",
      "new_id": "9613181b2d126425b625b7a719c10f5eafef0bd1",
      "new_mode": 33188,
      "new_path": "pkg-config/jsoncpp.pc.in"
    }
  ]
}
