Hello community,

here is the log from the commit of package yank for openSUSE:Factory checked in 
at 2019-02-27 17:27:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yank (Old)
 and      /work/SRC/openSUSE:Factory/.yank.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yank"

Wed Feb 27 17:27:34 2019 rev:2 rq:674148 version:1.1.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/yank/yank.changes        2018-10-02 
19:47:53.337801881 +0200
+++ /work/SRC/openSUSE:Factory/.yank.new.28833/yank.changes     2019-02-27 
17:27:35.747354199 +0100
@@ -1,0 +2,6 @@
+Mon Feb 11 22:22:52 UTC 2019 - Dany Marcoux <[email protected]>
+
+- Version 1.1.0
+    - Fix a bogus free by storing a copy of the pattern argument.
+
+-------------------------------------------------------------------

Old:
----
  yank-1.0.0.tar.gz

New:
----
  yank-1.1.0.tar.gz

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

Other differences:
------------------
++++++ yank.spec ++++++
--- /var/tmp/diff_new_pack.yZKaPR/_old  2019-02-27 17:27:36.931353774 +0100
+++ /var/tmp/diff_new_pack.yZKaPR/_new  2019-02-27 17:27:36.959353764 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package yank
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -12,19 +12,20 @@
 # 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/
 #
 
+
 Name:           yank
-Version:        1.0.0
+Version:        1.1.0
 Release:        0
 Summary:        Tool for selecting and copying text from stdin without a mouse
 License:        MIT
 Group:          Productivity/Other
 URL:            https://github.com/mptre/yank
 Source0:        
https://github.com/mptre/yank/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
-BuildRequires:  make
 BuildRequires:  gcc
+BuildRequires:  make
 Requires:       bash
 
 %description

++++++ yank-1.0.0.tar.gz -> yank-1.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yank-1.0.0/CHANGELOG.md new/yank-1.1.0/CHANGELOG.md
--- old/yank-1.0.0/CHANGELOG.md 2018-09-09 09:45:06.000000000 +0200
+++ new/yank-1.1.0/CHANGELOG.md 2018-11-01 17:42:07.000000000 +0100
@@ -1,3 +1,19 @@
+v1.1.0 - 2018-11-01
+===================
+
+- Fix compilation on FreeBSD by passing preprocessor macros in `CFLAGS` as
+  opposed of using `CPPFLAGS` which is not honored.
+  (78ededb)
+  (Tobias Kortkamp)
+
+- Add FreeBSD install instructions.
+  (0dd944b)
+  (Tobias Kortkamp)
+
+- Fix a bogus free by storing a copy of the pattern argument.
+  (8dff9f3)
+  (Tobias Kortkamp)
+
 v1.0.0 - 2018-09-09
 ===================
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yank-1.0.0/LICENSE new/yank-1.1.0/LICENSE
--- old/yank-1.0.0/LICENSE      2018-09-09 09:45:06.000000000 +0200
+++ new/yank-1.1.0/LICENSE      2018-11-01 17:42:07.000000000 +0100
@@ -1,6 +1,6 @@
 The MIT License (MIT)
 
-Copyright (c) 2017 Anton Lindqvist
+Copyright (c) 2018 Anton Lindqvist
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yank-1.0.0/Makefile new/yank-1.1.0/Makefile
--- old/yank-1.0.0/Makefile     2018-09-09 09:45:06.000000000 +0200
+++ new/yank-1.1.0/Makefile     2018-11-01 17:42:07.000000000 +0100
@@ -1,4 +1,4 @@
-VERSION=       1.0.0
+VERSION=       1.1.0
 
 YANKCMD=       xsel
 
@@ -12,7 +12,7 @@
 INSTALL_MAN=           install -m 0644
 
 CFLAGS+=       -pedantic -Wall -Werror -Wextra
-CPPFLAGS+=     -DVERSION=\"${VERSION}\" -DYANKCMD=\"${YANKCMD}\"
+CFLAGS+=       -DVERSION=\"${VERSION}\" -DYANKCMD=\"${YANKCMD}\"
 
 DISTFILES=     CHANGELOG.md \
                LICENSE \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yank-1.0.0/README.md new/yank-1.1.0/README.md
