Bug 208524

Summary: [MAINTAINER] Update net/whois from 5.1.5 to 5.2.12
Product: Ports & Packages Reporter: Marco Steinbach <coco>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed Feedback Timeout    
Severity: Affects Some People    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
whois-5.2.12 patch
none
Poudriere log none

Description Marco Steinbach 2016-04-04 18:37:27 UTC
Created attachment 168976 [details]
whois-5.2.12 patch

Update net/whois from 5.1.5 to 5.2.12


Poudriere log following -- can I actually attach two files to a bug report ?


build started at Mon Apr  4 20:26:51 CEST 2016
port directory: /usr/ports/net/whois
building for: FreeBSD 9-3-STABLE-amd64-system 9.3-STABLE FreeBSD 9.3-STABLE amd64
maintained by: coco@executive-computing.de
Makefile ident:      $FreeBSD: head/net/whois/Makefile 385640 2015-05-07 17:26:05Z mat $
Poudriere version: 3.1.12
Host OSVERSION: 903509
Jail OSVERSION: 903509

---Begin Environment---
PKGREPOSITORY=/tmp/pkgs
PACKAGES=/tmp/pkgs
UNAME_v=FreeBSD 9.3-STABLE
UNAME_r=9.3-STABLE
BLOCKSIZE=K
MAIL=/var/mail/root
STATUS=1
SAVED_TERM=screen
NO_WARNING_PKG_INSTALL_EOL=yes
MASTERMNT=/poudriere/data/.m/9-3-STABLE-amd64-system/ref
FORCE_PACKAGE=yes
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
POUDRIERE_BUILD_TYPE=bulk
OLDPWD=/root
PWD=/
MASTERNAME=9-3-STABLE-amd64-system
SCRIPTPREFIX=/usr/local/share/poudriere
USER=root
HOME=/root
POUDRIERE_VERSION=3.1.12
SCRIPTPATH=/usr/local/share/poudriere/testport.sh
TRYBROKEN=yes
LIBEXECPREFIX=/usr/local/libexec/poudriere
LOCALBASE=/usr/local
PACKAGE_BUILDING=yes
OSVERSION=903509
---End Environment---

---Begin OPTIONS List---
===> The following configuration options are available for whois-5.2.12:
     NLS=on: Native Language Support
===> Use 'make config' to modify these settings
---End OPTIONS List---

--CONFIGURE_ARGS--

--End CONFIGURE_ARGS--

--CONFIGURE_ENV--
MAKE=gmake ac_cv_path_PERL=/usr/local/bin/perl ac_cv_path_PERL_PATH=/usr/local/bin/perl XDG_DATA_HOME=/wrkdirs/usr/ports/net/whois/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/whois/work  HOME=/wrkdirs/usr/ports/net/whois/work TMPDIR="/tmp" SHELL=/bin/sh CONFIG_SHELL=/bin/sh
--End CONFIGURE_ENV--

--MAKE_ENV--
XDG_DATA_HOME=/wrkdirs/usr/ports/net/whois/work  XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/whois/work  HOME=/wrkdirs/usr/ports/net/whois/work TMPDIR="/tmp" NO_PIE=yes WITHOUT_DEBUG_FILES=yes WITHOUT_KERNEL_SYMBOLS=yes SHELL=/bin/sh NO_LINT=YES PREFIX=/usr/local  LOCALBASE=/usr/local  LIBDIR="/usr/lib"  CC="cc" CFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing"  CPP="cpp" CPPFLAGS=""  LDFLAGS=" -fstack-protector" LIBS=""  CXX="c++" CXXFLAGS="-O2 -pipe -fstack-protector -fno-strict-aliasing"  MANPREFIX="/usr/local" BSD_INSTALL_PROGRAM="install  -s -m 555"  BSD_INSTALL_LIB="install  -s -m 444"  BSD_INSTALL_SCRIPT="install  -m 555"  BSD_INSTALL_DATA="install  -m 0644"  BSD_INSTALL_MAN="install  -m 444"
--End MAKE_ENV--

