Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1.1 can't be built without git #13

Closed
saaros opened this issue Jun 10, 2013 · 0 comments
Closed

2.1.1 can't be built without git #13

saaros opened this issue Jun 10, 2013 · 0 comments

Comments

@saaros
Copy link
Member

saaros commented Jun 10, 2013

From #11 (comment)

Hi,

the 2.1.1 build throws some strange git errors while doing a make and make install:

# make
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
cp -fp ext/pgmemcache.sql pgmemcache--.sql
fatal: Not a git repository (or any of the parent directories): .git
sed -e 's,__short_ver__,,g' < ext/pgmemcache.control > pgmemcache.control
gcc -g -O2 -fPIC -pie -I/usr/include/mit-krb5 -DLINUX_OOM_ADJ=0 -fPIC -pie -I/usr/include/mit-krb5 -DLINUX_OOM_ADJ=0 -Wall -Wmissing-prototypes                   -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -g -fpic                   -I. -I. -I/usr/include/postgresql/9.2/server -I/usr/include/postgresql/internal -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/tcl8.5  -c                   -o pgmemcache.o pgmemcache.c
gcc -g -O2 -fPIC -pie -I/usr/include/mit-krb5 -DLINUX_OOM_ADJ=0 -fPIC -pie -I/usr/include/mit-krb5 -DLINUX_OOM_ADJ=0 -Wall -Wmissing-prototypes                   -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -g -fpic                   -shared -o pgmemcache.so pgmemcache.o -L/usr/lib -Wl,--as-needed -L/usr/lib/mit-krb5 -L/usr/lib//mit-krb5 -Wl,--as-needed -L/usr/lib/mit-krb5 -L                  /usr/lib//mit-krb5  -Wl,--as-needed  -lmemcached -lsasl2

The generated files have errors too:

# CREATE EXTENSION pgmemcache;
ERROR:  invalid extension version name: ""
DETAIL:  Version names must not be empty.

# CREATE EXTENSION pgmemcache WITH VERSION '2.1.1';
ERROR:  could not stat file "/usr/share/postgresql/9.2/extension/pgmemcache--2.1.1.sql": No such file or directory

The extension file is missing the version:

/usr/share/postgresql/9.2/extension/pgmemcache--.sql

Version 2.1.0 works fine.

Cheers,
Patryk
saaros added a commit to saaros/pgmemcache that referenced this issue Jun 27, 2013
…ohmu#13]

The short version number is now specified in Makefile but the long version
number is still based on git describe output in case we have a proper git
checkout, in the case we don't have a git checkout a `-0-unknown` suffix is
used instead of the git commit information.
@saaros saaros closed this as completed Jun 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant