Opened 11 years ago

Closed 11 years ago

#38774 closed defect (fixed)

Add libstdc++_nanosleep.patch to gcc47

Reported by: howarth@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: haspatch Cc: cooljeanius (Eric Gallager)
Port: gcc47

Description (last modified by ryandesign (Ryan Carsten Schmidt))

The attached packaging removes the libstdcxx subport from gcc47 since gcc48 now contains it as well as implementing the changes to support the move of the libgcc*dylib files into the libstdcxx subpart. Also added patch to backport the nanosleep support for threads in c++11.

Attachments (3)

Portfile.diff (4.2 KB) - added by howarth@… 11 years ago.
Portfile diff to deprecate libstdcxx subport in gcc47 and support the move of libgcc*dylib to libstdcxx subport in gcc48
libstdc++_nanosleep.patch (1.1 KB) - added by howarth@… 11 years ago.
backport of fix to support nanosleep in threads on c++11
test.cc (328 bytes) - added by howarth@… 11 years ago.
test case that demonstrates current gcc47 uses two unwinders

Download all attachments as: .zip

Change History (9)

Changed 11 years ago by howarth@…

Attachment: Portfile.diff added

Portfile diff to deprecate libstdcxx subport in gcc47 and support the move of libgcc*dylib to libstdcxx subport in gcc48

Changed 11 years ago by howarth@…

Attachment: libstdc++_nanosleep.patch added

backport of fix to support nanosleep in threads on c++11

comment:1 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:2 Changed 11 years ago by howarth@…

Confirmed that this packaging installs cleanly with the new gcc48 packaging and that the test case from ticket #38732 now compiles and runs properly using gcc47 ...

% g++-mp-4.7 -std=c++11 test.cc
% ./a.out
doing the test
success, result is 1
Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 11 years ago by howarth@…

Attachment: test.cc added

test case that demonstrates current gcc47 uses two unwinders

comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: haspatch added
Owner: changed from macports-tickets@… to mww@…

This patch to remove the libstdcxx subport from the gcc47 port should be committed either before or at the same time as the libstdcxx subport is added to the gcc48 port using the patch in #38758, to avoid the indexing failure that would result from having two (sub)ports of the same name in the tree at the same time.

comment:4 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Owner: changed from mww@… to jeremyhu@…
Status: newassigned
Summary: gcc47 update to support libgcc*dylib move to libstdcxx in gcc48Update gcc48 to 4.8.0 release and change libstdc++-devel subport to libstdc++

comment:5 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Summary: Update gcc48 to 4.8.0 release and change libstdc++-devel subport to libstdc++Add libstdc++_nanosleep.patch to gcc47

comment:6 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: assignedclosed

This isn't needed since libstdcxx was moved to gcc48 in r105277, and gcc48 already has this change.

Note: See TracTickets for help on using tickets.