commit sdcc for openSUSE:Factory

2020-10-02 Thread root
Hello community,

here is the log from the commit of package sdcc for openSUSE:Factory checked in 
at 2020-10-02 17:35:10

Comparing /work/SRC/openSUSE:Factory/sdcc (Old)
 and  /work/SRC/openSUSE:Factory/.sdcc.new.4249 (New)


Package is "sdcc"

Fri Oct  2 17:35:10 2020 rev:17 rq:838796 version:4.0.0

Changes:

--- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes2019-11-21 
12:59:35.922510659 +0100
+++ /work/SRC/openSUSE:Factory/.sdcc.new.4249/sdcc.changes  2020-10-02 
17:35:22.798669803 +0200
@@ -1,0 +2,23 @@
+Wed Sep 30 10:28:26 UTC 2020 - Reinhard Max 
+
+- Update to version 4.0.0
+  * The pdk15 backend now passes the regression tests (both with
+and without --stack-auto), and is thus considered stable.
+  * New in-development pdk13 backend for Padauk µC with 13-bit
+wide program memory.
+  * C2X memccpy(), strdup(), strndup().
+  * Better tail call optimization.
+  * Many fixes in the pic14 backend.
+  * C2X u8 character constants.
+  * C2X bool, static_assert, alignof, alignas.
+  * C2X attributes on statements.
+  * C2X attribute declarations.
+  * Support for extended ASCII characters in sdas, sdld.
+  * Compiler support for UCNs and non-ASCII utf8 in identifiers.
+- Fix build by adding sdcc-fixupInlineLabel.patch to fix a
+  potential buffer overflow.
+- Add sdcc-pcode.patch to fix a strict aliasing warning and remove
+  -fno-strict-aliasing from CFLAGS.
+- Remove executable bits from source files to make rpmlint happy.
+
+---

Old:

  sdcc-src-3.9.0.tar.bz2

New:

  sdcc-fixupInlineLabel.patch
  sdcc-pcode.patch
  sdcc-src-4.0.0.tar.bz2



Other differences:
--
++ sdcc.spec ++
--- /var/tmp/diff_new_pack.CPwxyj/_old  2020-10-02 17:35:24.742670962 +0200
+++ /var/tmp/diff_new_pack.CPwxyj/_new  2020-10-02 17:35:24.742670962 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package sdcc
 #
-# Copyright (c) 2019 SUSE LLC.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:   sdcc
-Version:3.9.0
+Version:4.0.0
 Release:0
 Summary:Small Device C Compiler
 License:GPL-2.0-or-later AND GPL-3.0-or-later
@@ -27,6 +27,8 @@
 Source1:%{name}-rpmlintrc
 Patch0: 0001-Doc-Disable-fallback-to-dvipdfm-remove-non-pdftex-ta.patch
 Patch2: sdcc_enable_additional_target_libs.patch
+Patch3: sdcc-fixupInlineLabel.patch
+Patch4: sdcc-pcode.patch
 BuildRequires:  bison
 %if 0%{?suse_version} >= 1500
 BuildRequires:  libboost_headers-devel
@@ -98,8 +100,12 @@
 rm support/regression/tests/bug3304184.c
 # remove non-free libraries, see doc/README.txt: Licenses
 find device/non-free/ \( -iname \*.h -o -iname \*.c -o -iname \*.S \) -delete
+# remove spurious x bits from source files to make rpmlint happy.
+find -name '*.[ch]' -perm -u=x | xargs chmod a-x
 %patch0 -p1
 %patch2 -p1
+%patch3
+%patch4
 sed -i '1 s@.*@#!/usr/bin/python3@' support/scripts/as2gbmap.py
 
 %build
@@ -107,7 +113,6 @@
 export LATEX2HTML=/usr/bin/true
 export DVIPDFM=/usr/bin/true
 export PYTHON=/usr/bin/python3
-CFLAGS="%{optflags} -fno-strict-aliasing" \
 %configure \
 --docdir=%{_docdir}/sdcc \
 --disable-non-free \

++ sdcc-fixupInlineLabel.patch ++
--- src/SDCCast.c.orig
+++ src/SDCCast.c
@@ -6962,7 +6962,7 @@ fixupInlineLabel (symbol * sym)
 
   dbuf_init (, 128);
   dbuf_printf (, "%s_%d", sym->name, inlineState.count);
-  strncpyz (sym->name, dbuf_c_str (), SDCC_NAME_MAX);
+  strncpyz (sym->name, dbuf_c_str (), SDCC_SYMNAME_MAX);
   dbuf_destroy ();
 }
 
