Hello community,
here is the log from the commit of package ghc-executable-path for
openSUSE:Factory checked in at 2017-04-14 13:37:35
Comparing /work/SRC/openSUSE:Factory/ghc-executable-path (Old)
and /work/SRC/openSUSE:Factory/.ghc-executable-path.new (New)
Package is "ghc-executable-path"
Fri Apr 14 13:37:35 2017 rev:2 rq:485121 version:0.0.3.1
Changes:
--- /work/SRC/openSUSE:Factory/ghc-executable-path/ghc-executable-path.changes
2016-11-01 09:51:27.0 +0100
+++
/work/SRC/openSUSE:Factory/.ghc-executable-path.new/ghc-executable-path.changes
2017-04-14 13:37:37.380222889 +0200
@@ -1,0 +2,5 @@
+Mon Mar 27 12:41:17 UTC 2017 - psim...@suse.com
+
+- Update to version 0.0.3.1 with cabal2obs.
+
+---
Old:
executable-path-0.0.3.tar.gz
New:
executable-path-0.0.3.1.tar.gz
Other differences:
--
++ ghc-executable-path.spec ++
--- /var/tmp/diff_new_pack.QXQIjV/_old 2017-04-14 13:37:37.892150538 +0200
+++ /var/tmp/diff_new_pack.QXQIjV/_new 2017-04-14 13:37:37.896149973 +0200
@@ -1,7 +1,7 @@
#
# spec file for package ghc-executable-path
#
-# 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
@@ -18,27 +18,26 @@
%global pkg_name executable-path
Name: ghc-%{pkg_name}
-Version:0.0.3
+Version:0.0.3.1
Release:0
Summary:Finding out the full path of the executable
License:SUSE-Public-Domain
-Group: System/Libraries
+Group: Development/Languages/Other
Url:https://hackage.haskell.org/package/%{pkg_name}
Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires: ghc-Cabal-devel
-# Begin cabal-rpm deps:
BuildRequires: ghc-directory-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-unix-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-# End cabal-rpm deps
%description
The documentation of "System.Environment.getProgName" says that "However, this
is hard-to-impossible to implement on some non-Unix OSes, so instead, for
maximum portability, we just return the leafname of the program as invoked."
-This library tries to provide the missing path.
+This library tries to provide the missing path. Note: Since base 4.6.0.0, there
+is also a function "System.Environment.getExecutablePath".
%package devel
Summary:Haskell %{pkg_name} library development files
@@ -55,15 +54,12 @@
%prep
%setup -q -n %{pkg_name}-%{version}
-
%build
%ghc_lib_build
-
%install
%ghc_lib_install
-
%post devel
%ghc_pkg_recache
++ executable-path-0.0.3.tar.gz -> executable-path-0.0.3.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/executable-path-0.0.3/System/Environment/Executable/BSD.hs
new/executable-path-0.0.3.1/System/Environment/Executable/BSD.hs
--- old/executable-path-0.0.3/System/Environment/Executable/BSD.hs
2011-12-01 22:09:29.0 +0100
+++ new/executable-path-0.0.3.1/System/Environment/Executable/BSD.hs
2017-03-22 16:04:45.0 +0100
@@ -34,7 +34,7 @@
import Foreign
import Foreign.C
-import System.Posix
+import System.Posix as Posix
import System.Directory
--import System.FilePath
@@ -69,9 +69,9 @@
getExecutablePathProcFS' symlink = do
pid <- getPID
let procPid = "/proc/" ++ show pid ++ "/" ++ symlink
- fileExist procPid >>= \b -> if b
-then getSymbolicLinkStatus procPid >>= \s -> if isSymbolicLink s
- then liftM Just $ readSymbolicLink procPid
+ Posix.fileExist procPid >>= \b -> if b
+then Posix.getSymbolicLinkStatus procPid >>= \s -> if Posix.isSymbolicLink
s
+ then liftM Just $ Posix.readSymbolicLink procPid
else return Nothing
else return Nothing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/executable-path-0.0.3/System/Environment/Executable/FreeBSD.hs
new/executable-path-0.0.3.1/System/Environment/Executable/FreeBSD.hs
--- old/executable-path-0.0.3/System/Environment/Executable/FreeBSD.hs
2011-12-01 22:09:29.0 +0100
+++ new/executable-path-0.0.3.1/System/Environment/Executable/FreeBSD.hs
2017-03-22 16:04:45.0 +0100
@@ -22,7 +22,7 @@
import Foreign
import Foreign.C
-import System.Posix
+import System.Posix as Posix
import System.Directory