--- old/yank-1.0.0/README.md    2018-09-09 09:45:06.000000000 +0200
+++ new/yank-1.1.0/README.md    2018-11-01 17:42:07.000000000 +0100
@@ -39,19 +39,19 @@
 - Yank an environment variable key or value:
 
   ```sh
-  env | yank -d =
+  $ env | yank -d =
   ```
 
 - Yank a field from a CSV file:
 
   ```sh
-  yank -d \", <file.csv
+  $ yank -d \", <file.csv
   ```
 
 - Yank a whole line using the `-l` option:
 
   ```sh
-  make 2>&1 | yank -l
+  $ make 2>&1 | yank -l
   ```
 
 - If `stdout` is not a terminal the selected field will be written to `stdout`
@@ -59,14 +59,14 @@
   Kill the selected PID:
 
   ```sh
-  ps ux | yank -g [0-9]+ | xargs kill
+  $ ps ux | yank -g [0-9]+ | xargs kill
   ```
 
 - Yank the selected field to the clipboard as opposed of the default primary
   clipboard:
 
   ```sh
-  yank -- xsel -b
+  $ yank -- xsel -b
   ```
 
 ## Installation
@@ -76,7 +76,7 @@
 On AUR:
 
 ```sh
-yaourt -S yank
+$ yaourt -S yank
 ```
 
 ### Debian
@@ -84,7 +84,7 @@
 On testing and unstable:
 
 ```sh
-sudo apt-get install yank
+$ sudo apt-get install yank
 ```
 
 The binary is installed at `/usr/bin/yank-cli` due to a naming conflict.
@@ -94,29 +94,34 @@
 Versions 24/25/26/Rawhide:
 
 ```sh
-sudo dnf install yank
+$ sudo dnf install yank
 ```
 
 The binary is installed at `/usr/bin/yank-cli` due to a naming conflict.
 Man-pages are available as both `yank` and `yank-cli`.
 
-
 ### Nix/NixOS
 
 ```sh
-nix-env -i yank
+$ nix-env -i yank
 ```
 
 ### macOS
 
 ```sh
-brew install yank
+$ brew install yank
+```
+
+### FreeBSD
+
+```sh
+$ pkg install yank
 ```
 
 ### OpenBSD
 
 ```sh
-pkg_add yank
+$ pkg_add yank
 ```
 
 ### From source
@@ -124,13 +129,13 @@
 The install directory defaults to `/usr/local`:
 
 ```sh
-make install
+$ make install
 ```
 
 Change the install directory using the `PREFIX` variable:
 
 ```sh
-make PREFIX=DIR install
+$ make PREFIX=DIR install
 ```
 
 The default yank command can be defined using the `YANKCMD` variable.
@@ -138,12 +143,13 @@
 macOS users would prefer `pbcopy(1)`:
 
 ```sh
-make YANKCMD=pbcopy
+$ make YANKCMD=pbcopy
 ```
 
 ## License
 
-Copyright (c) Anton Lindqvist. Distributed under the MIT license.
+Copyright (c) 2018 Anton Lindqvist.
+Distributed under the MIT license.
 
 [xsel]: http://www.vergenet.net/~conrad/software/xsel/
 [yank]: https://mptre.github.io/yank/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yank-1.0.0/yank.1 new/yank-1.1.0/yank.1
--- old/yank-1.0.0/yank.1       2018-09-09 09:45:06.000000000 +0200
+++ new/yank-1.1.0/yank.1       2018-11-01 17:42:07.000000000 +0100
@@ -137,7 +137,7 @@
 .Sh SEE ALSO
 .Xr re_format 7
 .Sh AUTHORS
-.An Anton Lindqvist Aq Mt [email protected]
+.An Anton Lindqvist Aq Mt [email protected]
 .Sh CAVEATS
 Recognizing fields enclosed in brackets requires
 .Sq \&]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yank-1.0.0/yank.c new/yank-1.1.0/yank.c
--- old/yank-1.0.0/yank.c       2018-09-09 09:45:06.000000000 +0200
+++ new/yank-1.1.0/yank.c       2018-11-01 17:42:07.000000000 +0100
@@ -430,7 +430,8 @@
                        break;
                case 'g':
                        free(pat);
-                       pat = optarg;
+                       if ((pat = strdup(optarg)) == NULL)
+                               err(1, NULL);
                        rflags |= REG_NEWLINE;
                        break;
                case 'i':


Reply via email to