From owner-freebsd-questions@FreeBSD.ORG Wed Dec 4 18:04:02 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 76E1E8B1 for ; Wed, 4 Dec 2013 18:04:02 +0000 (UTC) Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0B5ED13A1 for ; Wed, 4 Dec 2013 18:04:01 +0000 (UTC) Received: by mail-wi0-f173.google.com with SMTP id hn9so4294886wib.6 for ; Wed, 04 Dec 2013 10:04: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:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to; bh=HNpQkTmxe57BU49qzZY/DfSZx1J5A4ntLPKga+isADE=; b=Bo0mMLzt1pvVuL/dYUi9MrA3NOTgkBn0R1zcOPN8PAPxLgiiL1VYzEg3SAv0ysL20G XGvTZYr74RZn1SJK4n0afcqeB9HwNiY51XEy96Zbx+g8xlj2r/4TWbPpu2FymPUWXU2T XTB1wx+ot5LuAhEe28cv9xIXitr9ny2SZKu1Sh9XPwbza7+uXml8fw7NvVetFMFmE0ie tNh6ik6YMJ7R1PARrw+M+QXPIUnBv2MFqly3UQa7Xsm/XhEybSY2ZgtJRHDwNHnG/mik paJx/Yp0sswclaOsjSAE4REl/Z9mGw3262kkwTM+MZdrYar5TdagLiSMPkAlh2ka0WK2 7ZMQ== X-Gm-Message-State: ALoCoQlSVLRGJWQL6eXw1pI3F/mIeIYt/+N4Q1uc3DjNOibPYLxuWRf3AjrDDy2IDWyYbDZRxI6L X-Received: by 10.181.11.201 with SMTP id ek9mr8224807wid.54.1386178505168; Wed, 04 Dec 2013 09:35:05 -0800 (PST) Received: from dfleuriot.paris.hi-media-techno.com ([83.167.62.196]) by mx.google.com with ESMTPSA id w20sm8867319wia.5.2013.12.04.09.35.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Dec 2013 09:35:04 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: pkg repo not creating repo.txz on 8.4-STABLE From: Fleuriot Damien In-Reply-To: Date: Wed, 4 Dec 2013 18:35:03 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: "FreeBSD freebsd-questions@freebsd.org" 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 18:04:02 -0000 On Dec 4, 2013, at 6:07 PM, Fleuriot Damien wrote: > Hello list, >=20 >=20 >=20 > I've got this tiny problem where issuing `pkg repo /tmp/repo/All` = won't yield a repo.txz file, anywhere at all. >=20 > /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. >=20 >=20 > # pkg version > root@bsd8:/ # pkg -v > 1.2.1 >=20 > # 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 >=20 > # Command used to create the repo > root@bsd8:/ # pkg repo /tmp/repo/All/ > Generating repository catalog in /tmp/repo/All/: done! >=20 > # 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 >=20 >=20 >=20 > I've tried gleaning info from both truss and ktrace, with the = following results from kdump: >=20 > # Actual ktrace > ktrace pkg repo -q /tmp/repo/All/ >=20 > # 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) >=20 >=20 > Meh, what gives, no such file ? >=20 >=20 >=20 >=20 > 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 >=20 > Building and using pkg-static from these sources does yield the = correct repo file : >=20 > 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 >=20 >=20 >=20 >=20 > I'm going to look up other versions of pkg and try to narrow down the = one that borks things up for me. >=20 >=20 > -- > Dam >=20 OK got some more input. I've tried older `pkg` versions from the mastersite listed in = /usr/ports/ports-mgt/pkg/Makefile : http://files.etoilebsd.net/pkg/pkg-1.1.4.tar.xz http://files.etoilebsd.net/pkg/pkg-1.2.0.b1.tar.xz http://files.etoilebsd.net/pkg/pkg-1.2.0.b2.tar.xz http://files.etoilebsd.net/pkg/pkg-1.2.0.rc1.tar.xz http://files.etoilebsd.net/pkg/pkg-1.2.tar.xz http://files.etoilebsd.net/pkg/pkg-1.2.1.tar.xz Test results are as follows, every `pkg` was compiled from source: 1.0rc6: OK, creates repo.txz 1.1.4: OK, creates repo.txz + packagesite.txz + digests.txz 1.2.0b1: NOK, doesn't create repo.txz 1.2.0b2: NOK, doesn't create repo.txz 1.2.0rc1: NOK, doesn't create repo.txz 1.2.0: NOK, doesn't create repo.txz 1.2.1: NOK, doesn't create repo.txz Since there are many 1.1.4 bugfix releases of `pkg`, I'll try getting my = hands on each and test them in turn. Obviously, something broke for me (and possibly others ?) somewhere = between 1.1.4 and 1.2.0b1