From owner-freebsd-questions@FreeBSD.ORG Wed Dec 4 17:08:08 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1F2DE4DD for ; Wed, 4 Dec 2013 17:08:08 +0000 (UTC) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A87AB1FF5 for ; Wed, 4 Dec 2013 17:08:07 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id z2so6944657wiv.0 for ; Wed, 04 Dec 2013 09:08:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-type:content-transfer-encoding :subject:message-id:date:to:mime-version; bh=iRndl1mQK+yaw95srzbjqAv3LffW6hesE3kg4jwT2VA=; b=CbvEt/Kt1QqNyUDg65v2dsRlB7O11hgHisrZ1/jDXDrfE30OGyzbp0kjv2QiT+Oe06 E1rVquDhO0PYffUFmW9ObV/4DEyWqIYnHOfUlE5BTASywWgnOM591iqVJQOhuWhaY1eI gL+8kNNlngpqEWcjTMaIEOO5Qy/D6kAqwQsYIDxnGkVWIPrHIBzjE7oYr/fjK7/F9Qoz 2ikTgkypykPAcr5rm+EcSBMCu+HrjtwEin/G9wJVHEOTfGU2XP8nBDTPTP9Bdm+1J0U0 s7f8SpZdlYlAFKOAAZlKgbhsD6Tm7ITcCuQR3Rh/ovpsnRzP6EZKOt79TTbgT5wyC7bY PndA== X-Gm-Message-State: ALoCoQlDzUGKR55TiwoIRd0zhzL8pqD2UFfEg1FSabbDma81EzjVPaUZ7TYgBygrza+NIud6gLG4 X-Received: by 10.180.206.41 with SMTP id ll9mr8061462wic.7.1386176880142; Wed, 04 Dec 2013 09:08:00 -0800 (PST) Received: from dfleuriot.paris.hi-media-techno.com ([83.167.62.196]) by mx.google.com with ESMTPSA id f11sm8683600wic.4.2013.12.04.09.07.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Dec 2013 09:07:59 -0800 (PST) From: Fleuriot Damien Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: pkg repo not creating repo.txz on 8.4-STABLE Message-Id: Date: Wed, 4 Dec 2013 18:07:58 +0100 To: "FreeBSD freebsd-questions@freebsd.org" Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) X-Mailer: Apple Mail (2.1510) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2013 17:08:08 -0000 Hello list, I've got this tiny problem where issuing `pkg repo /tmp/repo/All` won't = yield a repo.txz file, anywhere at all. /tmp/repo/All contains a single, very small python package (this is a = real, valid port), on purpose to minimize the size of ktrace dumps. # pkg version root@bsd8:/ # pkg -v 1.2.1 # Contents of /tmp/repo/All/ root@bsd8:/ # ls -l /tmp/repo/All/ total 4 -rw-r--r-- 1 root wheel 2312 Dec 4 15:57 python2-2_1.txz # Command used to create the repo root@bsd8:/ # pkg repo /tmp/repo/All/ Generating repository catalog in /tmp/repo/All/: done! # Resulting files , note that digests and packagesite were generated = successfully root@bsd8:/ # ls -l /tmp/repo/All/ total 12 -rw-r--r-- 1 root wheel 256 Dec 4 16:46 digests.txz -rw-r--r-- 1 root wheel 712 Dec 4 16:46 packagesite.txz -rw-r--r-- 1 root wheel 2312 Dec 4 15:57 python2-2_1.txz I've tried gleaning info from both truss and ktrace, with the following = results from kdump: # Actual ktrace ktrace pkg repo -q /tmp/repo/All/ # grep repo.txz during kdump root@bsd8:/ # kdump | grep -C 8 repo.txz 2254 initial thread CALL munmap(0x802400000,0xe00000) 2254 initial thread RET munmap 0 2254 initial thread CALL close(0x3) 2254 initial thread RET close 0 2254 initial thread CALL unlink(0x7fffffffe580) 2254 initial thread NAMI "/tmp/repo/All//digests" 2254 initial thread RET unlink 0 2254 initial thread CALL stat(0x7fffffffe170,0x7fffffffe0c0) 2254 initial thread NAMI "/tmp/repo/All//repo.txz" 2254 initial thread RET stat -1 errno 2 No such file or directory 2254 initial thread CALL = sigprocmask(SIG_BLOCK,0x7fffffffe990,0x802004298) 2254 initial thread RET sigprocmask 0 2254 initial thread CALL sigprocmask(SIG_SETMASK,0x802004298,0) 2254 initial thread RET sigprocmask 0 2254 initial thread CALL = sigprocmask(SIG_BLOCK,0x7fffffffe950,0x802004298) 2254 initial thread RET sigprocmask 0 2254 initial thread CALL sigprocmask(SIG_SETMASK,0x802004298,0) Meh, what gives, no such file ? Out of curiosity and to prove I'm not trying to get anyone else to do my = homework, I've taken the liberty of grabbing an earlier version of `pkg` = at: = ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/bapt/pkg-1.0-rc6.t= ar.xz Building and using pkg-static from these sources does yield the correct = repo file : root@bsd8:/tmp/pkg/pkg-1.0-rc6/pkg-static # ./pkg-static repo /tmp/repo/ Generating repo.sqlite in /tmp/repo/: done! root@bsd8:/tmp/pkg/pkg-1.0-rc6/pkg-static # ls -l /tmp/repo/ total 8 -rw-r--r-- 1 root wheel 2316 Dec 4 16:52 python-2.7_1,2.txz -rw-r--r-- 1 root wheel 1636 Dec 4 16:59 repo.txz I'm going to look up other versions of pkg and try to narrow down the = one that borks things up for me. -- Dam