--PLIST_SUB--
NLS=""
NO_NLS="@comment
"
OSREL=9.3
PREFIX=%D
LOCALBASE=/usr/local
RESETPREFIX=/usr/local
PORTDOCS=""
PORTEXAMPLES=""
LIB32DIR=lib
PERL_VERSION=5.20.3
PERL_VER=5.20
PERL5_MAN1=lib/perl5/site_perl/man/man1
PERL5_MAN3=lib/perl5/site_perl/man/man3
SITE_PERL=lib/perl5/site_perl
SITE_ARCH=lib/perl5/site_perl/mach/5.20
DOCSDIR="share/doc/whois"
EXAMPLESDIR="share/examples/whois"
DATADIR="share/whois"
WWWDIR="www/whois"
ETCDIR="etc/whois"
--End PLIST_SUB--

--SUB_LIST--
NLS=""
NO_NLS="@comment
"
PREFIX=/usr/local
LOCALBASE=/usr/local
DATADIR=/usr/local/share/whois
DOCSDIR=/usr/local/share/doc/whois
EXAMPLESDIR=/usr/local/share/examples/whois
WWWDIR=/usr/local/www/whois
ETCDIR=/usr/local/etc/whois
--End SUB_LIST--

---Begin make.conf---
USE_PACKAGE_DEPENDS=yes
BATCH=yes
WRKDIRPREFIX=/wrkdirs
PORTSDIR=/usr/ports
PACKAGES=/packages
DISTDIR=/distfiles
#### /usr/local/etc/poudriere.d/9-3-STABLE-amd64-make.conf ####
MASTER_SITE_OVERRIDE=ftp://probsd.c0c0.intra/pub/FreeBSD/distfiles/${DIST_SUBDIR}/
WITH_PKGNG=yes
---End make.conf---
=======================<phase: check-sanity   >============================
===>  License GPLv2 accepted by the user
===========================================================================
=======================<phase: pkg-depends    >============================
===>   whois-5.2.12 depends on file: /usr/local/sbin/pkg - not found
===>   Installing existing package /packages/All/pkg-1.7.1.txz
[9-3-STABLE-amd64-system] Installing pkg-1.7.1...
[9-3-STABLE-amd64-system] Extracting pkg-1.7.1: .......... done
===>   whois-5.2.12 depends on file: /usr/local/sbin/pkg - found
===>   Returning to build of whois-5.2.12
===========================================================================
=======================<phase: fetch-depends  >============================
===========================================================================
=======================<phase: fetch          >============================
===>  License GPLv2 accepted by the user
===>   whois-5.2.12 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by whois-5.2.12 for building
===========================================================================
=======================<phase: checksum       >============================
===>  License GPLv2 accepted by the user
===>   whois-5.2.12 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by whois-5.2.12 for building
=> SHA256 Checksum OK for rfc1036-whois-5.2.12-2e76906_GH0.tar.gz.
===========================================================================
=======================<phase: extract-depends>============================
===========================================================================
=======================<phase: extract        >============================
===>  License GPLv2 accepted by the user
===>   whois-5.2.12 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by whois-5.2.12 for building
===>  Extracting for whois-5.2.12
=> SHA256 Checksum OK for rfc1036-whois-5.2.12-2e76906_GH0.tar.gz.
===========================================================================
=======================<phase: patch-depends  >============================
===========================================================================
=======================<phase: patch          >============================
===>  Patching for whois-5.2.12
===>  Applying FreeBSD patches for whois-5.2.12
===>   Ignoring patchfile /usr/ports/net/whois/files/patch-mkpasswd.c.orig
===========================================================================
=======================<phase: build-depends  >============================
===>   whois-5.2.12 depends on executable: gmake - not found
===>   Installing existing package /packages/All/gmake-4.1_2.txz
[9-3-STABLE-amd64-system] Installing gmake-4.1_2...
[9-3-STABLE-amd64-system] `-- Installing indexinfo-0.2.4...
[9-3-STABLE-amd64-system] `-- Extracting indexinfo-0.2.4: .... done
[9-3-STABLE-amd64-system] `-- Installing libiconv-1.14_9...
[9-3-STABLE-amd64-system] `-- Extracting libiconv-1.14_9: .......... done
[9-3-STABLE-amd64-system] `-- Installing gettext-runtime-0.19.7...
[9-3-STABLE-amd64-system] `-- Extracting gettext-runtime-0.19.7: .......... done
[9-3-STABLE-amd64-system] Extracting gmake-4.1_2: .......... done
===>   whois-5.2.12 depends on executable: gmake - found
===>   Returning to build of whois-5.2.12
===>   whois-5.2.12 depends on executable: msgfmt - not found
===>   Installing existing package /packages/All/gettext-tools-0.19.7.txz
[9-3-STABLE-amd64-system] Installing gettext-tools-0.19.7...
[9-3-STABLE-amd64-system] Extracting gettext-tools-0.19.7: .......... done
===>   whois-5.2.12 depends on executable: msgfmt - found
===>   Returning to build of whois-5.2.12
===>   whois-5.2.12 depends on package: perl5>=5.20<5.21 - not found
===>   Installing existing package /packages/All/perl5-5.20.3_8.txz
[9-3-STABLE-amd64-system] Installing perl5-5.20.3_8...
[9-3-STABLE-amd64-system] Extracting perl5-5.20.3_8: .......... done
Message from perl5-5.20.3_8:
The /usr/bin/perl symlink has been removed starting with Perl 5.20.
For shebangs, you should either use:

