Bug 177677

Summary: /usr/local/bin/grep halts databases/postgresql84-server configuration
Product: Ports & Packages Reporter: Jeffrey Bouquet <jeffreybouquet>
Component: Individual Port(s)Assignee: pgsql
Status: Closed Unable to Reproduce    
Severity: Affects Only Me CC: cs, emaste, rene
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Jeffrey Bouquet 2013-04-07 01:30:00 UTC
"grep" seems to halt the configure of postgresql84-server [also the "install" of print/teTeX-base btw... and a third I've forgotten...] until moved, as shown by the log below. 

Script started on Sat Apr  6 17:03:32 2013
make build
===>  Found saved configuration for postgresql-client-8.4.15
===> Fetching all distfiles required by postgresql-server-8.4.17_1 for building
===>  Extracting for postgresql-server-8.4.17_1
=> SHA256 Checksum OK for postgresql/postgresql-8.4.17.tar.bz2.
===>  Patching for postgresql-server-8.4.17_1
===>  Applying FreeBSD patches for postgresql-server-8.4.17_1
===>   postgresql-server-8.4.17_1 depends on executable: gmake - found
===>   postgresql-server-8.4.17_1 depends on executable: gcc46 - found
===>   postgresql-server-8.4.17_1 depends on file: /usr/local/bin/as - found
===>   postgresql-server-8.4.17_1 depends on file: /usr/local/bin/ccache - found
===>   postgresql-server-8.4.17_1 depends on shared library: xml2.5 - found
===>   postgresql-server-8.4.17_1 depends on shared library: pq.5 - found
===>  Configuring for postgresql-server-8.4.17_1
checking build system type... i386-portbld-freebsd9.1
checking host system type... i386-portbld-freebsd9.1
checking which template to use... freebsd
checking whether to build with 64-bit integer date/time support... yes
checking whether NLS is wanted... no
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
checking for WAL block size... 8kB
checking for WAL segment size... 16MB
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc46 accepts -g... yes
checking for gcc46 option to accept ISO C89... none needed
checking if gcc46 supports -Wdeclaration-after-statement... yes
checking if gcc46 supports -Wendif-labels... yes
checking if gcc46 supports -fno-strict-aliasing... yes
checking if gcc46 supports -fwrapv... yes
checking if gcc46 supports -fexcess-precision=standard... yes
checking whether the C compiler still works... yes
checking how to run the C preprocessor... cpp46
checking allow thread-safe client libraries... yes
checking whether to build with Tcl... no
checking whether to build Perl modules... no
checking whether to build Python modules... no
checking whether to build with GSSAPI support... no
checking whether to build with Kerberos 5 support... no
checking whether to build with PAM support... no
checking whether to build with LDAP support... no
checking whether to build with Bonjour support... no
checking whether to build with OpenSSL support... no
checking for xml2-config... xml2-config
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by GCC... /usr/local/bin/ld
checking if the linker (/usr/local/bin/ld) is GNU ld... yes
checking for ranlib... /usr/local/bin/ranlib
checking for strip... strip
checking whether it is possible to strip libraries... ^C

halted (cntl-c, the above line terminates the configure until grep
is moved:)

#mmv /usr/local/bin/grep .

resumed ... configures normally as shown below.

Note the line after the halt above, continues with no pause at all
[As shown below, with grep moved out of the way.]
[Just enough of the configure sent to demonstrate the problem.]





Script started on Sat Apr  6 17:06:06 2013
make build
===>   postgresql-server-8.4.17_1 depends on executable: gmake - found
===>   postgresql-server-8.4.17_1 depends on executable: gcc46 - found
===>   postgresql-server-8.4.17_1 depends on file: /usr/local/bin/as - found
===>   postgresql-server-8.4.17_1 depends on file: /usr/local/bin/ccache - found
===>   postgresql-server-8.4.17_1 depends on shared library: xml2.5 - found
===>   postgresql-server-8.4.17_1 depends on shared library: pq.5 - found
===>  Configuring for postgresql-server-8.4.17_1
checking build system type... i386-portbld-freebsd9.1
checking host system type... i386-portbld-freebsd9.1
checking which template to use... freebsd
checking whether to build with 64-bit integer date/time support... yes
checking whether NLS is wanted... no
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
checking for WAL block size... 8kB
checking for WAL segment size... 16MB
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc46 accepts -g... yes
checking for gcc46 option to accept ISO C89... none needed
checking if gcc46 supports -Wdeclaration-after-statement... yes
checking if gcc46 supports -Wendif-labels... yes
checking if gcc46 supports -fno-strict-aliasing... yes
checking if gcc46 supports -fwrapv... yes
checking if gcc46 supports -fexcess-precision=standard... yes
checking whether the C compiler still works... yes
checking how to run the C preprocessor... cpp46
checking allow thread-safe client libraries... yes
checking whether to build with Tcl... no
checking whether to build Perl modules... no
checking whether to build Python modules... no
checking whether to build with GSSAPI support... no
checking whether to build with Kerberos 5 support... no
checking whether to build with PAM support... no
checking whether to build with LDAP support... no
checking whether to build with Bonjour support... no
checking whether to build with OpenSSL support... no
checking for xml2-config... xml2-config
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by GCC... /usr/local/bin/ld
checking if the linker (/usr/local/bin/ld) is GNU ld... yes
checking for ranlib... /usr/local/bin/ranlib
checking for strip... strip
checking whether it is possible to strip libraries... yes
checking for ar... /usr/local/bin/ar
checking for tar... /usr/bin/tar
checking whether ln -s works... yes
checking for gawk... gawk
checking for bison... bison
configure: using bison (GNU Bison) 2.7
checking for flex... /usr/local/bin/flex

Script done on Sat Apr  6 17:06:24 2013

Fix: 

Unknown.
How-To-Repeat: It repeats, here, year after year.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-04-09 19:47:31 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pgsql

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Chris Rees freebsd_committer freebsd_triage 2013-04-10 09:32:15 UTC
State Changed
From-To: open->feedback

Please reply to my email regarding this; 
http://lists.freebsd.org/pipermail/freebsd-ports/2013-February/081313.html
Comment 3 Olli Hauer 2013-04-10 13:38:15 UTC
Please test without bsdgrep.

Meanwhile I have reports from users several users
that portbuild (for example apache22/24) is broken
with bsdgrep.

For example see
http://lists.freebsd.org/pipermail/freebsd-ports/2013-March/082590.html
Comment 4 Chris Rees freebsd_committer freebsd_triage 2013-04-10 17:59:36 UTC
Sorry Jeffrey, I really can't reproduce it.

http://www.bayofrum.net/~crees/scratch/pgsql-configure-bsdgrep

Can you please run the following commands (in
/usr/ports/databases/postgresql84-server):

# make clean patch
# sh -x `make -VCONFIGURE_WRKSRC`/configure

Chris
Comment 5 Chris Rees freebsd_committer freebsd_triage 2013-04-10 18:00:58 UTC
On 10 April 2013 17:59, Chris Rees <crees@freebsd.org> wrote:
> Sorry Jeffrey, I really can't reproduce it.
>
> http://www.bayofrum.net/~crees/scratch/pgsql-configure-bsdgrep
>
> Can you please run the following commands (in
> /usr/ports/databases/postgresql84-server):
>
> # make clean patch
> # sh -x `make -VCONFIGURE_WRKSRC`/configure

Oops, actually don't do that!

# make clean patch
# cd `make -VCONFIGURE_WRKSRC`
# sh -x ./configure

Chris
Comment 6 Carlo Strub freebsd_committer freebsd_triage 2014-09-14 10:18:53 UTC
Is this PR still relevant?
Comment 7 Rene Ladan freebsd_committer freebsd_triage 2015-06-10 16:55:47 UTC
This (expired) port builds fine now.