Change-Id: I96f9d5419373024e604cbe11a58e63e3e49a1ce8
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4568
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,11 @@ |
| 0 |
+--- a/rc.d/init.d/functions 2015-12-07 13:17:16.000000000 +0000 |
|
| 1 |
+@@ -59,7 +59,7 @@ |
|
| 2 |
+ |
|
| 3 |
+ if [ -z "${CONSOLETYPE:-}" ]; then
|
|
| 4 |
+ if [ -c "/dev/stderr" -a -r "/dev/stderr" ]; then |
|
| 5 |
+- CONSOLETYPE="$(/sbin/consoletype < /dev/stderr 2>/dev/null)" |
|
| 6 |
++ CONSOLETYPE="$(/sbin/consoletype stdout < /dev/stderr 2>/dev/null)" |
|
| 7 |
+ else |
|
| 8 |
+ CONSOLETYPE="serial" |
|
| 9 |
+ fi |
| ... | ... |
@@ -3,21 +3,22 @@ Name: initscripts |
| 3 | 3 |
Version: 9.65 |
| 4 | 4 |
License: GPLv2 |
| 5 | 5 |
Group: System Environment/Base |
| 6 |
-Release: 2%{?dist}
|
|
| 6 |
+Release: 3%{?dist}
|
|
| 7 | 7 |
URL: http://fedorahosted.org/releases/i/n/initscripts/ |
| 8 | 8 |
Source0: https://fedorahosted.org/releases/i/n/initscripts/initscripts-9.65.tar.bz2 |
| 9 | 9 |
%define sha1 initscripts=0a231ab94ce7ef050a7c2c35a5183450abe58a39 |
| 10 |
-Patch0: service.patch |
|
| 11 |
-Vendor: VMware, Inc. |
|
| 10 |
+Patch0: service.patch |
|
| 11 |
+Patch1: fix_return_code_during_set_error.patch |
|
| 12 |
+Vendor: VMware, Inc. |
|
| 12 | 13 |
Distribution: Photon |
| 13 | 14 |
Requires: systemd |
| 14 | 15 |
Requires: iproute2 |
| 15 |
-BuildRequires: glib-devel |
|
| 16 |
+BuildRequires: glib-devel |
|
| 16 | 17 |
BuildRequires: python2 |
| 17 | 18 |
BuildRequires: python2-libs |
| 18 |
-BuildRequires: popt-devel |
|
| 19 |
-BuildRequires: gettext |
|
| 20 |
-BuildRequires: pkg-config |
|
| 19 |
+BuildRequires: popt-devel |
|
| 20 |
+BuildRequires: gettext |
|
| 21 |
+BuildRequires: pkg-config |
|
| 21 | 22 |
BuildRequires: systemd |
| 22 | 23 |
Provides: /sbin/service |
| 23 | 24 |
|
| ... | ... |
@@ -46,6 +47,7 @@ Binaries of init network |
| 46 | 46 |
%prep |
| 47 | 47 |
%setup -q |
| 48 | 48 |
%patch0 -p1 |
| 49 |
+%patch1 -p1 |
|
| 49 | 50 |
|
| 50 | 51 |
%build |
| 51 | 52 |
make |
| ... | ... |
@@ -160,14 +162,16 @@ rm -rf %{buildroot}%{_prefix}/lib/systemd
|
| 160 | 160 |
%{_sysconfdir}/profile.d/debug*
|
| 161 | 161 |
|
| 162 | 162 |
%changelog |
| 163 |
-* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 9.65-2 |
|
| 164 |
-- GA - Bump release of all rpms |
|
| 165 |
-* Fri Feb 12 2016 Divya Thaluru <dthaluru@vmware.com> 9.65-2 |
|
| 166 |
-- Fixing service script to start services using systemctl by default |
|
| 163 |
+* Tue Dec 26 2017 Divya Thaluru <dthaluru@vmware.com> 9.65-3 |
|
| 164 |
+- Fixed return code in /etc/init.d/functions bash script |
|
| 165 |
+* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 9.65-2 |
|
| 166 |
+- GA - Bump release of all rpms |
|
| 167 |
+* Fri Feb 12 2016 Divya Thaluru <dthaluru@vmware.com> 9.65-2 |
|
| 168 |
+- Fixing service script to start services using systemctl by default |
|
| 167 | 169 |
* Tue Jan 26 2016 Xiaolin Li <xiaolinl@vmware.com> 9.65-1 |
| 168 | 170 |
- Updated to version 9.65 |
| 169 |
-* Mon Jul 20 2015 Divya Thaluru <dthaluru@vmware.com> 9.63-1 |
|
| 170 |
-- Got Spec file from source tar ball and modified it to be compatible to build in Photon |
|
| 171 |
+* Mon Jul 20 2015 Divya Thaluru <dthaluru@vmware.com> 9.63-1 |
|
| 172 |
+- Got Spec file from source tar ball and modified it to be compatible to build in Photon |
|
| 171 | 173 |
* Mon May 18 2015 Lukáš Nykrýn <lnykryn@redhat.com> - 9.63-1 |
| 172 | 174 |
- remove ipcalc, it has its own package now |
| 173 | 175 |
- network: tell NM to reload its configuration during start |
| ... | ... |
@@ -1164,7 +1168,7 @@ ng |
| 1164 | 1164 |
- run rc.sysinit, /etc/rc in monitor mode (part of #184340) |
| 1165 | 1165 |
- use a better check for 'native' services (#190989, #110761, adapted |
| 1166 | 1166 |
from <matthias@rpmforge.net>) |
| 1167 |
- |
|
| 1167 |
+ |
|
| 1168 | 1168 |
* Tue Sep 19 2006 Bill Nottingham <notting@redhat.com> 8.41-1 |
| 1169 | 1169 |
- fix network ipv6 hang (#207137, others) |
| 1170 | 1170 |
- rc.sysinit: change blkid.tab path to /etc/blkid/blkid.tab |
| ... | ... |
@@ -1509,7 +1513,7 @@ ng |
| 1509 | 1509 |
for ipv6calc (<pb@bierenger.de>, <pekkas@netcore.fi>) |
| 1510 | 1510 |
- fix quoting in daemon() (#144634) |
| 1511 | 1511 |
- make sysctl be silent (#144483) |
| 1512 |
- |
|
| 1512 |
+ |
|
| 1513 | 1513 |
* Mon Jan 3 2005 Bill Nottingham <notting@redhat.com> 8.02-1 |
| 1514 | 1514 |
- remove initlog, minilogd |
| 1515 | 1515 |
- add a flag to kmodule for use with kudzu's socket mode, use it |
| ... | ... |
@@ -1693,7 +1697,7 @@ ng |
| 1693 | 1693 |
- rc.sysinit: remove devfs compat and the remaining 2.4 compat |
| 1694 | 1694 |
- ifup-wireless: support multiple keys (#127957) |
| 1695 | 1695 |
- fix firmware loading (#129155, <bnocera@redhat.com>) |
| 1696 |
- |
|
| 1696 |
+ |
|
| 1697 | 1697 |
* Tue Aug 24 2004 Karsten Hopp <karsten@redhat.de> 7.68-1 |
| 1698 | 1698 |
- execute zfcfconf.sh if available (mainframe) |
| 1699 | 1699 |
|
| ... | ... |
@@ -1713,7 +1717,7 @@ ng |
| 1713 | 1713 |
|
| 1714 | 1714 |
* Fri Aug 20 2004 Bill Nottingham <notting@redhat.com> 7.64-1 |
| 1715 | 1715 |
- rc.d/rc.sysinit: check for dev file too (#130350) |
| 1716 |
- |
|
| 1716 |
+ |
|
| 1717 | 1717 |
* Thu Aug 19 2004 Than Ngo <than@redhat.com> 7.63-1 |
| 1718 | 1718 |
- allow CBCP with own number (#125710) |
| 1719 | 1719 |
|
| ... | ... |
@@ -2274,7 +2278,7 @@ ng |
| 2274 | 2274 |
* Mon Oct 29 2001 Than Ngo <than@redhat.com> |
| 2275 | 2275 |
- fix bug in channel bundling if MSN is missed |
| 2276 | 2276 |
- support DEBUG option |
| 2277 |
- |
|
| 2277 |
+ |
|
| 2278 | 2278 |
* Wed Sep 19 2001 Than Ngo <than@redhat.com> |
| 2279 | 2279 |
- don't show user name by DSL connection |
| 2280 | 2280 |
|
| ... | ... |
@@ -2454,7 +2458,7 @@ ng |
| 2454 | 2454 |
* Wed Jun 27 2001 Than Ngo <than@redhat.com> |
| 2455 | 2455 |
- fix pap/chap authentication for syncppp |
| 2456 | 2456 |
- support ippp options |
| 2457 |
- |
|
| 2457 |
+ |
|
| 2458 | 2458 |
* Mon Jun 25 2001 Bill Nottingham <notting@redhat.com> |
| 2459 | 2459 |
- add ifup-wireless |
| 2460 | 2460 |
|
| ... | ... |
@@ -3122,7 +3126,7 @@ ng |
| 3122 | 3122 |
- set macaddr before bootp |
| 3123 | 3123 |
- zero in the /var/run/utmpx file (gafton) |
| 3124 | 3124 |
- don't set hostname on ppp/slip (kills X) |
| 3125 |
- |
|
| 3125 |
+ |
|
| 3126 | 3126 |
* Wed Mar 17 1999 Bill Nottingham <notting@redhat.com> |
| 3127 | 3127 |
- exit ifup if pump fails |
| 3128 | 3128 |
- fix stupid errors in reading commands from subprocess |