Skip to content

Commit

Permalink
Use shorter pathname for COPR RPM build
Browse files Browse the repository at this point in the history
If the path of SOCKET_WRAPPER_DIR is too long, it doesn't fit in the
sun_path field of the sockaddr_un, and libsocket_wrapper gets very
unhappy, reporting 'Too many unix sockets'. Despite actually only ever
trying *one* path over and over again 1024 times due to truncation.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
dwmw2 committed May 4, 2020
1 parent 7eba845 commit 1cfda76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .copr/Makefile
Expand Up @@ -18,7 +18,7 @@ srpm: /usr/bin/git
tarprefix=$$(sed -n '/^%global tagver /s/.* //p' $(TARGET).spec); \
tarname=$${tarprefix}; \
fi; \
git archive --prefix=openconnect-$${tarprefix}/ HEAD -o .copr/openconnect-$${tarname}.tar.gz
git archive --prefix=openconnect-$${tarname}/ HEAD -o .copr/openconnect-$${tarname}.tar.gz
rpmbuild -bs $(TARGET).spec --define "_sourcedir .copr" --define "_srcrpmdir $(outdir)"

/usr/bin/git:
Expand Down
2 changes: 1 addition & 1 deletion mingw-openconnect.spec.in
Expand Up @@ -79,7 +79,7 @@ The OpenConnect multiprotocol VPN client library, cross-compiled for MinGW.

%prep
%if 0%{?gitsnapshot}
%setup -q -n openconnect-%{snapcommit}
%setup -q -n openconnect-%{shortcommit}
NOCONFIGURE=x ./autogen.sh
%else
%gpg_verify
Expand Down
2 changes: 1 addition & 1 deletion openconnect.spec.in
Expand Up @@ -102,7 +102,7 @@ for NetworkManager etc.
%include %SOURCE3
%prep
%if 0%{?gitsnapshot}
%setup -q -n %{name}-%{snapcommit}
%setup -q -n %{name}-%{shortcommit}
NOCONFIGURE=x ./autogen.sh
%else
%gpg_verify
Expand Down

0 comments on commit 1cfda76

Please sign in to comment.