diff --git a/.gitignore b/.gitignore deleted file mode 100644 index f98fc62..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/fluxcapacitor-0b6a11b729d1f5461b49fd0b0b4e2142175aa6ff.tar.gz -/fluxcapacitor-f6c7f0775597c1141e718ce32bf79268ac8c33ef.tar.gz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..5204a84 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Orphaned for 6+ weeks diff --git a/fluxcapacitor-load-libs-from-usr-lib-flux.patch b/fluxcapacitor-load-libs-from-usr-lib-flux.patch deleted file mode 100644 index 5e2bd38..0000000 --- a/fluxcapacitor-load-libs-from-usr-lib-flux.patch +++ /dev/null @@ -1,38 +0,0 @@ -diff --git a/src/misc.c b/src/misc.c -index 4853c38..f72eb73 100644 ---- a/src/misc.c -+++ b/src/misc.c -@@ -112,18 +112,13 @@ static int dl_checkpath(const char *path_prefix, const char *solib) { - } - } - -- - /* Make sure options.libpath is actually working. */ - void ensure_libpath(const char *argv_0) { - if (!options.libpath) { - char *path = NULL; - do { -- // 1. Relative to executable, useful for development -- char tmp[PATH_MAX]; -- if (!realpath(argv_0, tmp)) { -- PFATAL("realpath(argv[0])"); -- } -- path = dirname(tmp); -+ // 1. Taken from RPM %{_libdir}/%{name} -+ path = __RPM_LIB_DIR__ "/fluxcapacitor"; - if (dl_checkpath(path, TEST_LIBNAME)) break; - - // 2. Linker resolution (ie: no slash in name) -diff --git a/tests/tests.py b/tests/tests.py -index 4304967..c4c9bdb 100644 ---- a/tests/tests.py -+++ b/tests/tests.py -@@ -22,7 +22,7 @@ class TestCase(unittest.TestCase): - - def system(self, cmd, returncode=0, ignore_stderr=False, capture_stdout=False): - if self.fcpath: -- final_cmd = "%s -- %s" % (self.fcpath, cmd) -+ final_cmd = "%s --libpath %s -- %s" % (self.fcpath, os.path.dirname(self.fcpath), cmd) - else: - final_cmd = cmd - if ignore_stderr: diff --git a/fluxcapacitor.spec b/fluxcapacitor.spec deleted file mode 100644 index 7838399..0000000 --- a/fluxcapacitor.spec +++ /dev/null @@ -1,110 +0,0 @@ -%global repo_owner majek -%global repo_name fluxcapacitor -%global repo_commit f6c7f0775597c1141e718ce32bf79268ac8c33ef -%global repo_date 20180118 - -%global snap_commit %(c=%{repo_commit}; echo ${c:0:7}) -%global snapdata %{repo_date}git%{snap_commit} - -Name: fluxcapacitor -Version: 0 -Release: 10.%{snapdata}%{?dist} -License: MIT - -Summary: Run programs without blocking on syscalls -URL: https://github.com/%{repo_owner}/%{repo_name} -Source0: %{URL}/archive/%{repo_commit}/%{repo_name}-%{repo_commit}.tar.gz - -# Program defaults to loading its .so library from the same directory -# where the executable resides. This patch changes it so the shared object -# is loaded from %%{_libdir}/fluxcapacitor instead. -Patch0: %{name}-load-libs-from-usr-lib-flux.patch - -# fluxcapacitor works with syscalls, and these are different between arches. -# Currently only those listed here are supported. -ExclusiveArch: %{ix86} x86_64 %{arm} - -# Required to compile -BuildRequires: gcc make -# Required for tests -BuildRequires: perl-interpreter python2 - - -%description -Fluxcapacitor is a tool for making your program run without blocking -on timeouts and on functions like poll() and select(), by spoofing -POSIX time functions. Fluxcapacitor will make your program run faster -and be 100%% CPU constrained. It does that by "speeding up" blocking syscalls. -Faking time is a necessary side effect. - -%prep -%setup -q -n %{repo_name}-%{repo_commit} -%patch0 -p1 - -sed -e 's|__RPM_LIB_DIR__|"%{_libdir}"|' -i src/misc.c - - -%build -%set_build_flags -make build %{?_smp_mflags} - - -%check -make test - - -%install -install -m 755 -d %{buildroot}%{_bindir} -install -m 755 %{name} %{buildroot}%{_bindir}/ - -install -m 755 -d %{buildroot}%{_libdir}/%{name} -install -m 755 *.so %{buildroot}%{_libdir}/%{name}/ - -install -m 755 -d %{buildroot}%{_mandir}/man1 -install -m 644 %{name}.man %{buildroot}%{_mandir}/man1/%{name}.1 - - -%files -%doc README.md -%license LICENSE-MIT-fluxcapacitor -%{_bindir}/%{name} -%{_libdir}/%{name} -%{_mandir}/man1/* - - -%changelog -* Tue Jan 28 2020 Fedora Release Engineering - 0-10.20180118gitf6c7f07 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Jul 25 2019 Fedora Release Engineering - 0-9.20180118gitf6c7f07 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Thu Jan 31 2019 Fedora Release Engineering - 0-8.20180118gitf6c7f07 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Wed Jul 18 2018 Artur Iwicki - 0-7.20180118gitf6c7f0 -- Update to newest upstream snapshot (dated 2018-01-18) -- Remove Patch1 ("disable wraparound test on 32-bit architectures") - patch accepted upstream -- Add %%set_build_flags to %%build - -* Fri Jul 13 2018 Fedora Release Engineering - 0-6.20180114git0b6a11b -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Wed Feb 07 2018 Fedora Release Engineering - 0-5.20180114git0b6a11b -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Mon Jan 15 2018 Artur Iwicki 0-4.20180114git0b6a11b -- Move the .so files from %%{_datadir} to %%{_libdir} -- Make Patch1 contain an arch-test, instead of doing if-arch-then-patch - -* Sun Jan 14 2018 Artur Iwicki 0-3.20180114git0b6a11b -- Update to newest upstream snapshot -- Remove Source1: man page accepted upstream -- Remove Patch1: "Use 64-bit time values on 32-bit arches" patch accepted upstream - -* Sat Jan 13 2018 Artur Iwicki 0-2.20170515gite21a0ef -- Fix typo in summary ("wihout") -- Add info about program limitations to the man page - -* Sat Jan 13 2018 Artur Iwicki 0-1.20170515gite21a0ef -- Initial packaging diff --git a/sources b/sources deleted file mode 100644 index 9e55eb0..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (fluxcapacitor-f6c7f0775597c1141e718ce32bf79268ac8c33ef.tar.gz) = 560599f7a2061c52a43884fb9ca7125d3908dea546c07649f490832ba55b96bf7cde70d811211d790006e7225b10f7a7400d7436300404932b445f6761e21408