Bug 203380

Summary: [patch] security/sudo configure fails with world built WITHOUT_SSP
Product: Ports & Packages Reporter: Kenneth Salerno <kennethsalerno>
Component: Individual Port(s)Assignee: Renato Botelho <garga>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: patch
Priority: --- Flags: bugzilla: maintainer-feedback? (garga)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Remove redundant lssp_nonshared none

Description Kenneth Salerno 2015-09-26 16:26:35 UTC
Created attachment 161440 [details]
Remove redundant lssp_nonshared

Makefile for security/sudo unnecessarily forces -lssp_nonshared when /usr/lib/libc.so already includes this for every link:

> cat /usr/lib/libc.so
/* $FreeBSD: releng/10.1/lib/libc/libc.ldscript 258398 2013-11-20 20:24:59Z peter $ */
GROUP ( /lib/libc.so.7 /usr/lib/libc_nonshared.a /usr/lib/libssp_nonshared.a )

When a user builds world WITHOUT_SSP the library /usr/lib/libssp_nonshared.a does not exist. Do not force this library for sudo, it is automatic.
Comment 1 commit-hook freebsd_committer freebsd_triage 2016-06-11 20:11:26 UTC
A commit references this bug:

Author: garga
Date: Sat Jun 11 20:11:14 UTC 2016
New revision: 416749
URL: https://svnweb.freebsd.org/changeset/ports/416749

Log:
  - Stop forcing -lssp_nonshared since libc already include it in every link.
    It should fix build when world is built with WITHOUT_SSP
  - Bump PORTREVISION

  PR:		203380
  Submitted by:	Kenneth Salerno <kennethsalerno@yahoo.com>
  Sponsored by:	Rubicon Communications (Netgate)

Changes:
  head/security/sudo/Makefile