From owner-freebsd-stable Wed Jan 2 2:48: 3 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mail.svzserv.kemerovo.su (mail.svzserv.kemerovo.su [213.184.65.66]) by hub.freebsd.org (Postfix) with ESMTP id 5AB6737B422 for ; Wed, 2 Jan 2002 02:47:54 -0800 (PST) Received: from D00015.dialonly.kemerovo.su (www2.svzserv.kemerovo.su [213.184.65.86]) by mail.svzserv.kemerovo.su (8.11.6/8.11.6) with ESMTP id g02AllP92047; Wed, 2 Jan 2002 17:47:48 +0700 (NKZ) (envelope-from eugen@d00015.dialonly.kemerovo.su) Received: (from eugen@localhost) by D00015.dialonly.kemerovo.su (8.11.6/8.11.4) id g02AhCY06971; Wed, 2 Jan 2002 17:43:12 +0700 (KRAT) (envelope-from eugen) Date: Wed, 2 Jan 2002 17:43:12 +0700 From: Eugene Grosbein To: jkh@winston.freebsd.org Cc: stable@FreeBSD.ORG Subject: Re: pkg_create(1) segfaults while make package-noinstall Message-ID: <20020102174312.A6039@grosbein.pp.ru> References: <20020102151426.A221@grosbein.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020102151426.A221@grosbein.pp.ru>; from eugen@grosbein.pp.ru on Wed, Jan 02, 2002 at 03:14:26PM +0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jan 02, 2002 at 03:14:26PM +0700, Eugene Grosbein wrote: > My system is 4.5-PRERELEASE (1 Jan 2002). > > I'm trying to make package from installed port mutt-1.2.5i (it's fresh). > I have no distfile, this machine is offline. > > It's impossible for me now. There is output of 'make -d l package-noinstall': [skip] > Hmm, those > > cd: can't cd to " > and > Segmentation fault - core dumped I've investigated this a little further. Now I see that 'make -d l' sends it's debug output to stdout instead of stderr as I expected. This breaks build scripts and feeds a mess to pkg_create that segfaults then. Wow :-) Well, I will not do that then :-) Instead, I hacked pkg_create to produce some kind of debug output: --- perform.c.orig Wed Jan 2 16:26:30 2002 +++ perform.c Wed Jan 2 17:33:28 2002 @@ -260,7 +260,7 @@ free(Comment); free(Desc); free_plist(&plist); - leave_playpen(); +// leave_playpen(); return TRUE; /* Success */ } @@ -325,6 +325,9 @@ dup2(pipefds[0], 0); close(pipefds[0]); close(pipefds[1]); + { char **c; + for(c=args; *c; c++) puts(*c); + } execv("/usr/bin/tar", (char * const *)(uintptr_t)args); cleanup(0); errx(2, __FUNCTION__ ": failed to execute tar command"); @@ -400,7 +403,7 @@ if (!in_cleanup) { in_cleanup = 1; - leave_playpen(); +// leave_playpen(); } if (sig) exit(1); Here is output of 'make package-noinstall': Script started on Wed Jan 2 17:40:46 2002 ===> Building package for mutt-1.2.5 Creating package /usr/ports/mail/mutt/mutt-1.2.5.tgz Registering depends: gettext-0.10.35. Creating gzip'd tar ball in '/usr/ports/mail/mutt/mutt-1.2.5.tgz' tar -c -f /usr/ports/mail/mutt/mutt-1.2.5.tgz -z -T - tar: can't add file share/locale/cs/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/da/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/de/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/el/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/eo/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/es/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/fr/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/gl/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/id/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/it/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/ko/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/nl/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/pl/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/pt_BR/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/ru/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/sk/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/sv/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/uk/LC_MESSAGES/mutt.mo : No such file or directory tar: can't add file share/locale/zh_TW.Big5/LC_MESSAGES/mutt.mo : No such file or directory pkg_create: make_dist: tar command failed with code 256 *** Error code 1 Stop in /usr/ports/mail/mutt. *** Error code 1 Stop in /usr/ports/mail/mutt. *** Error code 1 Stop in /usr/ports/mail/mutt. Script done on Wed Jan 2 17:40:49 2002 Now I see that pkg_create does not send '-C' to tar and tar can't find files therefore (they are in place really). Eugene Grosbein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message