Hello community,

here is the log from the commit of package bam for openSUSE:Factory checked in 
at 2018-04-17 11:19:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/bam (Old)
 and      /work/SRC/openSUSE:Factory/.bam.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bam"

Tue Apr 17 11:19:47 2018 rev:4 rq:597328 version:0.5.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/bam/bam.changes  2018-03-14 19:40:38.901769689 
+0100
+++ /work/SRC/openSUSE:Factory/.bam.new/bam.changes     2018-04-17 
11:19:52.819766017 +0200
@@ -1,0 +2,8 @@
+Mon Apr 16 11:07:07 UTC 2018 - antoine.belv...@opensuse.org
+
+- Fix compilation issue order:
+  * Add bam-0.5.1-fix-compilation-order.patch.
+  * Enable tests (they actually showed the problem).
+- Clean spec file with spec-cleaner.
+
+-------------------------------------------------------------------

New:
----
  bam-0.5.1-fix-compilation-order.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ bam.spec ++++++
--- /var/tmp/diff_new_pack.oBbREo/_old  2018-04-17 11:19:53.383739585 +0200
+++ /var/tmp/diff_new_pack.oBbREo/_new  2018-04-17 11:19:53.387739397 +0200
@@ -24,6 +24,8 @@
 Group:          Development/Tools/Building
 Url:            http://matricks.github.com/bam/
 Source:         
https://github.com/matricks/bam/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM bam-0.5.1-fix-compilation-order.patch -- 
https://github.com/matricks/bam/issues/116
+Patch0:         bam-0.5.1-fix-compilation-order.patch
 BuildRequires:  gcc-c++
 BuildRequires:  pandoc
 BuildRequires:  pkgconfig
@@ -36,10 +38,11 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 export CFLAGS="%{optflags}"
-make %{?_smp_mflags}
+%make_build
 
 %install
 %make_install
@@ -47,10 +50,13 @@
 mkdir -p %{buildroot}%{_mandir}/man1
 pandoc docs/bam.1.txt -s -t man > %{buildroot}%{_mandir}/man1/bam.1
 
+%check
+make %{?_smp_mflags} test
+
 %files
-%defattr(-,root,root)
-%doc COPYING README.md
+%doc README.md
+%license COPYING
 %{_bindir}/%{name}
-%{_mandir}/man1/bam.1%{ext_man}
+%{_mandir}/man1/bam.1%{?ext_man}
 
 %changelog

++++++ bam-0.5.1-fix-compilation-order.patch ++++++
>From d792fa2d1ab54971db2a85f0363b7bce80e68b9c Mon Sep 17 00:00:00 2001
From: Antoine Belvire <antoine.belv...@opensuse.org>
Date: Mon, 16 Apr 2018 12:57:22 +0200
Subject: [PATCH] Fix compilation issue when using Makefile

The compilation output depends on the order of the TXT2C_LUA files.
For example if tools.lua is listed before base.lua, this leads to
incomplete compilation.

This commit hardcodes the order of lua files in Makefile like it's
done in make_unix.sh.

Fixes #116.
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index d804874..4f8acf9 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ CFLAGS += $(LUA_CFLAGS)
 # objects
 TARGETS = bam
 BAM_OBJ = $(patsubst %.c,%.o,$(wildcard src/*.c))
-TXT2C_LUA = $(wildcard src/*.lua)
+TXT2C_LUA = src/base.lua src/tools.lua src/driver_gcc.lua src/driver_clang.lua 
src/driver_cl.lua src/driver_solstudio.lua src/driver_xlc.lua
 
 
 # make rules
-- 
2.16.3


Reply via email to