#!/usr/local/bin/perl

or

#!/usr/bin/env perl

The first one will only work if you have a /usr/local/bin/perl,
the second will work as long as perl is in PATH.
===>   whois-5.2.12 depends on package: perl5>=5.20<5.21 - found
===>   Returning to build of whois-5.2.12
===========================================================================
=======================<phase: lib-depends    >============================
===>   whois-5.2.12 depends on shared library: libiconv.so - found (/usr/local/lib/libiconv.so)
===>   whois-5.2.12 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so)
===========================================================================
====>> Recording filesystem state for prebuild... done
=======================<phase: configure      >============================
===>   whois-5.2.12 depends on executable: gmake - found
===>   whois-5.2.12 depends on executable: msgfmt - found
===>   whois-5.2.12 depends on package: perl5>=5.20<5.21 - found
===>   whois-5.2.12 depends on shared library: libiconv.so - found (/usr/local/lib/libiconv.so)
===>   whois-5.2.12 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so)
===>  Configuring for whois-5.2.12
===========================================================================
=======================<phase: build          >============================
===>  Building for whois-5.2.12
cc    -O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include -MM -MG *.c > Makefile.depend
perl make_version_h.pl debian/changelog > version.h
perl make_ip_del.pl < ip_del_list > ip_del.h
perl make_ip6_del.pl < ip6_del_list > ip6_del.h
perl make_as_del.pl < as_del_list > as_del.h
perl make_as32_del.pl < as32_del_list > as32_del.h
perl make_new_gtlds.pl < new_gtlds_list > new_gtlds.h
perl make_tld_serv.pl < tld_serv_list > tld_serv.h
perl make_nic_handles.pl < nic_handles_list > nic_handles.h
cc    -O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include -c utils.c
cd po && gmake
gmake[1]: Entering directory '/wrkdirs/usr/ports/net/whois/work/whois-2e76906/po'
xgettext --default-domain=whois \
       	  --add-comments --keyword=_ --keyword=N_ ../whois.c ../mkpasswd.c
