Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cNhgI-0000Jg-1q for pgsql-pkg-yum@arkaria.postgresql.org; Sun, 01 Jan 2017 15:04:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cNhgH-00078H-Hs for pgsql-pkg-yum@arkaria.postgresql.org; Sun, 01 Jan 2017 15:04:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cNhgF-000788-SS for pgsql-pkg-yum@postgresql.org; Sun, 01 Jan 2017 15:04:16 +0000 Received: from ns5.gunduz.org ([107.170.136.15] helo=ns1.gunduz.org) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cNhgC-0005t3-C3 for pgsql-pkg-yum@postgresql.org; Sun, 01 Jan 2017 15:04:14 +0000 Received: from asus-laptop-03-gunduz-org (unknown [88.248.122.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ns1.gunduz.org (Postfix) with ESMTPSA id D56DA3FCF5; Sun, 1 Jan 2017 15:04:11 +0000 (UTC) Message-ID: <1483283045.3381.41.camel@gunduz.org> Subject: Re: When %nls/%ssl/%xml macro is set to 0 From: Devrim =?ISO-8859-1?Q?G=FCnd=FCz?= To: Tomoaki Sato , pgsql-pkg-yum@postgresql.org Date: Sun, 01 Jan 2017 18:04:05 +0300 In-Reply-To: <20161103.213544.1900991879530641413.sato@sraoss.co.jp> References: <20161103.213544.1900991879530641413.sato@sraoss.co.jp> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-uAGtfa9Rssv4e8ArtWIR" X-Mailer: Evolution 3.22.3 (3.22.3-1.fc25) Mime-Version: 1.0 X-Pg-Spam-Score: -5.1 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-pkg-yum Precedence: bulk Sender: pgsql-pkg-yum-owner@postgresql.org --=-uAGtfa9Rssv4e8ArtWIR Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Thanks for the patch. Committed: https://git.postgresql.org/gitweb/?p=3Dpgrpms.git;a=3Dcommit;h=3Db7811829fd= bf46b0248f8f0f1c3ca471616b7e04 Regards, Devrim On Thu, 2016-11-03 at 21:35 +0900, Tomoaki Sato wrote: > Hi, >=20 > When %nls macro is set to 0, PostgreSQL 9.6 RPM package build fails. >=20 > --- > $ rpmbuild -ba -D 'nls 0' SPECS/postgresql-9.6.spec=C2=A0 > (snip) > + /usr/bin/cp /dev/null pltcl.lst > + /usr/bin/cp /dev/null plpython.lst > + cat libpq5-9.6.lang > cat: libpq5-9.6.lang: No such file or directory > error: Bad exit status from /var/tmp/rpm-tmp.ct9Vwi (%install) >=20 >=20 > RPM build errors: > =C2=A0=C2=A0=C2=A0 Bad exit status from /var/tmp/rpm-tmp.ct9Vwi (%install= ) > ---- >=20 > *.lst filename and %endif position for %if %{nls} ... %endif block are > wrong. >=20 > Even when %ssl macro is set to 0, it fails. >=20 > ---- > $ rpmbuild -ba -D 'ssl 0' SPECS/postgresql-9.6.spec > + cp -pr src/tutorial /home/tom-sato/rpmbuild/BUILDROOT/postgresql96-9.6.= 1- > 1PGDG.el7.centos.x86_64/usr/share/doc/postgresql96-docs-9.6.1 > + cp -pr doc/html /home/tom-sato/rpmbuild/BUILDROOT/postgresql96-9.6.1- > 1PGDG.el7.centos.x86_64/usr/share/doc/postgresql96-docs-9.6.1 > + exit 0 > Provides: postgresql-docs postgresql96-docs =3D 9.6.1-1PGDG.el7.centos > postgresql96-docs(x86-64) =3D 9.6.1-1PGDG.el7.centos > Requires(rpmlib): rpmlib(CompressedFileNames) <=3D 3.0.4-1 rpmlib(FileDig= ests) > <=3D 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <=3D 4.0-1 > Requires: /bin/sh libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) > libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.4)(64bit) rtld(GNU_HASH) > Processing files: postgresql96-contrib-9.6.1-1PGDG.el7.centos.x86_64 > error: File not found: /home/tom-sato/rpmbuild/BUILDROOT/postgresql96-9.6= .1- > 1PGDG.el7.centos.x86_64/usr/pgsql-9.6/lib/sslinfo.so > error: File not found by glob: /home/tom- > sato/rpmbuild/BUILDROOT/postgresql96-9.6.1-1PGDG.el7.centos.x86_64/usr/pg= sql- > 9.6/share/extension/sslinfo* >=20 >=20 > RPM build errors: > =C2=A0=C2=A0=C2=A0 File not found: /home/tom-sato/rpmbuild/BUILDROOT/post= gresql96-9.6.1- > 1PGDG.el7.centos.x86_64/usr/pgsql-9.6/lib/sslinfo.so > =C2=A0=C2=A0=C2=A0 File not found by glob: /home/tom-sato/rpmbuild/BUILDR= OOT/postgresql96- > 9.6.1-1PGDG.el7.centos.x86_64/usr/pgsql-9.6/share/extension/sslinfo* > ----=C2=A0=C2=A0=C2=A0=C2=A0 >=20 > sslinfo module isn't excluded from %files list.=C2=A0 >=20 > Even when %xml macro is set to 0, it fails. >=20 > ---- > $ rpmbuild -ba -D 'xml 0' SPECS/postgresql-9.6.spec > + cp -pr src/tutorial /home/tom-sato/rpmbuild/BUILDROOT/postgresql96-9.6.= 1- > 1PGDG.el7.centos.x86_64/usr/share/doc/postgresql96-docs-9.6.1 > + cp -pr doc/html /home/tom-sato/rpmbuild/BUILDROOT/postgresql96-9.6.1- > 1PGDG.el7.centos.x86_64/usr/share/doc/postgresql96-docs-9.6.1 > + exit 0 > Provides: postgresql-docs postgresql96-docs =3D 9.6.1-1PGDG.el7.centos > postgresql96-docs(x86-64) =3D 9.6.1-1PGDG.el7.centos > Requires(rpmlib): rpmlib(CompressedFileNames) <=3D 3.0.4-1 rpmlib(FileDig= ests) > <=3D 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <=3D 4.0-1 > Requires: /bin/sh libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) > libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.4)(64bit) rtld(GNU_HASH) > Processing files: postgresql96-contrib-9.6.1-1PGDG.el7.centos.x86_64 > error: File not found by glob: /home/tom- > sato/rpmbuild/BUILDROOT/postgresql96-9.6.1-1PGDG.el7.centos.x86_64/usr/pg= sql- > 9.6/share/extension/xml2* >=20 >=20 > RPM build errors: > =C2=A0=C2=A0=C2=A0 File not found by glob: /home/tom-sato/rpmbuild/BUILDR= OOT/postgresql96- > 9.6.1-1PGDG.el7.centos.x86_64/usr/pgsql-9.6/share/extension/xml2* > ---- >=20 > xml2 module isn't excluded from %files list.=C2=A0 >=20 > Send a patch to fix them. >=20 > Regards, >=20 >=20 > ---- > Tomoaki Sato > SRA OSS, Inc. Japan --=20 Devrim G=C3=9CND=C3=9CZ EnterpriseDB: http://www.enterprisedb.com PostgreSQL Dan=C4=B1=C5=9Fman=C4=B1/Consultant, Red Hat Certified Engineer Twitter: @DevrimGunduz , @DevrimGunduzTR --=-uAGtfa9Rssv4e8ArtWIR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJYaRplAAoJENjDPf6Sz261tecQALqEJkh4W3xuZKZ8rNSMWj0J x9kUkYL1Psn0K9uC3l4XRuDrfsOhu7H8X9U0EQX2HjPwsbv1TjmUNI8L8AjSxrwi KGNRhPzohUI6mLbQ58gZ/043uF1nWIGAcpFsj/sZXqD3GHQLMVtqTsyKUrrs3Ycz GOMOlMkFy5TJEy1VhLc6armg3k+oui3YV65RC74R9ui9vS2I9pLIRxBiLaiFVsaP SH1CRSZr8khwBjUjTQm7qNrkcJAPuZGnu9ZL7RnRHsh0qPuKHubMqbuvRXdvXWeQ 26/6sAeAFsEx6/7+EONXy7M7B9gDXzRl+iCDmWbs83alVSlmGn6s3M1r8XIvbyoC FzdPL6Spj0QuMIo0KvzeMrHq6DAO/fCde+hm7bcnTQb2y9QYnds9pk3O4V4jcAyq QIsWfCtZ5pMTP6xzkqosOKPLMB1Ybrl910KSUuXAn1R0BIsVQJl+CKICC2C8aj89 FEOeZERh8af3ywoumL80qqpiVJWGHMSD+b/lLsnZPsuZ49lqvHTqvw5UYJ2mt6xW hcHVU0P+ha/HgNUUZW/ZQgW9YBCo+BuGDryUDgrWR4NEEX1miHUpv44jv1TB30JW iVOx4t9jWfB0oTjuHPQd6bICDBLAaSfavteqEJ9PRf9IEKbUeu9lYmzRxAoP5hlS eeM+IkMhA71EeZSeMEPh =MmFN -----END PGP SIGNATURE----- --=-uAGtfa9Rssv4e8ArtWIR--