Bug 218833 - dns/libidn2: update to 2.0.1
Summary: dns/libidn2: update to 2.0.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-23 19:16 UTC by Tijl Coosemans
Modified: 2017-04-25 14:25 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
patch (5.09 KB, patch)
2017-04-23 19:16 UTC, Tijl Coosemans
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tijl Coosemans freebsd_committer freebsd_triage 2017-04-23 19:16:25 UTC
Created attachment 182026 [details]
patch

Update dns/libidn2 to 2.0.1 (which includes a pkgconfig file now that gnutls can use).
Comment 1 Po-Chuan Hsieh freebsd_committer freebsd_triage 2017-04-24 14:20:24 UTC
FYI, I'll postpone this update until I find the solution for the following error.

gmake[5]: Entering directory '/wrkdirs/usr/ports/dns/libidn2/work/libidn2-2.0.1/lib'
 /bin/mkdir -p '/wrkdirs/usr/ports/dns/libidn2/work/stage/usr/local/lib'
 /bin/sh ../libtool   --mode=install /usr/bin/install -c -s  libidn2.la '/wrkdirs/usr/ports/dns/libidn2/work/stage/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libidn2.so.0.3.0 /wrkdirs/usr/ports/dns/libidn2/work/stage/usr/local/lib/libidn2.so.0.3.0
libtool: install: strip --strip-unneeded /wrkdirs/usr/ports/dns/libidn2/work/stage/usr/local/lib/libidn2.so.0.3.0
strip: mkstemp "headers.abi.tmp"/ecp.sN9DSoIG failed: No such file or directory

It occurs since libidn2 2.0.0 but only in poudriere build.
That's why I did not update libidn2 from 0.16 to 2.0.0.
I still do not know where it comes from.
Comment 2 Tijl Coosemans freebsd_committer freebsd_triage 2017-04-24 16:49:53 UTC
(In reply to Po-Chuan Hsieh from comment #1)
The mkstemp call is in /usr/src/contrib/elftoolchain/elfcopy/main.c.  Does poudriere set TMPDIR environment variable?
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2017-04-24 17:32:16 UTC
Thanks.

% grep PACKAGE_BUILDING /usr/local/etc/poudriere.conf*
/usr/local/etc/poudriere.conf:# By default poudriere sets PACKAGE_BUILDING
/usr/local/etc/poudriere.conf:# NO_PACKAGE_BUILDING=yes
/usr/local/etc/poudriere.conf.sample:# By default poudriere sets PACKAGE_BUILDING
/usr/local/etc/poudriere.conf.sample:# NO_PACKAGE_BUILDING=yes

% head -1271 /usr/ports/Mk/bsd.port.mk | tail -5
# At least KDE needs TMPDIR for the package building,
# so we're setting it to the known default value.
.if defined(PACKAGE_BUILDING)
TMPDIR?=        /tmp
.endif # defined(PACKAGE_BUILDING)
Comment 4 Po-Chuan Hsieh freebsd_committer freebsd_triage 2017-04-24 17:33:23 UTC
Therefore we have TMPDIR=/tmp in CONFIGURE_ENV.
Comment 5 Tijl Coosemans freebsd_committer freebsd_triage 2017-04-24 19:15:07 UTC
And then it is corrupted and set to "headers.abi.tmp".  Do you have any idea where that string might be coming from because I cannot find it anywhere?
Comment 6 commit-hook freebsd_committer freebsd_triage 2017-04-25 14:23:46 UTC
A commit references this bug:

Author: sunpoet
Date: Tue Apr 25 14:22:45 UTC 2017
New revision: 439384
URL: https://svnweb.freebsd.org/changeset/ports/439384

Log:
  Update to 2.0.1

  Changes:	https://gitlab.com/libidn/libidn2/blob/master/NEWS
  PR:		218833
  Submitted by:	tijl

Changes:
  head/dns/libidn2/Makefile
  head/dns/libidn2/distinfo
  head/dns/libidn2/files/patch-src-idn2.c
  head/dns/libidn2/pkg-plist
Comment 7 Po-Chuan Hsieh freebsd_committer freebsd_triage 2017-04-25 14:25:54 UTC
Committed. Thanks! I cannot remember why I did not find it before. :(