Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package bitwise for openSUSE:Factory checked in at 2021-04-22 18:04:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/bitwise (Old) and /work/SRC/openSUSE:Factory/.bitwise.new.12324 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "bitwise" Thu Apr 22 18:04:44 2021 rev:2 rq:887811 version:0.42 Changes: -------- --- /work/SRC/openSUSE:Factory/bitwise/bitwise.changes 2020-12-07 15:01:53.948814892 +0100 +++ /work/SRC/openSUSE:Factory/.bitwise.new.12324/bitwise.changes 2021-04-22 18:06:20.254731715 +0200 @@ -1,0 +2,12 @@ +Fri Apr 16 18:14:55 UTC 2021 - Martin Hauke <[email protected]> + +- Update to version 0.42 + * Add support for leading 0 on binary numbers + +------------------------------------------------------------------- +Tue Apr 6 10:40:17 UTC 2021 - Martin Hauke <[email protected]> + +- Add "-Wl,--start-group" to CFLAGS to fix Tumbeweed linking + errors. + +------------------------------------------------------------------- Old: ---- bitwise-0.41.tar.gz New: ---- bitwise-0.42.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bitwise.spec ++++++ --- /var/tmp/diff_new_pack.HISTKA/_old 2021-04-22 18:06:20.694732444 +0200 +++ /var/tmp/diff_new_pack.HISTKA/_new 2021-04-22 18:06:20.698732451 +0200 @@ -1,7 +1,8 @@ # # spec file for package bitwise # -# Copyright (c) 2020, Martin Hauke <[email protected]> +# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2020-2021, Martin Hauke <[email protected]> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +18,7 @@ Name: bitwise -Version: 0.41 +Version: 0.42 Release: 0 Summary: Interactive bitwise operation in ncurses License: GPL-3.0-or-later @@ -46,7 +47,7 @@ %build autoreconf -fiv -export CFLAGS="%{optflags} $(pkg-config --cflags ncursesw) $(pkg-config --libs ncursesw)" +export CFLAGS="%{optflags} $(pkg-config --cflags --libs ncursesw)" %configure %make_build ++++++ bitwise-0.41.tar.gz -> bitwise-0.42.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitwise-0.41/.travis.yml new/bitwise-0.42/.travis.yml --- old/bitwise-0.41/.travis.yml 2019-12-18 16:40:48.000000000 +0100 +++ new/bitwise-0.42/.travis.yml 2021-04-16 17:20:13.000000000 +0200 @@ -5,6 +5,10 @@ os: - linux - osx + +arch: + - AMD64 + - ppc64le before_install: - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get -qq update ; fi @@ -27,3 +31,4 @@ after_failure: - if [ -f ./test-suite.log ]; then cat ./test-suite.log; fi + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitwise-0.41/README.md new/bitwise-0.42/README.md --- old/bitwise-0.41/README.md 2019-12-18 16:40:48.000000000 +0100 +++ new/bitwise-0.42/README.md 2021-04-16 17:20:13.000000000 +0200 @@ -98,6 +98,11 @@ ### Linux #### Ubuntu +From 20.04 you can just type +``` +sudo apt-get install bitwise +``` +For earlier versions: ``` sudo add-apt-repository ppa:ramon-fried/bitwise sudo apt-get update @@ -108,9 +113,23 @@ ` sudo snap install bitwise ` +#### OpenSuse +` +zypper install bitwise +` + #### Arch You can use the AUR repository: https://aur.archlinux.org/packages/bitwise/ +#### Void +_bitwise_ is in the default repository, so just type: +` +sudo xbps-install -S bitwise +` + +#### Buildroot / Yocto +Bitwise is available both in Buildroot and in Yocto, please refer to the documentation on how to add those to your target image. + ### macOS #### MacPorts diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitwise-0.41/bitwise.1 new/bitwise-0.42/bitwise.1 --- old/bitwise-0.41/bitwise.1 2019-12-18 16:40:48.000000000 +0100 +++ new/bitwise-0.42/bitwise.1 2021-04-16 17:20:13.000000000 +0200 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.10. -.TH BITWISE "1" "December 2019" "bitwise v0.41" "User Commands" +.TH BITWISE "1" "April 2021" "bitwise v0.42" "User Commands" .SH NAME bitwise \- Terminal based bit manipulator in ncurses .SH SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitwise-0.41/configure.ac new/bitwise-0.42/configure.ac --- old/bitwise-0.41/configure.ac 2019-12-18 16:40:48.000000000 +0100 +++ new/bitwise-0.42/configure.ac 2021-04-16 17:20:13.000000000 +0200 @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) -AC_INIT([bitwise], [v0.41], [[email protected]]) +AC_INIT([bitwise], [v0.42], [[email protected]]) AC_CONFIG_SRCDIR([src/misc.c]) AC_CONFIG_HEADERS([inc/config.h]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitwise-0.41/debian/control new/bitwise-0.42/debian/control --- old/bitwise-0.41/debian/control 2019-12-18 16:40:48.000000000 +0100 +++ new/bitwise-0.42/debian/control 2021-04-16 17:20:13.000000000 +0200 @@ -2,13 +2,13 @@ Section: science Priority: optional Maintainer: Ramon Fried <[email protected]> -Build-Depends: debhelper (>= 12~), libncurses5-dev, libreadline-dev, libcunit1-dev +Build-Depends: debhelper (>= 12~), libncurses-dev, libreadline-dev, libcunit1-dev Standards-Version: 4.4.0 Homepage: https://github.com/mellowcandle/bitwise Package: bitwise Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, libncurses5, libreadline5 +Depends: ${shlibs:Depends}, ${misc:Depends} Description: Interactive bitwise operation in ncurses Bitwise is multi base interactive calculator supporting dynamic base conversion and bit manipulation. It's a handy tool for low level hackers, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitwise-0.41/src/misc.c new/bitwise-0.42/src/misc.c --- old/bitwise-0.41/src/misc.c 2019-12-18 16:40:48.000000000 +0100 +++ new/bitwise-0.42/src/misc.c 2021-04-16 17:20:13.000000000 +0200 @@ -131,6 +131,11 @@ { uint64_t value = 0; + /* Skip the leading 0 */ + if (buf[0] == '0') { + buf++; + } + /* Skip the leading b */ buf++; @@ -192,7 +197,9 @@ if (tolower(input[0]) == 'b') base = 2; else if (input[0] == '0') - if (input[1] == 'x' || input[1] == 'X') + if (tolower(input[1] == 'b')) + base = 2; + else if (input[1] == 'x' || input[1] == 'X') base = 16; else base = 8; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bitwise-0.41/tests/test-shunting-yard.c new/bitwise-0.42/tests/test-shunting-yard.c --- old/bitwise-0.41/tests/test-shunting-yard.c 2019-12-18 16:40:48.000000000 +0100 +++ new/bitwise-0.42/tests/test-shunting-yard.c 2021-04-16 17:20:13.000000000 +0200 @@ -26,6 +26,8 @@ ASSERT_RESULT("0x2+0x2", 0x4); ASSERT_RESULT("0x2 + 0x2", 0x4); ASSERT_RESULT("0x2 + b101", 7); + ASSERT_RESULT("0x2 + 0b101", 7); + ASSERT_RESULT("0b101 + 0x2", 7); ASSERT_RESULT("2 + 2", 4); ASSERT_RESULT("2+2.", 4); ASSERT_RESULT("3 + (5 + 1 + (2 + 2))", 13);