msgfmt --statistics --check --verbose --output-file=cs.mo cs.po
msgfmt --statistics --check --verbose --output-file=da.mo da.po
msgfmt --statistics --check --verbose --output-file=de.mo de.po
msgfmt --statistics --check --verbose --output-file=el.mo el.po
msgfmt --statistics --check --verbose --output-file=es.mo es.po
da.po: 30 translated messagesde.po: 30 translated messages.
.
msgfmt --statistics --check --verbose --output-file=eu.mo eu.po
cs.po: 30 translated messages.
msgfmt --statistics --check --verbose --output-file=fi.mo fi.po
el.po: es.po: 30 translated messages.
msgfmt --statistics --check --verbose --output-file=fr.mo fr.po
21 translated messages, 7 fuzzy translations, 2 untranslated messages.
msgfmt --statistics --check --verbose --output-file=it.mo it.po
msgfmt --statistics --check --verbose --output-file=ja.mo ja.po
eu.po: 18 translated messages, 10 fuzzy translations, 2 untranslated messagesfi.po: .
30 translated messages.
msgfmt --statistics --check --verbose --output-file=nb.mo nb.po
it.po: 30 translated messages.
msgfmt --statistics --check --verbose --output-file=pl.mo pl.po
ja.po: msgfmt --statistics --check --verbose --output-file=pt_BR.mo pt_BR.po
21 translated messages, 7 fuzzy translationsfr.po: 30 translated messages.
, 2 untranslated messages.
if cmp -s whois.po whois.pot; then \
  rm -f whois.po; \
else \
  mv whois.po whois.pot; \
fi
msgfmt --statistics --check --verbose --output-file=ru.mo ru.po
msgfmt --statistics --check --verbose --output-file=zh_CN.mo zh_CN.po
nb.po: 5 translated messages, 4 fuzzy translations, 21 untranslated messages.
pl.po: 30 translated messages.
zh_CN.po: 30 translated messages.
pt_BR.po: 23 translated messages, 5 fuzzy translations, 2 untranslated messages.
ru.po: 30 translated messages.
gmake[1]: Leaving directory '/wrkdirs/usr/ports/net/whois/work/whois-2e76906/po'
cc    -O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include -c whois.c
cc    -O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include -c mkpasswd.c
cc -O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include  -fstack-protector -L/usr/local/lib -lintl -o mkpasswd mkpasswd.o utils.o -lcrypt 
cc -O2 -pipe -fstack-protector -fno-strict-aliasing -I/usr/local/include  -fstack-protector -L/usr/local/lib -lintl -o whois whois.o utils.o  
===========================================================================
====>> Checking for filesystem violations... done
=======================<phase: run-depends    >============================
===========================================================================
====>> Recording filesystem state for prestage... done
=======================<phase: stage          >============================
===>  Staging for whois-5.2.12
===>   whois-5.2.12 depends on shared library: libiconv.so - found (/usr/local/lib/libiconv.so)
===>   whois-5.2.12 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so)
===>   Generating temporary packing list
install -d /wrkdirs/usr/ports/net/whois/work/stage/usr/local/bin/
install -d /wrkdirs/usr/ports/net/whois/work/stage/usr/local/man/man1/
install -d /wrkdirs/usr/ports/net/whois/work/stage/usr/local/man/man5/
install -m 0755 whois /wrkdirs/usr/ports/net/whois/work/stage/usr/local/bin/mwhois
install -m 0644 whois.1 /wrkdirs/usr/ports/net/whois/work/stage/usr/local/man/man1/mwhois.1
install -m 0644 whois.conf.5 /wrkdirs/usr/ports/net/whois/work/stage/usr/local/man/man5/mwhois.conf.5
install -d /wrkdirs/usr/ports/net/whois/work/stage/usr/local/bin/
install -d /wrkdirs/usr/ports/net/whois/work/stage/usr/local/man/man1/
install -m 0755 mkpasswd /wrkdirs/usr/ports/net/whois/work/stage/usr/local/bin/
install -m 0644 mkpasswd.1 /wrkdirs/usr/ports/net/whois/work/stage/usr/local/man/man1/
cd po && gmake install
gmake[1]: Entering directory '/wrkdirs/usr/ports/net/whois/work/whois-2e76906/po'
for n in cs.mo da.mo de.mo el.mo es.mo eu.mo fi.mo fr.mo it.mo ja.mo nb.mo pl.mo pt_BR.mo ru.mo zh_CN.mo; do \
    l=`basename $n .mo`; \
    install -m 755 -d /wrkdirs/usr/ports/net/whois/work/stage/usr/local/share/locale/$l; \
    install -m 755 -d /wrkdirs/usr/ports/net/whois/work/stage/usr/local/share/locale/$l/LC_MESSAGES; \
    install -m 644 $n /wrkdirs/usr/ports/net/whois/work/stage/usr/local/share/locale/$l/LC_MESSAGES/whois.mo; \
