[PATCH 3/3] build: Fix "make distcheck"

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Andreas Rottmann mail at rotty.xx.vu
Sun May 24 22:10:06 UTC 2015


From: Andreas Rottmann <a.rottmann at gmx.at>

Running "make distcheck" failed trying to generate ".version" into the
read-only unpacked source directory. Actually shipping ".version" in the
tarball fixes that.

The error manifested as:

  make[1]: Entering directory '/tmp/build/libosmo-sccp-0.0.6.3.24-758d/_build'
  echo 0.0.6.3.24-758d > ../.version-t && mv ../.version-t ../.version
  /bin/bash: ../.version-t: Permission denied
  Makefile:807: recipe for target '../.version' failed
---
 Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile.am b/Makefile.am
index e300b31..534fdc2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,6 +6,8 @@ SUBDIRS = include src tests
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = libosmo-sccp.pc libosmo-mtp.pc
 
+EXTRA_DIST = .version
+
 BUILT_SOURCES = $(top_srcdir)/.version
 $(top_srcdir)/.version:
 	echo $(VERSION) > $@-t && mv $@-t $@
-- 
2.1.4




More information about the OpenBSC mailing list