++ sdcc-pcode.patch ++
--- src/pic16/pcodepeep.c.orig
+++ src/pic16/pcodepeep.c
@@ -41,7 +41,7 @@ pCode * pic16_findNextInstruction(pCode
 int pic16_getpCode(char *mnem,int dest);
 int pic16_getpCodePeepCommand(char *cmd);
 void pic16_pBlockMergeLabels(pBlock *pb);
-char *pic16_pCode2str(char *str, int size, pCode *pc);
+char *pic16_pCode2str(char *str, size_t size, pCode *pc);
 //char *pic16_get_op(pCodeOp *pcop,char *buf, size_t buf_size);
 pCodeOp *pic16_popCombine2(pCodeOp *, pCodeOp *, int);
 
++ sdcc-src-3.9.0.tar.bz2 -> sdcc-src-4.0.0.tar.bz2 ++
/work/SRC/openSUSE:Factory/sdcc/sdcc-src-3.9.0.tar.bz2 
/work/SRC/openSUSE:Factory/.sdcc.new.4249/sdcc-src-4.0.0.tar.bz2 differ: char 
11, line 1




commit sdcc for openSUSE:Factory

2019-11-21 Thread root
Hello community,

here is the log from the commit of package sdcc for openSUSE:Factory checked in 
at 2019-11-21 12:59:33

Comparing /work/SRC/openSUSE:Factory/sdcc (Old)
 and  /work/SRC/openSUSE:Factory/.sdcc.new.26869 (New)


Package is "sdcc"

Thu Nov 21 12:59:33 2019 rev:16 rq:750017 version:3.9.0

Changes:

--- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes2019-01-10 
15:22:44.982367175 +0100
+++ /work/SRC/openSUSE:Factory/.sdcc.new.26869/sdcc.changes 2019-11-21 
12:59:35.922510659 +0100
@@ -1,0 +2,88 @@
+Mon Nov 18 22:32:42 UTC 2019 - Stefan Brüns 
+
+- Update to version 3.9.0
+  * Support for struct / union assignment.
+  * Optimizations in the stm8 backend relevant to soft float increase
+Whetstone score by two thirds.
+  * Improvements in rematerialization in the stm8 backend improve code
+generation for struct, union and arrays.
+  * New stack allocator reduces stack space usage for the stm8, z80, z180,
+gbz80, r2k, r3ka, tlcs90 backends.
+  * New ez80_z80 backend for eZ80 in Z80 mode.
+  * Removed deprecated sdcclib utility.
+  * New pdk14 backend for Padauk µC with 14-bit wide program memory.
+  * New in-development pdk15 backend for Padauk µC with 15-bit wide program
+memory.
+- Update to version 3.8.0
+  * Additional general utility function: bsearch().
+  * Support for rematerialization in the stm8 backend reduces register
+pressure and stack usage.
+  * Merged upstream GNU binutils 2.30
+  * All Python code is now fully compatible with both Python 2.7 and
+Python 3.6, so Python 3 can be used instead of Python 2.
+  * Regression testing for diagnostics.
+  * Improved handling of local bool variables in the mcs51 backend
+substantially reduces code size.
+  * Large memory model for stm8 for 24-bit codespace allows using more
+than 32KB of Flash for code.
+  * New optimizations for calls to some standard library function
+(printf(), puts(), strcpy()).
+  * The type of true and false from stdbool.h change from int to bool.
+  * New C2X mode (--std-c2x, --std-sdcc2x, #pragma std_c2x) adds support
+for one-argument static_assert variant.
+  * Intermingling of declarations and statements (ISO C99).
+  * Support headers for AX8052 devices.
+  * Adopted GCC 8.2 regression tests (execute part of the GCC C torture tests)
+- Update to version 3.7.0
+  * Changed putchar() prototype from void putchar(char) to int putchar(int)
+to improve standard-compliance and allow error reporting.
+  * Various speed improvements in stm8 backend - Dhrystone score more than
+doubled, resulting in SDCC achieving the highest Dhrystone scores
+among STM8 C implementations.
+  * Various speed improvements for multiplications resulting in SDCC achieving
+the highest Coremark scores among STM8 C implementations.
+  * Declarations in for loops (ISO C99).
+  * 64-bit integers (long long) for the mcs51 and ds390 backends (now long long
+is fully supported in SDCC except for the pic14 and pic16 backends).
+  * Full _Bool support for mcs51 and ds390 backend (now _Bool is fully
+supported in SDCC regardless of backend).
+  * Additional wide character library functions: mbstowcs() and wcstombs(),
+btowc() and wctob(), wcscmp(), wcslen().
+  * Changed PRNG for rand() from LCG to xorshift to improve speed and quality.
+  * Support for Small-C calling convention on the callee side (i.e. function
+definitions with Small-C calling convention).
+  * The obsolete macro SDCC (which used to contain the version number encoded
+as an integer) has finally been removed (except for mcs51, where it will
+survive a little bit longer for SiLabs IDE compability).
+  * New devices supported by simulator (TLCS-90, and the 517, F380, XC88X,
+DS320 mcs51-variants along with dual-dptr and MDU support).
+  * Timer, UART (incl. interrupt) and I/O support in STM8 simulator.
+  * Simulator support for banked memory and bit banding.
+  * Various simulator improvements: Conditional breakpoints, breakpoints by
+function name from SDCC debug output, OMF input, VCD output, simulator
+interface for simulated program and new operators in expressions.
+  * Deprecated --nojtbound and the corresponding pragma.
+  * Faster register allocator reduces compilation time by about 25% (does not
+apply to mcs51, ds390 which use a different register allocator).
+  * Execution count guessing and use of execution count guesses in stm8
+register allocation improve optimization for code speed.
+  * Changed getchar() prototype from char getchar(void) to int getchar(void)
+to improve standard-compliance and allow error reporting.
+  * Type qualifiers in array parameters (ISO C99).
+  * static in array parameters (ISO C99).
+  * Improved support for DWARFv2 debug info in ELF output (stm8, hc08, s08).
+  * Various 

commit sdcc for openSUSE:Factory

2019-01-10 Thread root
Hello community,

here is the log from the commit of package sdcc for openSUSE:Factory checked in 
at 2019-01-10 15:22:23

Comparing /work/SRC/openSUSE:Factory/sdcc (Old)
 and  /work/SRC/openSUSE:Factory/.sdcc.new.28833 (New)


Package is "sdcc"

Thu Jan 10 15:22:23 2019 rev:15 rq:663758 version:3.6.0

Changes:

--- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes2018-10-22 
11:23:06.415170098 +0200
+++ /work/SRC/openSUSE:Factory/.sdcc.new.28833/sdcc.changes 2019-01-10 
15:22:44.982367175 +0100
@@ -1,0 +2,8 @@
+Thu Dec 13 17:19:59 UTC 2018 - Michal Suchanek 
+
+- Fix Tumbleweed build.
+- Instead of including prebuilt MCS51_named.pdf build it during package build.
+  Besides avoiding the ImageMagick problem with interpreting PS this also
+  avoids rasterising the image.
+
+---
@@ -11,0 +20 @@
+  [bsc#1109976]

Old:

  MCS51_named.pdf



Other differences:
--
++ sdcc.spec ++
--- /var/tmp/diff_new_pack.ZOBtVU/_old  2019-01-10 15:22:46.018366103 +0100
+++ /var/tmp/diff_new_pack.ZOBtVU/_new  2019-01-10 15:22:46.018366103 +0100
@@ -25,8 +25,6 @@
 Url:http://sdcc.sourceforge.net/
 Source: 
http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.bz2
 Source1:%{name}-rpmlintrc
-# Converted from included MCS51_named.svg, avoid dependency on tools for 
SVG->EPS->PDF conversion
-Source2:MCS51_named.pdf
 Patch0: 0001-Doc-Disable-fallback-to-dvipdfm-remove-non-pdftex-ta.patch
 Patch2: sdcc_enable_additional_target_libs.patch
 BuildRequires:  bison
@@ -46,6 +44,7 @@
 BuildRequires:  ncurses-devel
 BuildRequires:  python-devel
 # documentation
+BuildRequires:  inkscape
 BuildRequires:  lyx
 BuildRequires:  makeinfo
 BuildRequires:  texlive-babel-english
@@ -53,6 +52,9 @@
 BuildRequires:  texlive-makeindex-bin
 %endif
 BuildRequires:  texlive-fancyhdr
+%if 0%{?suse_version} > 1500
+BuildRequires:  texlive-footnotehyper
+%endif
 BuildRequires:  texlive-latex
 BuildRequires:  texlive-makeindex
 BuildRequires:  texlive-ulem
@@ -100,7 +102,6 @@
 %patch0 -p1
 %patch2 -p1
 sed -i '1 s@.*@#!/usr/bin/python2@' support/scripts/as2gbmap.py
-cp %{SOURCE2} doc/
 
 %build
 # Force configure to ignore missing, but unused TeX binaries
@@ -114,6 +115,8 @@
 --enable-doc
 %endif
 
+inkscape --export-area-drawing --export-pdf=doc/MCS51_named.pdf 
doc/MCS51_named.svg
+
 make %{?_smp_mflags}
 
 %install




commit sdcc for openSUSE:Factory

2018-10-22 Thread root
Hello community,

here is the log from the commit of package sdcc for openSUSE:Factory checked in 
at 2018-10-22 11:23:03

Comparing /work/SRC/openSUSE:Factory/sdcc (Old)
 and  /work/SRC/openSUSE:Factory/.sdcc.new (New)


Package is "sdcc"

Mon Oct 22 11:23:03 2018 rev:14 rq:643010 version:3.6.0

Changes:

--- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes2018-10-09 
15:53:58.562296346 +0200
+++ /work/SRC/openSUSE:Factory/.sdcc.new/sdcc.changes   2018-10-22 
11:23:06.415170098 +0200
@@ -1,0 +2,6 @@
+Thu Oct 18 17:04:49 UTC 2018 - Stefan Brüns 
+
+- Delete PowerPC embedspu script from sdbinutils which conflicts with binutils,
+  fixes boo#1112433
+
+---



Other differences:
--
++ sdcc.spec ++
--- /var/tmp/diff_new_pack.mWZyLY/_old  2018-10-22 11:23:07.619168886 +0200
+++ /var/tmp/diff_new_pack.mWZyLY/_new  2018-10-22 11:23:07.619168886 +0200
@@ -142,6 +142,9 @@
 # remove documentation of bundled libbfd, conflicts with binutils
 rm %{buildroot}%{_infodir}/bfd.info*
 
+# remove PPC embedspu (unneeded unless you have an AVR etc with a cell 
engine), conflicts with binutils
+rm -f %{buildroot}%{_bindir}/embedspu
+
 # duplicates
 %fdupes -s %{buildroot}%{_datadir}/%{name}/lib/src
 %fdupes -s %{buildroot}%{_bindir}
@@ -152,8 +155,8 @@
 mv %{buildroot}%{_datadir}/%{name}/src %{buildroot}%{_datadir}/%{name}/lib/src
 
 %files
-%defattr(-,root,root)
-%doc ChangeLog COPYING doc/README.txt
+%doc ChangeLog doc/README.txt
+%license COPYING
 %exclude %{_docdir}/%{name}/ucsim/
 %exclude %{_docdir}/%{name}/sdas/
 %exclude %{_docdir}/%{name}/*.pdf
@@ -166,11 +169,9 @@
 %{_datadir}/emacs/site-lisp/*.el
 
 %files libc-sources
-%defattr(-,root,root)
 %{_datadir}/%{name}/lib/src
 
 %files doc
-%defattr(-,root,root)
 %dir %{_docdir}/%{name}
 %{_docdir}/%{name}/ucsim
 %{_docdir}/%{name}/sdas




commit sdcc for openSUSE:Factory

2018-10-09 Thread root
Hello community,

here is the log from the commit of package sdcc for openSUSE:Factory checked in 
at 2018-10-09 15:53:55

Comparing /work/SRC/openSUSE:Factory/sdcc (Old)
 and  /work/SRC/openSUSE:Factory/.sdcc.new (New)


Package is "sdcc"

Tue Oct  9 15:53:55 2018 rev:13 rq:640695 version:3.6.0

Changes:

--- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes2018-02-03 
15:42:58.624041376 +0100
+++ /work/SRC/openSUSE:Factory/.sdcc.new/sdcc.changes   2018-10-09 
15:53:58.562296346 +0200
@@ -1,0 +2,6 @@
+Tue Oct  2 21:12:41 UTC 2018 - Stefan Brüns 
+
+- Add pre-converted MCS51_named.pdf to sources, to avoid the lossy
+  SVG -> EPS (rasterized) -> PDF conversion of the distributed SVG.
+
+---

New:

  MCS51_named.pdf



Other differences:
--
++ sdcc.spec ++
--- /var/tmp/diff_new_pack.uEirQc/_old  2018-10-09 15:53:59.234295550 +0200
+++ /var/tmp/diff_new_pack.uEirQc/_new  2018-10-09 15:53:59.242295540 +0200
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -20,11 +20,13 @@
 Version:3.6.0
 Release:0
 Summary:Small Device C Compiler
-License:GPL-2.0+ and GPL-3.0+
+License:GPL-2.0-or-later AND GPL-3.0-or-later
 Group:  Development/Languages/C and C++
 Url:http://sdcc.sourceforge.net/
 Source: 
http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.bz2
 Source1:%{name}-rpmlintrc
+# Converted from included MCS51_named.svg, avoid dependency on tools for 
SVG->EPS->PDF conversion
+Source2:MCS51_named.pdf
 Patch0: 0001-Doc-Disable-fallback-to-dvipdfm-remove-non-pdftex-ta.patch
 Patch2: sdcc_enable_additional_target_libs.patch
 BuildRequires:  bison
@@ -50,7 +52,6 @@
 %if 0%{?suse_version} > 1320
 BuildRequires:  texlive-makeindex-bin
 %endif
-BuildRequires:  texlive-epstopdf
 BuildRequires:  texlive-fancyhdr
 BuildRequires:  texlive-latex
 BuildRequires:  texlive-makeindex
@@ -99,6 +100,7 @@
 %patch0 -p1
 %patch2 -p1
 sed -i '1 s@.*@#!/usr/bin/python2@' support/scripts/as2gbmap.py
+cp %{SOURCE2} doc/
 
 %build
 # Force configure to ignore missing, but unused TeX binaries




commit sdcc for openSUSE:Factory

2018-02-03 Thread root
Hello community,

here is the log from the commit of package sdcc for openSUSE:Factory checked in 
at 2018-02-03 15:42:55

Comparing /work/SRC/openSUSE:Factory/sdcc (Old)
 and  /work/SRC/openSUSE:Factory/.sdcc.new (New)


Package is "sdcc"

Sat Feb  3 15:42:55 2018 rev:12 rq:572217 version:3.6.0

Changes:

--- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes2017-02-07 
12:02:19.459324813 +0100
+++ /work/SRC/openSUSE:Factory/.sdcc.new/sdcc.changes   2018-02-03 
15:42:58.624041376 +0100
@@ -1,0 +2,12 @@
+Sat Feb  3 02:10:45 UTC 2018 - stefan.bru...@rwth-aachen.de
+
+- Add explicit BuildRequires: for footnote.sty
+- Remove handling of obsolete distribution versions
+- Cleanup spec, remove code necessary for older sdcc versions
+- Drop dvipdfm and latex2html BuildRequires:, these are not really
+  used
+- Add 0001-Doc-Disable-fallback-to-dvipdfm-remove-non-pdftex-ta.patch
+  * do not build dvi file, but use pdflatex to build references (.aux)
+  * use PDF version 1.5 instead of 1.3, reduces sdccman.pdf size by 40%
+
+---

New:

  0001-Doc-Disable-fallback-to-dvipdfm-remove-non-pdftex-ta.patch



Other differences:
--
++ sdcc.spec ++
--- /var/tmp/diff_new_pack.MsxXHw/_old  2018-02-03 15:42:59.444003079 +0100
+++ /var/tmp/diff_new_pack.MsxXHw/_new  2018-02-03 15:42:59.444003079 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package sdcc
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,9 +25,10 @@
 Url:http://sdcc.sourceforge.net/
 Source: 
http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.bz2
 Source1:%{name}-rpmlintrc
+Patch0: 0001-Doc-Disable-fallback-to-dvipdfm-remove-non-pdftex-ta.patch
 Patch2: sdcc_enable_additional_target_libs.patch
 BuildRequires:  bison
-%if 0%{?suse_version} > 1325
+%if 0%{?suse_version} >= 1500
 BuildRequires:  libboost_headers-devel
 %else
 BuildRequires:  boost-devel
@@ -43,23 +44,19 @@
 BuildRequires:  ncurses-devel
 BuildRequires:  python-devel
 # documentation
-%if 0%{?suse_version} >= 1220
-BuildRequires:  latex2html
 BuildRequires:  lyx
 BuildRequires:  makeinfo
 BuildRequires:  texlive-babel-english
 %if 0%{?suse_version} > 1320
-BuildRequires:  texlive-xetex-bin
+BuildRequires:  texlive-makeindex-bin
 %endif
-BuildRequires:  texlive-dvipdfmx
+BuildRequires:  texlive-epstopdf
 BuildRequires:  texlive-fancyhdr
 BuildRequires:  texlive-latex
 BuildRequires:  texlive-makeindex
 BuildRequires:  texlive-ulem
-%endif
+BuildRequires:  tex(footnote.sty)
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-Requires(post): %install_info_prereq
-Requires(preun): %install_info_prereq
 
 %description
 SDCC is a C compiler for 8051 class and similar microcontrollers.
@@ -70,9 +67,7 @@
 %packagedoc
 Summary:Documentation for the SDCC C compiler
 Group:  Documentation/HTML
-%if 0%{?suse_version} >= 1140
 BuildArch:  noarch
-%endif
 
 %descriptiondoc
 SDCC is a C compiler for 8051 class and similar microcontrollers.
@@ -99,9 +94,16 @@
 %prep
 %setup -q
 rm support/regression/tests/bug3304184.c
+# remove non-free libraries, see doc/README.txt: Licenses
+find device/non-free/ \( -iname \*.h -o -iname \*.c -o -iname \*.S \) -delete
+%patch0 -p1
 %patch2 -p1
+sed -i '1 s@.*@#!/usr/bin/python2@' support/scripts/as2gbmap.py
 
 %build
+# Force configure to ignore missing, but unused TeX binaries
+export LATEX2HTML=/usr/bin/true
+export DVIPDFM=/usr/bin/true
 CFLAGS="%{optflags} -fno-strict-aliasing" \
 %configure \
 --docdir=%{_docdir}/sdcc \
@@ -122,29 +124,30 @@
 mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp
 mv %{buildroot}%{_bindir}/*.el %{buildroot}%{_datadir}/emacs/site-lisp
 
-#remove useless file
+# remove useless file
 rm %{buildroot}%{_docdir}/%{name}/INSTALL.txt
 
-#remove strange suff (installed by mistake?)
-rm -rf %{buildroot}%{_includedir}
-rm -rf %{buildroot}%{_libdir}
-
-# remove non-free libraries, see doc/README.txt: Licenses
-rm -rf %{buildroot}%{_datadir}/%{name}/non-free/
+# remove strange stuff (installed by mistake?)
+rm -rf %{buildroot}%{_datadir}/%{name}/lib/src/pic1{4,6}/.checkdevices
+rm -rf %{buildroot}%{_datadir}/%{name}/lib/src/pic1{4,6}/aclocal.m4
+rm -rf %{buildroot}%{_datadir}/%{name}/lib/src/pic1{4,6}/stamp-h1
+rm -rf %{buildroot}%{_datadir}/%{name}/lib/src/pic1{4,6}/libsdcc/.dirstamp
+
+# remove built libraries from source folder
+find %{buildroot}%{_datadir}/%{name}/lib/src/pic16/ -iname \*lib*.a -delete
+find 

commit sdcc for openSUSE:Factory

2017-02-07 Thread root
Hello community,

here is the log from the commit of package sdcc for openSUSE:Factory checked in 
at 2017-02-07 12:02:18

Comparing /work/SRC/openSUSE:Factory/sdcc (Old)
 and  /work/SRC/openSUSE:Factory/.sdcc.new (New)


Package is "sdcc"

Changes:

--- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes2016-09-21 
18:50:46.0 +0200
+++ /work/SRC/openSUSE:Factory/.sdcc.new/sdcc.changes   2017-02-07 
12:02:19.459324813 +0100
@@ -1,0 +2,5 @@
+Thu Feb  2 12:40:27 UTC 2017 - adam.ma...@suse.de
+
+- use individual libboost-*-devel packages instead of boost-devel
+
+---



Other differences:
--
++ sdcc.spec ++
--- /var/tmp/diff_new_pack.wzeFjV/_old  2017-02-07 12:02:20.303205436 +0100
+++ /var/tmp/diff_new_pack.wzeFjV/_new  2017-02-07 12:02:20.307204871 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package sdcc
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,7 +27,11 @@
 Source1:%{name}-rpmlintrc
 Patch2: sdcc_enable_additional_target_libs.patch
 BuildRequires:  bison
+%if 0%{?suse_version} > 1325
+BuildRequires:  libboost_headers-devel
+%else
 BuildRequires:  boost-devel
+%endif
 BuildRequires:  fdupes
 BuildRequires:  flex
 BuildRequires:  gcc




commit sdcc for openSUSE:Factory

2016-09-21 Thread h_root
Hello community,

here is the log from the commit of package sdcc for openSUSE:Factory checked in 
at 2016-09-21 18:50:43

Comparing /work/SRC/openSUSE:Factory/sdcc (Old)
 and  /work/SRC/openSUSE:Factory/.sdcc.new (New)


Package is "sdcc"

Changes:

--- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes2016-09-16 
11:00:40.0 +0200
+++ /work/SRC/openSUSE:Factory/.sdcc.new/sdcc.changes   2016-09-21 
18:50:46.0 +0200
@@ -1,0 +2,9 @@
+Tue Sep 20 19:24:27 UTC 2016 - stefan.bru...@rwth-aachen.de
+
+- Spec file cleanup:
+  * disable non-free build, instead of deleting build files
+  * do not install bfd info, which conflicts with binutils package,
+and is useless, as sdcc links libbfd statically
+  * cleanup %doc
+
+---



Other differences:
--
++ sdcc.spec ++
--- /var/tmp/diff_new_pack.X1cAv9/_old  2016-09-21 18:50:48.0 +0200
+++ /var/tmp/diff_new_pack.X1cAv9/_new  2016-09-21 18:50:48.0 +0200
@@ -101,6 +101,7 @@
 CFLAGS="%{optflags} -fno-strict-aliasing" \
 %configure \
 --docdir=%{_docdir}/sdcc \
+--disable-non-free \
 %if 0%{?suse_version} >= 1320
 --enable-doc
 %endif
@@ -113,8 +114,6 @@
 # install documentation
 mkdir -p %{buildroot}%{_docdir}/%{name}/sdas
 cp sdas/doc/* %{buildroot}%{_docdir}/%{name}/sdas
-cp ChangeLog %{buildroot}%{_docdir}/%{name}
-cp COPYING %{buildroot}%{_docdir}/%{name}
 
 mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp
 mv %{buildroot}%{_bindir}/*.el %{buildroot}%{_datadir}/emacs/site-lisp
@@ -122,9 +121,6 @@
 #remove useless file
 rm %{buildroot}%{_docdir}/%{name}/INSTALL.txt
 
-cp ChangeLog %{buildroot}%{_docdir}/%{name}
-cp COPYING %{buildroot}%{_docdir}/%{name}
-
 #remove strange suff (installed by mistake?)
 rm -rf %{buildroot}%{_includedir}
 rm -rf %{buildroot}%{_libdir}
@@ -132,6 +128,9 @@
 # remove non-free libraries, see doc/README.txt: Licenses
 rm -rf %{buildroot}%{_datadir}/%{name}/non-free/
 
+# remove documentation of bundled libbfd, conflicts with binutils
+rm %{buildroot}%{_infodir}/bfd.info*
+
 # duplicates
 %fdupes -s %{buildroot}%{_datadir}/%{name}/lib/src
 
@@ -143,19 +142,12 @@
 rm -rf %{buildroot}%{_datadir}/%{name}/non-free/lib/src/pic16/libdev/.deps
 %endif
 
-%post
-%install_info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz
-
-%preun
-%install_info_delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz
-
-
 %files
 %defattr(-,root,root)
-%dir %{_docdir}/%{name}
-%{_docdir}/%{name}/ChangeLog
-%{_docdir}/%{name}/COPYING
-%{_docdir}/%{name}/README.txt
+%doc ChangeLog COPYING doc/README.txt
+%exclude %{_docdir}/%{name}/ucsim/
+%exclude %{_docdir}/%{name}/sdas/
+%exclude %{_docdir}/%{name}/*.pdf
 %{_bindir}/*
 %dir %{_datadir}/%{name}
 %{_datadir}/%{name}/include
@@ -163,7 +155,6 @@
 %exclude %{_datadir}/%{name}/lib/src
 %dir %{_datadir}/emacs/site-lisp
 %{_datadir}/emacs/site-lisp/*.el
-%{_infodir}/bfd.info.gz
 
 %files libc-sources
 %defattr(-,root,root)




commit sdcc for openSUSE:Factory

2016-09-16 Thread h_root
Hello community,

here is the log from the commit of package sdcc for openSUSE:Factory checked in 
at 2016-09-16 11:00:36

Comparing /work/SRC/openSUSE:Factory/sdcc (Old)
 and  /work/SRC/openSUSE:Factory/.sdcc.new (New)


Package is "sdcc"

Changes:

--- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes2016-08-16 
13:03:43.0 +0200
+++ /work/SRC/openSUSE:Factory/.sdcc.new/sdcc.changes   2016-09-16 
11:00:40.0 +0200
@@ -1,0 +2,29 @@
+Tue Sep  6 22:17:08 UTC 2016 - w...@ire.pw.edu.pl
+
+- Fixed info file uninstall
+
+---
+Mon Sep  5 19:49:01 UTC 2016 - w...@ire.pw.edu.pl
+
+- Update to version 3.5.0
+  * Merged upstream binutils 2.25
+  * New memory management with lower overhead
+  * Changed default language dialect to --std-sdcc11
+  * Diagnostic for missing type specifier: No implicit int outside of C90 mode 
anymore
+  * C11 generic selections
+  * char type is now unsigned by default (old behaviour can be restored using 
--fsigned-char)
+  * Character constants are now of type int instead of char.
+  * ISO C95 and ISO C11 wide character constants
+  * ISO C95 and ISO C11 wide string literals
+  * Basic standard library support for wide characters: c16rtomb(), 
mbrtoc16(), mbsinit(), mbtowc(), mbrlen(), mbrtoc32, c32rtomb(), mbrtowc(), 
wcrtomb(), mblen(), wctomb()
+  * Treat all ports the same in the manual (i.e. mcs51-specific stuff is now 
clearly described as such)
+  * Reorganized interrupt handling for z80, z180, r2k, r3ka, tlcs90, gbz80 
backends
+  * Workaround for stm8 division hardware bug
+  * ELF/DWARF support for stm8
+  * Output symbol table for ELF
+  * pic16 port now uses standard-compliant crt0iz that initializes static and 
globals to 0 by default
+- Numerous feature requests and bug fixes are included as well.
+- Removed patch sdcc_add_ppc64le_suse_support.patch (applied upstream)
+- Modified patch sdcc_enable_additional_target_libs.patch
+
+---

Old:

  sdcc-src-3.5.0.tar.bz2
  sdcc_add_ppc64le_suse_support.patch

New:

  sdcc-src-3.6.0.tar.bz2



Other differences:
--
++ sdcc.spec ++
--- /var/tmp/diff_new_pack.JNa1W2/_old  2016-09-16 11:00:44.0 +0200
+++ /var/tmp/diff_new_pack.JNa1W2/_new  2016-09-16 11:00:44.0 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   sdcc
-Version:3.5.0
+Version:3.6.0
 Release:0
 Summary:Small Device C Compiler
 License:GPL-2.0+ and GPL-3.0+
@@ -25,7 +25,6 @@
 Url:http://sdcc.sourceforge.net/
 Source: 
http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.bz2
 Source1:%{name}-rpmlintrc
-Patch1: sdcc_add_ppc64le_suse_support.patch
 Patch2: sdcc_enable_additional_target_libs.patch
 BuildRequires:  bison
 BuildRequires:  boost-devel
@@ -40,7 +39,7 @@
 BuildRequires:  ncurses-devel
 BuildRequires:  python-devel
 # documentation
-%if 0%{?suse_version} >= 1320
+%if 0%{?suse_version} >= 1220
 BuildRequires:  latex2html
 BuildRequires:  lyx
 BuildRequires:  makeinfo
@@ -55,6 +54,8 @@
 BuildRequires:  texlive-ulem
 %endif
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+Requires(post): %install_info_prereq
+Requires(preun): %install_info_prereq
 
 %description
 SDCC is a C compiler for 8051 class and similar microcontrollers.
@@ -94,7 +95,6 @@
 %prep
 %setup -q
 rm support/regression/tests/bug3304184.c
-%patch1 -p1
 %patch2 -p1
 
 %build
@@ -143,6 +143,13 @@
 rm -rf %{buildroot}%{_datadir}/%{name}/non-free/lib/src/pic16/libdev/.deps
 %endif
 
+%post
+%install_info --info-dir=%{_infodir} %{_infodir}/bfd.info.gz
+
+%preun
+%install_info_delete --info-dir=%{_infodir} %{_infodir}/bfd.info.gz
+
+
 %files
 %defattr(-,root,root)
 %dir %{_docdir}/%{name}
@@ -156,6 +163,7 @@
 %exclude %{_datadir}/%{name}/lib/src
 %dir %{_datadir}/emacs/site-lisp
 %{_datadir}/emacs/site-lisp/*.el
+%{_infodir}/bfd.info.gz
 
 %files libc-sources
 %defattr(-,root,root)

++ sdcc-src-3.5.0.tar.bz2 -> sdcc-src-3.6.0.tar.bz2 ++
/work/SRC/openSUSE:Factory/sdcc/sdcc-src-3.5.0.tar.bz2 
/work/SRC/openSUSE:Factory/.sdcc.new/sdcc-src-3.6.0.tar.bz2 differ: char 11, 
line 1

++ sdcc_enable_additional_target_libs.patch ++
--- /var/tmp/diff_new_pack.JNa1W2/_old  2016-09-16 11:00:44.0 +0200
+++ /var/tmp/diff_new_pack.JNa1W2/_new  2016-09-16 11:00:44.0 +0200
@@ -1,35 +1,20 @@
-From: Tobias Klausmann 
-Subject: Enable additional target libs
-Date: Fri, 30 Oct 2015 20:46:23 +0100
-
-This is required for contiki:
-https://github.com/contiki-os/contiki/wiki/8051-Requirements
-
-Signed-off-by: Tobias Klausmann 

commit sdcc for openSUSE:Factory

2016-08-16 Thread h_root
Hello community,

here is the log from the commit of package sdcc for openSUSE:Factory checked in 
at 2016-08-16 13:03:43

Comparing /work/SRC/openSUSE:Factory/sdcc (Old)
 and  /work/SRC/openSUSE:Factory/.sdcc.new (New)


Package is "sdcc"

Changes:

--- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes2015-11-26 
17:01:28.0 +0100
+++ /work/SRC/openSUSE:Factory/.sdcc.new/sdcc.changes   2016-08-16 
13:03:43.0 +0200
@@ -1,0 +2,6 @@
+Tue Aug 16 07:37:46 UTC 2016 - dims...@opensuse.org
+
+- BuildRequire texlive-xetex-bin in plus in openSUSE Tumbleweed in
+  order to workaround boo#992360.
+
+---



Other differences:
--
++ sdcc.spec ++
--- /var/tmp/diff_new_pack.YVAJ1V/_old  2016-08-16 13:03:45.0 +0200
+++ /var/tmp/diff_new_pack.YVAJ1V/_new  2016-08-16 13:03:45.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package sdcc
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -45,6 +45,9 @@
 BuildRequires:  lyx
 BuildRequires:  makeinfo
 BuildRequires:  texlive-babel-english
+%if 0%{?suse_version} > 1320
+BuildRequires:  texlive-xetex-bin
+%endif
 BuildRequires:  texlive-dvipdfmx
 BuildRequires:  texlive-fancyhdr
 BuildRequires:  texlive-latex




commit sdcc for openSUSE:Factory

2015-11-26 Thread h_root
Hello community,

here is the log from the commit of package sdcc for openSUSE:Factory checked in 
at 2015-11-26 17:01:23

Comparing /work/SRC/openSUSE:Factory/sdcc (Old)
 and  /work/SRC/openSUSE:Factory/.sdcc.new (New)


Package is "sdcc"

Changes:

--- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes2015-08-27 
08:57:59.0 +0200
+++ /work/SRC/openSUSE:Factory/.sdcc.new/sdcc.changes   2015-11-26 
17:01:28.0 +0100
@@ -1,0 +2,6 @@
+Fri Oct 30 20:01:08 UTC 2015 - tobias.johannes.klausm...@mni.thm.de
+
+- Build additional libraries sdcc can link against
+- Add patch sdcc_enable_additional_target_libs.patch
+
+---

New:

  sdcc_enable_additional_target_libs.patch



Other differences:
--
++ sdcc.spec ++
--- /var/tmp/diff_new_pack.K7Cgv8/_old  2015-11-26 17:01:29.0 +0100
+++ /var/tmp/diff_new_pack.K7Cgv8/_new  2015-11-26 17:01:29.0 +0100
@@ -26,6 +26,7 @@
 Source: 
http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.bz2
 Source1:%{name}-rpmlintrc
 Patch1: sdcc_add_ppc64le_suse_support.patch
+Patch2: sdcc_enable_additional_target_libs.patch
 BuildRequires:  bison
 BuildRequires:  boost-devel
 BuildRequires:  fdupes
@@ -91,6 +92,7 @@
 %setup -q
 rm support/regression/tests/bug3304184.c
 %patch1 -p1
+%patch2 -p1
 
 %build
 CFLAGS="%{optflags} -fno-strict-aliasing" \

++ sdcc_enable_additional_target_libs.patch ++
From: Tobias Klausmann 
Subject: Enable additional target libs
Date: Fri, 30 Oct 2015 20:46:23 +0100

This is required for contiki:
https://github.com/contiki-os/contiki/wiki/8051-Requirements

Signed-off-by: Tobias Klausmann 
---
 device/lib/incl.mk |2 +-
 device/lib/Makefile.in |2 +-
 2 file changed, 2 insertion(+), 2 deletion(-)

Index: sdcc-3.5.0/device/lib/incl.mk
===
--- a/device/lib/incl.mk
+++ b/device/lib/incl.mk
@@ -101,4 +101,4 @@
   assert.c \
   time.c
 
-MODELS = small medium large
+MODELS = small medium large huge
Index: sdcc-3.5.0/device/lib/Makefile.in
===
--- a/device/lib/Makefile.in
+++ b/device/lib/Makefile.in
@@ -186,7 +186,7 @@
 endif
 
 ifeq ($(OPT_DISABLE_MCS51), 0)
-TARGETS+= models small-mcs51-stack-auto
+TARGETS+= models model-mcs51-stack-auto
 endif
 
 ifeq ($(OPT_DISABLE_PIC14), 0)



commit sdcc for openSUSE:Factory

2015-08-27 Thread h_root
Hello community,

here is the log from the commit of package sdcc for openSUSE:Factory checked in 
at 2015-08-27 08:57:57

Comparing /work/SRC/openSUSE:Factory/sdcc (Old)
 and  /work/SRC/openSUSE:Factory/.sdcc.new (New)


Package is sdcc

Changes:

--- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes2015-08-21 
07:41:01.0 +0200
+++ /work/SRC/openSUSE:Factory/.sdcc.new/sdcc.changes   2015-08-27 
08:57:59.0 +0200
@@ -1,0 +2,5 @@
+Tue Aug 25 20:51:34 UTC 2015 - dmitr...@opensuse.org
+
+- Add _constraints file, 3 Gb of memory are required
+
+---

New:

  _constraints



Other differences:
--
++ sdcc.spec ++
--- /var/tmp/diff_new_pack.VirwNO/_old  2015-08-27 08:58:00.0 +0200
+++ /var/tmp/diff_new_pack.VirwNO/_new  2015-08-27 08:58:00.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package sdcc
 #
-# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed

++ _constraints ++
constraints
 hardware
  memory
   size unit=G3/size
  /memory
 /hardware
/constraints 



commit sdcc for openSUSE:Factory

2015-08-20 Thread h_root
Hello community,

here is the log from the commit of package sdcc for openSUSE:Factory checked in 
at 2015-08-21 07:41:00

Comparing /work/SRC/openSUSE:Factory/sdcc (Old)
 and  /work/SRC/openSUSE:Factory/.sdcc.new (New)


Package is sdcc

Changes:

--- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes2015-06-30 
10:18:33.0 +0200
+++ /work/SRC/openSUSE:Factory/.sdcc.new/sdcc.changes   2015-08-21 
07:41:01.0 +0200
@@ -1,0 +2,6 @@
+Tue Aug 18 16:03:31 UTC 2015 - norm...@linux.vnet.ibm.com
+
+- new patch to build on ppc64le
+  sdcc_add_ppc64le_suse_support.patch
+
+---

New:

  sdcc_add_ppc64le_suse_support.patch



Other differences:
--
++ sdcc.spec ++
--- /var/tmp/diff_new_pack.SZaMN7/_old  2015-08-21 07:41:02.0 +0200
+++ /var/tmp/diff_new_pack.SZaMN7/_new  2015-08-21 07:41:02.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package sdcc
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,7 @@
 Url:http://sdcc.sourceforge.net/
 Source: 
http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.bz2
 Source1:%{name}-rpmlintrc
+Patch1: sdcc_add_ppc64le_suse_support.patch
 BuildRequires:  bison
 BuildRequires:  boost-devel
 BuildRequires:  fdupes
@@ -89,6 +90,7 @@
 %prep
 %setup -q
 rm support/regression/tests/bug3304184.c
+%patch1 -p1
 
 %build
 CFLAGS=%{optflags} -fno-strict-aliasing \

++ sdcc_add_ppc64le_suse_support.patch ++
From:  Michel Normand norm...@linux.vnet.ibm.com
Subject: sdcc add ppc64le suse support
Date: Tue, 18 Aug 2015 17:20:45 +0200

sdcc add ppc64le suse support

Signed-off-by: Michel Normand norm...@linux.vnet.ibm.com
---
 support/sdbinutils/bfd/config.bfd |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: sdcc-3.5.0/support/sdbinutils/bfd/config.bfd
===
--- sdcc-3.5.0.orig/support/sdbinutils/bfd/config.bfd
+++ sdcc-3.5.0/support/sdbinutils/bfd/config.bfd
@@ -1185,7 +1185,7 @@ case ${targ} in
 targ_selvecs=bfd_elf64_powerpcle_vec bfd_elf32_powerpc_vec 
bfd_elf32_powerpcle_vec rs6000coff_vec rs6000coff64_vec aix5coff64_vec
 want64=true
 ;;
-  powerpc64le-*-elf* | powerpcle-*-elf64*)
+  powerpc64le-*-elf* | powerpcle-*-elf64* | powerpc64le-*-linux*)
 targ_defvec=bfd_elf64_powerpcle_vec
 targ_selvecs=bfd_elf64_powerpc_vec bfd_elf32_powerpcle_vec 
bfd_elf32_powerpc_vec rs6000coff_vec rs6000coff64_vec aix5coff64_vec
 want64=true



commit sdcc for openSUSE:Factory

2015-06-30 Thread h_root
Hello community,

here is the log from the commit of package sdcc for openSUSE:Factory checked in 
at 2015-06-30 10:18:26

Comparing /work/SRC/openSUSE:Factory/sdcc (Old)
 and  /work/SRC/openSUSE:Factory/.sdcc.new (New)


Package is sdcc

Changes:

--- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes2014-12-03 
22:49:22.0 +0100
+++ /work/SRC/openSUSE:Factory/.sdcc.new/sdcc.changes   2015-06-30 
10:18:33.0 +0200
@@ -1,0 +2,16 @@
+Fri Jun 26 05:33:39 UTC 2015 - dmitr...@opensuse.org
+
+- Update to version 3.5.0
+  * Changed default language dialect from --std-sdcc89 to --std-sdcc99
+  * Reorganized and updated manual
+  * Reduced memory consumption (most noticeable for high --max-allocs-per-node)
+  * Faster compilation for stm8 (most noticeable for high 
--max-allocs-per-node)
+  * atoll() function for conversion of strings to long long
+  * __z88dk_fastcall and __z88dk_callee calling conventions for more
+efficient function calls and better compability with z88dk
+  * --lospre-unsafe-read renamed to --allow-unsafe-read
+- Drop obsolete
+  * sdcc-remove-strndup.patch
+  * sdcc-libiberty.patch
+
+---

Old:

  sdcc-libiberty.patch
  sdcc-remove-strndup.patch
  sdcc-src-3.4.0.tar.bz2

New:

  sdcc-src-3.5.0.tar.bz2



Other differences:
--
++ sdcc.spec ++
--- /var/tmp/diff_new_pack.wKCWIY/_old  2015-06-30 10:18:34.0 +0200
+++ /var/tmp/diff_new_pack.wKCWIY/_new  2015-06-30 10:18:34.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package sdcc
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:   sdcc
-Version:3.4.0
+Version:3.5.0
 Release:0
 Summary:Small Device C Compiler
 License:GPL-2.0+ and GPL-3.0+
@@ -25,8 +25,6 @@
 Url:http://sdcc.sourceforge.net/
 Source: 
http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.bz2
 Source1:%{name}-rpmlintrc
-Patch0: %{name}-remove-strndup.patch
-Patch1: %{name}-libiberty.patch
 BuildRequires:  bison
 BuildRequires:  boost-devel
 BuildRequires:  fdupes
@@ -37,6 +35,20 @@
 BuildRequires:  gputils
 BuildRequires:  libstdc++-devel
 BuildRequires:  libtool
+BuildRequires:  ncurses-devel
+BuildRequires:  python-devel
+# documentation
+%if 0%{?suse_version} = 1320
+BuildRequires:  latex2html
+BuildRequires:  lyx
+BuildRequires:  makeinfo
+BuildRequires:  texlive-babel-english
+BuildRequires:  texlive-dvipdfmx
+BuildRequires:  texlive-fancyhdr
+BuildRequires:  texlive-latex
+BuildRequires:  texlive-makeindex
+BuildRequires:  texlive-ulem
+%endif
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -76,21 +88,20 @@
 
 %prep
 %setup -q
-%if 0%{?suse_version}  1320
-%patch0 -p 1 -b .strndup
-%endif
-%patch1 -p 1 -b .libiberty
-# bnc#889723
 rm support/regression/tests/bug3304184.c
 
 %build
 CFLAGS=%{optflags} -fno-strict-aliasing \
-%configure --prefix=%{_prefix} --docdir=%{_docdir}/sdcc
+%configure \
+--docdir=%{_docdir}/sdcc \
+%if 0%{?suse_version} = 1320
+--enable-doc
+%endif
 
 make %{?_smp_mflags}
 
 %install
-make DESTDIR=%{buildroot} install
+%make_install
 
 # install documentation
 mkdir -p %{buildroot}%{_docdir}/%{name}/sdas
@@ -148,5 +159,8 @@
 %dir %{_docdir}/%{name}
 %{_docdir}/%{name}/ucsim
 %{_docdir}/%{name}/sdas
+%if 0%{?suse_version} = 1320
+%{_docdir}/%{name}/sdccman.pdf
+%endif
 
 %changelog

++ sdcc-src-3.4.0.tar.bz2 - sdcc-src-3.5.0.tar.bz2 ++
/work/SRC/openSUSE:Factory/sdcc/sdcc-src-3.4.0.tar.bz2 
/work/SRC/openSUSE:Factory/.sdcc.new/sdcc-src-3.5.0.tar.bz2 differ: char 11, 
line 1




commit sdcc for openSUSE:Factory

2014-12-03 Thread h_root
Hello community,

here is the log from the commit of package sdcc for openSUSE:Factory checked in 
at 2014-12-03 22:48:34

Comparing /work/SRC/openSUSE:Factory/sdcc (Old)
 and  /work/SRC/openSUSE:Factory/.sdcc.new (New)


Package is sdcc

Changes:

--- /work/SRC/openSUSE:Factory/sdcc/sdcc.changes2014-08-03 
07:50:41.0 +0200
+++ /work/SRC/openSUSE:Factory/.sdcc.new/sdcc.changes   2014-12-03 
22:49:22.0 +0100
@@ -1,0 +2,7 @@
+Sun Nov 30 11:21:26 UTC 2014 - w...@ire.pw.edu.pl
+
+- Fixed build for Tumbleweed and Factory by adding patch
+sdcc-remove-strndup.patch 
+- added patch sdcc-libiberty.patch
+
+---

New:

  sdcc-libiberty.patch
  sdcc-remove-strndup.patch



Other differences:
--
++ sdcc.spec ++
--- /var/tmp/diff_new_pack.mtrzlV/_old  2014-12-03 22:49:23.0 +0100
+++ /var/tmp/diff_new_pack.mtrzlV/_new  2014-12-03 22:49:23.0 +0100
@@ -25,6 +25,8 @@
 Url:http://sdcc.sourceforge.net/
 Source: 
http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.bz2
 Source1:%{name}-rpmlintrc
+Patch0: %{name}-remove-strndup.patch
+Patch1: %{name}-libiberty.patch
 BuildRequires:  bison
 BuildRequires:  boost-devel
 BuildRequires:  fdupes
@@ -74,6 +76,10 @@
 
 %prep
 %setup -q
+%if 0%{?suse_version}  1320
+%patch0 -p 1 -b .strndup
+%endif
+%patch1 -p 1 -b .libiberty
 # bnc#889723
 rm support/regression/tests/bug3304184.c
 

++ sdcc-libiberty.patch ++
diff -up sdcc-3.4.0/support/sdbinutils/include/objalloc.h.libiberty 
sdcc-3.4.0/support/sdbinutils/include/objalloc.h
--- sdcc-3.4.0/support/sdbinutils/include/objalloc.h.libiberty  2012-02-10 
11:16:50.0 +0100
+++ sdcc-3.4.0/support/sdbinutils/include/objalloc.h2014-11-22 
15:13:08.0 +0100
@@ -91,7 +91,7 @@ extern void *_objalloc_alloc (struct obj
  if (__len == 0)   \
__len = 1;  \
  __len = (__len + OBJALLOC_ALIGN - 1) ~ (OBJALLOC_ALIGN - 1); \
- (__len = __o-current_space  \
+ (__len != 0  __len = __o-current_space
\
   ? (__o-current_ptr += __len,\
 __o-current_space -= __len,   \
 (void *) (__o-current_ptr - __len))   \
diff -up sdcc-3.4.0/support/sdbinutils/libiberty/objalloc.c.libiberty 
sdcc-3.4.0/support/sdbinutils/libiberty/objalloc.c
--- sdcc-3.4.0/support/sdbinutils/libiberty/objalloc.c.libiberty
2012-02-10 11:16:50.0 +0100
+++ sdcc-3.4.0/support/sdbinutils/libiberty/objalloc.c  2014-11-22 
15:13:08.0 +0100
@@ -112,8 +112,10 @@ objalloc_create (void)
 /* Allocate space from an objalloc structure.  */
 
 PTR
-_objalloc_alloc (struct objalloc *o, unsigned long len)
+_objalloc_alloc (struct objalloc *o, unsigned long original_len)
 {
+  unsigned long len = original_len;
+
   /* We avoid confusion from zero sized objects by always allocating
  at least 1 byte.  */
   if (len == 0)
@@ -121,6 +123,11 @@ _objalloc_alloc (struct objalloc *o, uns
 
   len = (len + OBJALLOC_ALIGN - 1) ~ (OBJALLOC_ALIGN - 1);
 
+  /* Check for overflow in the alignment operation above and the
+ malloc argument below. */
+  if (len + CHUNK_HEADER_SIZE  original_len)
+return NULL;
+
   if (len = o-current_space)
 {
   o-current_ptr += len;
++ sdcc-remove-strndup.patch ++
diff -up sdcc-3.4.0/sdas/linksrc/lkar.c.strndup sdcc-3.4.0/sdas/linksrc/lkar.c
--- sdcc-3.4.0/sdas/linksrc/lkar.c.strndup  2011-12-04 00:42:25.0 
+0100
+++ sdcc-3.4.0/sdas/linksrc/lkar.c  2014-11-15 10:15:49.0 +0100
@@ -45,7 +45,7 @@ along with this program.  If not, see h
 # define min(a,b) ((a)  (b) ? (a) : (b))
 #endif
 
-
+/*
 char *
 strndup (const char *str, size_t len)
 {
@@ -53,7 +53,7 @@ strndup (const char *str, size_t len)
   memcpy (s, str, len);
   s[len] = '\0';
   return s;
-}
+} */
 
 static int
 is_ar (FILE * libfp)
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org