Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Dec 2013 13:20:21 GMT
From:      Reed Loefgren <rloefgren@forethought.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/184723: Issue with libscrypt port
Message-ID:  <201312121320.rBCDKLQJ022807@oldred.freebsd.org>
Resent-Message-ID: <201312121330.rBCDU1kK045456@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         184723
>Category:       ports
>Synopsis:       Issue with libscrypt port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 12 13:30:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Reed Loefgren
>Release:        9.2 in a jail
>Organization:
>Environment:
FreeBSD auden.jmla.com 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255937M: Sun Sep 29 12:13:37 MDT 2013     x@blah.blaher.com:/usr/obj/u1/src/sys/GENERIC  amd6
>Description:
Probably nothing but last night when doing a make clean on the ports directory it failed with this error:
..
===>  Cleaning for libp11-0.2.8
===> security/libprelude
===>  Cleaning for libprelude-1.0.1_3
===> security/libpreludedb
===>  Cleaning for libpreludedb-1.0.1p1_2
===> security/libpwstor
===>  Cleaning for libpwstor-0.1
===> security/libscrypt
Unknown modifier 't'

"Makefile", line 37: Malformed conditional (!empty(CCVERSION:tl:M*gcc*))
"Makefile", line 40: if-less endif
make: fatal errors encountered -- cannot continue
*** Error code 1

Stop in /usr/ports/security.
*** Error code 1

Stop in /usr/ports.

So I went there:

orange [128] [12:22am] [/usr/ports]$ mv security/libscrypt /tmp/libscrypt
orange [129] [6:04am] [/usr/ports]$ less /tmp/libscrypt/Makefile 
# Created by: Horia Racoviceanu <horia@racoviceanu.com>
# $FreeBSD: head/security/libscrypt/Makefile 333338 2013-11-09 21:30:28Z jpaetzel $

PORTNAME=       libscrypt
PORTVERSION=    1.14
CATEGORIES=     security

MAINTAINER=     horia@racoviceanu.com
COMMENT=        C library for the scrypt key derivation function

LICENSE=        BSD

NO_STAGE=       yes
USE_LDCONFIG=   yes
USE_GITHUB=     yes
GH_ACCOUNT=     technion
GH_COMMIT=      8e6966e
GH_TAGNAME=     ${GH_COMMIT}

PLIST_FILES=    include/libscrypt.h \
                lib/libscrypt.a \
                lib/libscrypt.so \
                lib/libscrypt.so.0

.include <bsd.port.pre.mk>

post-patch:
        @${REINPLACE_CMD} -e '/^CC=gcc/d' -e '/CFLAGS=/s,$$, ${CFLAGS},' \
..skipping...
.if !empty(CCVERSION:tl:M*gcc*)
CFLAGS+=    -fno-stack-protector
.endif
                -e 's,$$(LDFLAGS),,' ${WRKSRC}/Makefile

regression-test: build
        (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check)

.if ${ARCH} == i386
CCVERSION!= ${CC} --version
.if !empty(CCVERSION:tl:M*gcc*)
CFLAGS+=    -fno-stack-protector
.endif
.endif

.include <bsd.port.post.mk>
~
~
<end>

Probably just a corrupt svn update. I'd done several, trying to get owncloud to cut it out with the blank screen (FWIW, known, and to be fixed in the next update). I'm programming ignorant but think I see the problem. Something so obvious in a Makefile?

Kindest regards,

Reed
>How-To-Repeat:
Don't know. Move port, re-svn and compare Makefiles.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312121320.rBCDKLQJ022807>