Bug 238342

Summary: devel/psptoolchain-pspsdk-stage2: fix to recent change that made library unusable
Product: Ports & Packages Reporter: Tassilo Philipp <tphilipp>
Component: Individual Port(s)Assignee: Steve Wills <swills>
Status: Closed FIXED    
Severity: Affects Some People    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch tphilipp: maintainer-approval+

Description Tassilo Philipp 2019-06-05 16:37:56 UTC
Created attachment 204844 [details]
patch

Fix to change introduced by commit rP499897 [1] which broke the use of the library. There is no libssp with the PSP SDK, so enabling stack guards results in unresolved symbols for people trying to use it.

[1] https://reviews.freebsd.org/rP499897#change-BrOh2CHIsNoh
Comment 1 Tassilo Philipp 2019-06-05 18:10:22 UTC
Sorry, I didn't dig deep enough, so correction: the problem actually already happened when SSP_CFLAGS was added, the commit mentioned merely kept the port building. That said, the patch is still working and fixes the use of the library, as described. However, I'm wondering if using WITHOUT_SSP would be better? I lean towards the patch, as-is, to explicitly disabe the stack guards.
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-06-08 00:23:58 UTC
A commit references this bug:

Author: swills
Date: Sat Jun  8 00:23:05 UTC 2019
New revision: 503679
URL: https://svnweb.freebsd.org/changeset/ports/503679

Log:
  devel/psptoolchain-pspsdk-stage2: fix to recent change that made library unusable

  PR:		238342
  Submitted by:	Tassilo Philipp <tphilipp@potion-studios.com> (maintainer)

Changes:
  head/devel/psptoolchain-pspsdk-stage2/Makefile
Comment 3 Steve Wills freebsd_committer freebsd_triage 2019-06-08 00:25:01 UTC
Committed, slightly modified so it's more explicit. Thanks!