commit be90eea78bf9f046a525d246a0d2ef3e7d579c911b9b06d44110a13a83f50a8f Author: Tomáš Chvátal Date: Fri Apr 6 11:03:45 2018 +0000 - Initial package to ensure restrictions on jobs when building huge packages OBS-URL: https://build.opensuse.org/package/show/network:chromium/memory-constraints?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/memory-constraints.changes b/memory-constraints.changes new file mode 100644 index 0000000..6b1a745 --- /dev/null +++ b/memory-constraints.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Fri Apr 6 10:56:54 UTC 2018 - tchvatal@suse.com + +- Initial package to ensure restrictions on jobs when building + huge packages + diff --git a/memory-constraints.macros b/memory-constraints.macros new file mode 100644 index 0000000..8cbd51e --- /dev/null +++ b/memory-constraints.macros @@ -0,0 +1,6 @@ +# +# Macros for memory constraints on buildjobs. +# If you happen to have HUGE packages sometimes you need to do +# crazy magic in order to make sure it is most of the time building +# rather than just giving you OOM +# diff --git a/memory-constraints.spec b/memory-constraints.spec new file mode 100644 index 0000000..45ea297 --- /dev/null +++ b/memory-constraints.spec @@ -0,0 +1,47 @@ +# +# spec file for package memory-constraints +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# 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/ +# + + +Name: memory-constraints +Version: 20180406 +Release: 0 +Summary: Macos to limit resources when building +License: MIT +Group: Development/Tools/Building +URL: https://www.opensuse.org/ +Source0: %{name}.macros +BuildRequires: rpm +BuildArch: noarch + +%description +Macros to limit various resources when building huge packages to +ensure we can produce results rather than OOM reports. + +%prep +: + +%build +: + +%install +mkdir -p %{buildroot}/%{_libexecdir}/rpm/macros.d +cp %{SOURCE0} %{buildroot}/%{_libexecdir}/rpm/macros.d/macros.%{name} + +%files +%{_libexecdir}/rpm/macros.d/macros.%{name} + +%changelog