Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 596270 - >=net-misc/connman-1.32: unneeded files/connman-1.32-execinfo-assumptions.patch patch
Summary: >=net-misc/connman-1.32: unneeded files/connman-1.32-execinfo-assumptions.pat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: nvinson234
URL: https://git.kernel.org/cgit/network/c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-05 15:52 UTC by Coacher
Modified: 2016-10-11 12:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2016-10-05 15:52:48 UTC
Hello.

As seen in ${URL}, upstream already checks for execinfo.h and compiles the related code conditionally. There's no need to add the same tricks in a separate patch.

Please fix.
Comment 1 nvinson234 2016-10-08 09:12:11 UTC
The cited commit is incomplete and leads to an improperly defined print_backtrace() function.  Review of upstream's tree shows that the incorrect definition still exists.  Therefore, the Gentoo patch is still required.  That said, the first two hunks listed in the patch appear to be redundant with respect to the code and can probably be removed.
Comment 2 Coacher 2016-10-08 21:15:56 UTC
> The cited commit is incomplete and leads to an improperly defined
> print_backtrace() function.  Review of upstream's tree shows that the incorrect
> definition still exists.  Therefore, the Gentoo patch is still required.
I disagree.
Configure script sets BACKTRACE depending on execinfo.h presence [1].
Makefile compiles code with print_backtrace() definition iff BACKTRACE is set [2].

[1]: https://git.kernel.org/cgit/network/connman/connman.git/tree/configure.ac?id=61b0b1377a560d81ac9a4b2348aae6852c7eebae#n186
[2]: https://git.kernel.org/cgit/network/connman/connman.git/tree/Makefile.am?id=61b0b1377a560d81ac9a4b2348aae6852c7eebae#n46
Comment 3 nvinson234 2016-10-09 15:25:36 UTC
All of those commits were before git said connman-1.32-execinfo-assumptions.patch existed.  I don't see any problem with those commits, so it makes no sense for the patch to have been created.

So, I dug a bit deeper.  Turns out that the patch was originally named net-misc/connman/files/connman-1.16-execinfo-assumptions.patch and for some (now unknown) reason I renamed it to net-misc/connman/files/connman-1.32-execinfo-assumptions.patch (Note to self: DON'T DO THAT).  In any case, the rename was done as part of the bump to 1.32, so I thought it was a required patch I made as part of that version bump.  Since it does appear that's not the case, I'll remove the patch completely in the next bump.
Comment 4 nvinson234 2016-10-09 15:29:56 UTC
(In reply to nvinson234 from comment #3)
> All of those commits were before git said
> connman-1.32-execinfo-assumptions.patch existed.  I don't see any problem
> with those commits, so it makes no sense for the patch to have been created.
> 
> So, I dug a bit deeper.  Turns out that the patch was originally named
> net-misc/connman/files/connman-1.16-execinfo-assumptions.patch and for some
> (now unknown) reason I renamed it to
> net-misc/connman/files/connman-1.32-execinfo-assumptions.patch (Note to
> self: DON'T DO THAT).  In any case, the rename was done as part of the bump
> to 1.32, so I thought it was a required patch I made as part of that version
> bump.  Since it does appear that's not the case, I'll remove the patch
> completely in the next bump.

minor correction.  I didn't rename the patch, I copied it and then patched the patch slightly so it would work again.  Nonetheless, it's going to be excised.