done
gmake[1]: Leaving directory '/wrkdirs/usr/ports/net/whois/work/whois-2e76906/po'
/usr/bin/strip /wrkdirs/usr/ports/net/whois/work/stage/usr/local/bin/mwhois
/usr/bin/strip /wrkdirs/usr/ports/net/whois/work/stage/usr/local/bin/mkpasswd
====> Compressing man pages (compress-man)
===========================================================================
====> Running Q/A tests (stage-qa)
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
===> Checking for items in pkg-plist which are not in STAGEDIR
===> No pkg-plist issues found (check-plist)
====>> Checking for staging violations... done
=======================<phase: package        >============================
===>  Building package for whois-5.2.12
===========================================================================
=======================<phase: install-mtree  >============================
===========================================================================
====>> Recording filesystem state for preinst... done
=======================<phase: install        >============================
===>  Installing for whois-5.2.12
===>   whois-5.2.12 depends on shared library: libiconv.so - found (/usr/local/lib/libiconv.so)
===>   whois-5.2.12 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so)
===>  Checking if whois already installed
===>   Registering installation for whois-5.2.12
[9-3-STABLE-amd64-system] Installing whois-5.2.12...
===========================================================================
====>> Checking shared library dependencies
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.7]
 0x0000000000000001 (NEEDED)             Shared library: [libcrypt.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libintl.so.8]
=======================<phase: deinstall      >============================
===>  Deinstalling for whois
===>   Deinstalling whois-5.2.12
Updating database digests format: ........ done
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
	whois-5.2.12
[9-3-STABLE-amd64-system] [1/1] Deinstalling whois-5.2.12...
[9-3-STABLE-amd64-system] [1/1] Deleting files for whois-5.2.12: .......... done
===========================================================================
====>> Checking for extra files and directories
[00:00:21] ====>> Installing from package
[9-3-STABLE-amd64-system] Installing whois-5.2.12...
[9-3-STABLE-amd64-system] Extracting whois-5.2.12: .......... done
[00:00:21] ====>> Cleaning up
===>  Cleaning for whois-5.2.12
[00:00:22] ====>> Deinstalling package
Updating database digests format: . done
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
	whois-5.2.12
[9-3-STABLE-amd64-system] [1/1] Deinstalling whois-5.2.12...
[9-3-STABLE-amd64-system] [1/1] Deleting files for whois-5.2.12: .......... done
build of net/whois ended at Mon Apr  4 20:26:57 CEST 2016
build time: 00:00:06
Comment 1 Marco Steinbach 2016-04-04 18:38:26 UTC
Created attachment 168977 [details]
Poudriere log

Poudriere log
Comment 2 Marco Steinbach 2016-04-04 18:59:40 UTC
Danilo,

thank you for fixing my patch up, instead of handing it back to me -- I'll try and pay more attention to conventions next time.
Comment 3 Marco Steinbach 2016-04-04 19:03:06 UTC
Referenced a different commit with my comment.

That's what I get from working on multiple ports at a time. Sorry for the confusion :)
Comment 4 Marco Steinbach 2016-04-05 18:22:19 UTC
Hi there.

I need to provide a new patch tomorrow. The current one contains a nasty bug :(
Comment 5 Dmitry Marakasov freebsd_committer freebsd_triage 2016-04-05 20:28:31 UTC
Yes, it returns pointer to freed memory. Why's the patch needed at all?
Comment 6 Dmitry Marakasov freebsd_committer freebsd_triage 2016-04-14 14:22:31 UTC
Ping
Comment 7 Dmitry Marakasov freebsd_committer freebsd_triage 2016-05-24 21:09:06 UTC
Submitter timeout. Can't commit this since the patch is broken.