From owner-freebsd-ports@FreeBSD.ORG Wed Jul 9 06:56:41 2014 Return-Path: Delivered-To: freebsd-ports@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 DB119D85 for ; Wed, 9 Jul 2014 06:56:41 +0000 (UTC) Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com [IPv6:2607:f8b0:400e:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B31E82933 for ; Wed, 9 Jul 2014 06:56:41 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id lf10so8710992pab.2 for ; Tue, 08 Jul 2014 23:56:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=pssAa7Eq3B2+9m+oeVFZaQzlejyj+4YWFGAGY0XIcU4=; b=IZU68qk/qi9BM+C1twI5DcFn/BQkrprKwFLbORahofHG89Akws+kQ/ZLA82xpNwHK8 3r3dbvOL+HyXCrX+qrfUjMc6eZ+QUmDTkImcMsJlPnWw7B+kzmkocaRiSRhgbI1cMd80 kcp8T0Iz6STci38FDb+n6M07hWmvmQpHsZ5tXHOPdhaRNqPahMhNFR5KCW+L4yBGQjfW y7zdAOczyrZM5didNSQldStiS4keDtOMEW2Tf7ZK9OA19AKKrBr6gxHX8IDxtOpMPHaS axY17wz9WflNkrXFqiKKAdtMhGWs0BC1/o0ro6SH/t3zlgJ2Q5PQui6G1DKtIA/aYnhp d1eQ== MIME-Version: 1.0 X-Received: by 10.70.128.239 with SMTP id nr15mr9621103pdb.115.1404889001238; Tue, 08 Jul 2014 23:56:41 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.66.88.227 with HTTP; Tue, 8 Jul 2014 23:56:41 -0700 (PDT) In-Reply-To: References: Date: Tue, 8 Jul 2014 23:56:41 -0700 X-Google-Sender-Auth: zqlA3vHRr4kzsb5-gUen481Gdqk Message-ID: Subject: Re: postgres9.2/9.3 clash with pkg From: Kevin Oberman To: Waitman Gobble Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: FreeBSD Ports ML X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2014 06:56:41 -0000 On Tue, Jul 8, 2014 at 1:09 PM, Waitman Gobble wrote: > Hi, > > I notice that many pkgs are dependent upon postgresql client 9.2. I have > 9.3 on this machine, when I try to install or upgrade packages which are > linked to 9.2, the process fails. All the errors are about documentation > files installed in same path. > > Simple example. > > # pkg install mapnik > The following 2 packages will be installed: > Installing postgresql92-client: 9.2.8_1 > Installing mapnik: 2.2.0_7 > pkg: WARNING: locally installed postgresql93-client-9.3.4 conflicts on > /usr/local/share/postgresql/psqlrc.sample with: > - postgresql92-client-9.2.8_1 > > Does anyone know the solution? > > Thank you, > > -- > Waitman Gobble > San Jose California USA > +1.510-830-7975 > Packages are built with all dependencies at the time of the release for which they are built. If you update a dependency locally to a newer version, you will see this error. I thought I remembered that there was a way to tell pkg to ignore a dependency, but I can't seem to find it now. Updates repositories are made available quarterly. You might find installing the package from the latest quarterly for your version of FreeBSD might deal with this problem, but likely does not. And, of course using a different dependency version might bite you with ABI incompatibilities. The other option is to build ports using postgresql locally. But if a port requires a specific version of postgresql, this won't work. (I have not looked at the ports to see exactly what the dependencies are defined.) I suspect that this will work, though. Jut can't promise anything. -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com