Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXiHb-0004RQ-7K for pgsql-pkg-yum@arkaria.postgresql.org; Sat, 06 Jan 2018 06:48:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXiHa-0007Oy-6J for pgsql-pkg-yum@arkaria.postgresql.org; Sat, 06 Jan 2018 06:48:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eXiHa-0007Oo-1z for pgsql-pkg-yum@lists.postgresql.org; Sat, 06 Jan 2018 06:48:42 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eXiHV-0007cW-UM for pgsql-pkg-yum@lists.postgresql.org; Sat, 06 Jan 2018 06:48:41 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id BFEC5883B8; Sat, 6 Jan 2018 06:48:34 +0000 (UTC) Received: from nb.usersys.redhat.com (ovpn-200-18.brq.redhat.com [10.40.200.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 930BA5C881; Sat, 6 Jan 2018 06:48:33 +0000 (UTC) From: Pavel Raiskup To: pgsql-pkg-yum@lists.postgresql.org Cc: Daniel Farina , Craig Ringer , pgsql-pkg-yum Subject: Re: How are debuginfo packages generated? Date: Sat, 06 Jan 2018 07:48:32 +0100 Message-ID: <3121414.gbAxY14dXi@nb.usersys.redhat.com> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Sat, 06 Jan 2018 06:48:34 +0000 (UTC) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Saturday, January 6, 2018 6:52:12 AM CET Daniel Farina wrote: > On Fri, Jan 5, 2018 at 9:50 PM Craig Ringer wrote: > > > On 6 January 2018 at 06:30, Daniel Farina wrote: > > > >> Hello, > >> > >> For quite some time, I've been building lightly modified PGDG packages, > >> but I have never figured how PGDG's yum repo gets debuginfo packages. When > >> I have built them, unless I hack up the spec file to have "%debug_package" > >> I do not get such a debuginfo package. Clearly, that is not how the spec > >> files work as-is in pgrpms. > >> > > > > How do you invoke rpmbuild? > > > > Via make nopreprpm10. I've never heard about nopreprpm10, but it is more important to say where you build the package because debuginfo generator is tightly dependant on the _setup_ in packages like 'rpm', 'redhat-rpm-config', etc. Have a look at `rpm --eval %debug_package` output to see what happens there, and to see why it is needed. Then, study your system/user rpm macros. On my system (Fedora 27 x86_64), there's is (in /usr/lib/rpm/redhat/macros): ... %install %{?_enable_debug_packages:%{?buildsubdir:%{debug_package}}}\ %%install\ %{nil} ... . so the %debug_package content is automatically hooked right before %install by default, but only if %_enable_debug_packages is defined (the default though). Then, you need to have all the stuff done correctly in %__debug_install_post (namely /usr/lib/rpm/find-debuginfo.sh should be %called) but this appears to be OK on your system. Pavel