Date: Wed, 2 Jan 2002 17:43:12 +0700 From: Eugene Grosbein <eugen@grosbein.pp.ru> 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> In-Reply-To: <20020102151426.A221@grosbein.pp.ru>; from eugen@grosbein.pp.ru on Wed, Jan 02, 2002 at 03:14:26PM %2B0700 References: <20020102151426.A221@grosbein.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020102174312.A6039>
