Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 2014 21:32:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 193723] New: [patch] x11-toolkits/swt-devel extract fails on FreeBSD 8.x
Message-ID:  <bug-193723-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193723

            Bug ID: 193723
           Summary: [patch] x11-toolkits/swt-devel extract fails on
                    FreeBSD 8.x
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: truckman@FreeBSD.org
                CC: conrads@cox.net
                CC: conrads@cox.net
             Flags: maintainer-feedback?(conrads@cox.net)

Created attachment 147416
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=147416&action=edit
patch to unbreak x11-toolkits/swt-devel on FreeBSD 8.x

The extract phase for x11-toolkits/swt-devel (swt-devel-3.7.1_2,1) fails on
FreeBSD 8.x unless the ports version of unzip is already installed.  This
is guaranteed to happen when building with poudriere because archivers/unzip is
not listed as a dependency.

=======================<phase: extract        >============================
===>  License EPL accepted by the user
===> Fetching all distfiles required by swt-devel-3.7.1_2,1 for building
===>  Extracting for swt-devel-3.7.1_2,1
=> SHA256 Checksum OK for swt-3.7.1-gtk-linux-x86.zip.
/usr/local/bin/unzip: not found
*** Error code 127

Stop in /usr/ports/x11-toolkits/swt-devel.


The Makefile contains the following:
post-extract:
.if ${OSVERSION} > 900044
        @(cd ${WRKSRC} && /usr/bin/unzip -qo *.zip)
.else
        @(cd ${WRKSRC} && ${UNZIP_CMD} -qo *.zip)
.endif
        @${RM} -f ${WRKSRC}/*.o ${WRKSRC}/*.so ${WRKSRC}/*.jar

Apparently the base version of unzip in older versions of FreeBSD has issues
with this port, so unzip from ports, ${UNZIP_CMD} is used instead, but the
ports version of unzip is not listed as a dependency.

The attached patch fixes this problem.  It also fixes two portlint
warnings.

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Maintainer CC'd

-- 
You are receiving this mail because:
You are the assignee for the bug.



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