Skip to content

Commit dc043c4

Browse files
authored
Merge pull request #44 from danielhams/thinlymaster
Updates for 0.0.5beta
2 parents 18aee79 + 55db6d8 commit dc043c4

File tree

129 files changed

+5871
-4879
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+5871
-4879
lines changed

README.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,26 @@ The modifications from the original fedora `.spec` files fall under the license
1616

1717
NOTE: While we are not yet out of beta, it is recommended to remove any previous sgug-rse installation before extracting this new one. We don't yet support in-place upgrades using RPMs.
1818

19+
(0) Add your user account to the irix `sys` group - this will allow you to use the sgug `sudo` out of the box with your user password - then you can follow the steps below without additional hoop jumping.
20+
1921
(1) Download the artifacts for the latest version from the github releases tab (assuming they aren't too big).
2022

2123
You'll find three main archives - and there might be "update" archives too that need to be extracted:
2224

2325
```
24-
sgug-rse-selfhoster-0.0.4beta.tar.gz
25-
sgug-rse-srpms-0.0.4beta.tar.gz
26-
sgug-rse-rpms-0.0.4beta.tar.gz
26+
sgug-rse-selfhoster-0.0.5beta.tar.gz
27+
sgug-rse-srpms-0.0.5beta.tar.gz
28+
sgug-rse-rpms-0.0.5beta.tar.gz
2729
28-
sgug-rse-rpms-0.0.4betaupdateNUM.tar.gz
30+
sgug-rse-rpms-0.0.5betaupdateNUM.tar.gz
2931
```
3032

3133
(2) Extract the selfhoster archive under /usr as root (important, sgug-rse _installation_ files are root owned and managed):
3234

3335
```
3436
su - (enter root password)
3537
cd /usr
36-
gunzip -dc /path/to/sgug-rse-selfhoster-0.0.4beta.tar.gz |tar xf -
38+
gunzip -dc /path/to/sgug-rse-selfhoster-0.0.5beta.tar.gz |tar xf -
3739
(log out of root)
3840
```
3941

@@ -50,19 +52,19 @@ mkdir -p ~/rpmbuild/RPMS
5052

5153
```
5254
cd ~/rpmbuild
53-
gunzip -dc /path/to/sgug-rse-srpms-0.0.4beta.tar.gz | tar xf -
54-
gunzip -dc /path/to/sgug-rse-rpms-0.0.4beta.tar.gz | tar xf -
55+
gunzip -dc /path/to/sgug-rse-srpms-0.0.5beta.tar.gz | tar xf -
56+
gunzip -dc /path/to/sgug-rse-rpms-0.0.5beta.tar.gz | tar xf -
5557
# Optional
5658
mkdir ~/rpmupdates
5759
cd ~/rpmupdates
58-
gunzip -dc /path/to/sgug-rse-rpms-0.0.4betaupdateNUM.tar.gz | tar xf -
60+
gunzip -dc /path/to/sgug-rse-rpms-0.0.5betaupdateNUM.tar.gz | tar xf -
5961
```
6062

6163
(5) You'll need to clone this repo (sgug-rse) -
6264

6365
```
6466
cd ~
65-
git clone https://github.com/sgidevnet/sgug-rse.git sgug-rse.git
67+
/usr/sgug/bin/git clone https://github.com/sgidevnet/sgug-rse.git sgug-rse.git
6668
```
6769
Adjust that path as appropriate for where you wish the repo to live.
6870

@@ -79,14 +81,16 @@ sudo rpm --reinstall -ivh noarch/*.rpm mips/*.rpm
7981

8082
and for any upgrades/updates:
8183

84+
* CARE: You must use the "upgrade" flag for any upgraded packages to void double-installs
85+
8286
```
8387
cd ~/sgug-rse.git
8488
./sgugshell.sh
8589
cd ~/rpmupdates/RPMS
8690
sudo rpm -Uvh noarch/*.rpm mips/*.rpm
8791
```
8892

89-
(7) Now you can build a package with:
93+
(7) Now you can rebuild one of the out-of-the-box packages with:
9094

9195
```
9296
cd ~/sgug-rse.git
@@ -97,13 +101,12 @@ cp -r ~/sgug-rse.git/packages/m4/* ~/rpmbuild/
97101
rpmbuild -ba m4.spec --nocheck
98102
```
99103

100-
(8) Installing RPMs must be done as root (add `--reinstall` to refresh a package):
104+
(8) Installing RPMs must be done as root (add `--reinstall` to refresh an already installed package):
101105

102106
```
103-
su -
104107
cd ~user/sgug-rse.git
105108
./sgugshell.sh
106-
rpm -ivh ~/rpmbuild/RPMS/mips/m4*.rpm
109+
sudo rpm -ivh ~/rpmbuild/RPMS/mips/m4*.rpm
107110
```
108111

109112
## Bugs

helperscripts/copyback.pl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@
5353
my $rpmbuildFile = File::HomeDir->my_home."/rpmbuild/$sourceFile";
5454
my $targetFile = "./packages/$packageName/$sourceFile";
5555

56-
my $cmd = "cp $rpmbuildFile $targetFile";
57-
print "Command is '$cmd'\n";
56+
if( -e $rpmbuildFile) {
57+
my $cmd = "cp $rpmbuildFile $targetFile";
58+
print "Command is '$cmd'\n";
5859

59-
copy($rpmbuildFile, $targetFile) or die "Copy failed: $!";
60+
copy($rpmbuildFile, $targetFile) or die "Copy failed: $!";
61+
}
6062
}
6163
}
6264

packages/chkconfig/SPECS/chkconfig.spec.origfedora renamed to packages/alternatives/SPECS/alternatives.spec

Lines changed: 37 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,68 @@
1-
Summary: A system tool for maintaining the /etc/rc*.d hierarchy
2-
Name: chkconfig
1+
# This package is able to use optimised linker flags.
2+
%global build_ldflags %{sgug_optimised_ldflags}
3+
4+
Summary: A tool to maintain symbolic links determining default commands
5+
Name: alternatives
36
Version: 1.11
4-
Release: 5%{?dist}
7+
Release: 8%{?dist}
58
License: GPLv2
69
URL: https://github.com/fedora-sysv/chkconfig
7-
Source: https://github.com/fedora-sysv/chkconfig/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
8-
BuildRequires: newt-devel gettext popt-devel libselinux-devel beakerlib gcc
9-
Conflicts: initscripts <= 5.30-1
10+
Source: https://github.com/fedora-sysv/chkconfig/archive/chkconfig-%{version}.tar.gz#/chkconfig-%{version}.tar.gz
11+
BuildRequires: libdicl-devel >= 0.1.19
12+
Requires: libdicl >= 0.1.19
1013

11-
%description
12-
Chkconfig is a basic system utility. It updates and queries runlevel
13-
information for system services. Chkconfig manipulates the numerous
14-
symbolic links in /etc/rc.d, to relieve system administrators of some
15-
of the drudgery of manually editing the symbolic links.
16-
17-
%package -n ntsysv
18-
Summary: A tool to set the stop/start of system services in a runlevel
19-
Requires: chkconfig = %{version}-%{release}
20-
21-
%description -n ntsysv
22-
Ntsysv provides a simple interface for setting which system services
23-
are started or stopped in various runlevels (instead of directly
24-
manipulating the numerous symbolic links in /etc/rc.d). Unless you
25-
specify a runlevel or runlevels on the command line (see the man
26-
page), ntsysv configures the current runlevel (5 if you're using X).
27-
28-
%package -n alternatives
29-
Summary: A tool to maintain symbolic links determining default commands
14+
Patch0: alternatives.sgifixes.patch
3015

31-
%description -n alternatives
16+
%description
3217
alternatives creates, removes, maintains and displays information about the
3318
symbolic links comprising the alternatives system. It is possible for several
3419
programs fulfilling the same or similar functions to be installed on a single
3520
system at the same time.
3621

3722
%prep
38-
%setup -q
23+
%setup -q -n chkconfig-%{version}
24+
%patch0 -p1 -b .sgifixes
25+
26+
# Rewrite some hardcoded paths in the alternatives source
27+
perl -pi -e "s|/etc/alternatives|%{_prefix}/etc/alternatives|g" alternatives.c
28+
perl -pi -e "s|/var/lib/alternatives|%{_prefix}/var/lib/alternatives|g" alternatives.c
29+
perl -pi -e "s|/usr/share/locale|%{_prefix}/share/locale|g" alternatives.c
3930

4031
%build
41-
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %{?_smp_mflags}
32+
export CPPFLAGS="-I%{_includedir}/libdicl-0.1"
33+
export RPM_LD_FLAGS="-ldicl-0.1 -lintl $RPM_LD_FLAGS"
34+
V=1 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS" %{?_smp_mflags}
4235

4336
%check
44-
make check
37+
export CPPFLAGS="-I%{_includedir}/libdicl-0.1"
38+
export LIBS="-ldicl-0.1"
39+
V=1 make check
4540

4641
%install
42+
export CPPFLAGS="-I%{_includedir}/libdicl-0.1"
43+
export LIBS="-ldicl-0.1"
4744
rm -rf $RPM_BUILD_ROOT
48-
make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} SBINDIR=%{_sbindir} install
45+
make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} SBINDIR=%{_sbindir} ALTDIR=%{_prefix}/var/lib/alternatives ALTDATADIR=%{_prefix}/etc/alternatives install
4946

50-
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
51-
ln -s rc.d/init.d $RPM_BUILD_ROOT/etc/init.d
52-
for n in 0 1 2 3 4 5 6; do
53-
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc${n}.d
54-
ln -s rc.d/rc${n}.d $RPM_BUILD_ROOT/etc/rc${n}.d
55-
done
56-
mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d
47+
rm $RPM_BUILD_ROOT%{_mandir}/man8/chkconfig*
48+
rm $RPM_BUILD_ROOT%{_mandir}/man8/ntsysv*
5749

58-
%find_lang %{name}
50+
#find_lang %{name}
5951

60-
%files -f %{name}.lang
61-
%defattr(-,root,root)
62-
%{!?_licensedir:%global license %%doc}
52+
#files -f %{name}.lang
53+
%files
6354
%license COPYING
64-
/sbin/chkconfig
65-
/etc/chkconfig.d
66-
/etc/init.d
67-
/etc/rc.d
68-
/etc/rc.d/init.d
69-
/etc/rc[0-6].d
70-
/etc/rc.d/rc[0-6].d
71-
%{_mandir}/*/chkconfig*
72-
%{_prefix}/lib/systemd/systemd-sysv-install
73-
74-
%files -n ntsysv
75-
%defattr(-,root,root)
76-
%{_sbindir}/ntsysv
77-
%{_mandir}/*/ntsysv.8*
78-
79-
%files -n alternatives
80-
%license COPYING
81-
%dir /etc/alternatives
55+
%dir %{_prefix}/etc/alternatives
8256
%{_sbindir}/update-alternatives
8357
%{_sbindir}/alternatives
8458
%{_mandir}/*/update-alternatives*
8559
%{_mandir}/*/alternatives*
86-
%dir /var/lib/alternatives
60+
%dir %{_prefix}/var/lib/alternatives
8761

8862
%changelog
63+
* Fri Apr 10 2020 Daniel Hams <[email protected]> - 1.11-8
64+
- Moved from chkconfig to specific alternatives package
65+
8966
* Wed Jul 24 2019 Fedora Release Engineering <[email protected]> - 1.11-5
9067
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9168

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This is actually an extract of the alternatives pieces from chkconfig, check
2+
there for the original spec.

packages/aterm/SPECS/aterm.spec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Name: aterm
55
Version: 1.0.1
6-
Release: 29%{?dist}
6+
Release: 30%{?dist}
77

88
Summary: Afterstep XVT, VT102 emulator for the X Window system
99
License: GPLv2+
@@ -43,9 +43,6 @@ advantage on a machine serving many X sessions.
4343
%patch10 -p1 -b .sgifixes
4444

4545
%build
46-
export SHELL=%{_bindir}/sh
47-
export SHELL_PATH="$SHELL"
48-
export CONFIG_SHELL="$SHELL"
4946

5047
%configure --enable-fading --enable-background-image \
5148
--enable-next-scroll --enable-utmp --enable-wtmp \
@@ -70,6 +67,9 @@ make %{?_smp_mflags}
7067

7168

7269
%changelog
70+
* Fri Apr 10 2020 Daniel Hams <[email protected]> - 1.0.1-30
71+
- Remove hard coded shell paths
72+
7373
* Wed Jul 24 2019 Fedora Release Engineering <[email protected]> - 1.0.1-29
7474
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7575

packages/autoconf/SPECS/autoconf.spec

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Summary: A GNU tool for automatically configuring source code
1010
Name: autoconf
1111
Version: 2.69
12-
Release: 31%{?dist}
12+
Release: 32%{?dist}
1313
License: GPLv2+ and GFDL
1414
Source0: http://ftpmirror.gnu.org/autoconf/autoconf-%{version}.tar.xz
1515
Source1: config.site
@@ -78,12 +78,6 @@ their use.
7878
# Here's a terminator
7979

8080
%prep
81-
export SHELL=%{_bindir}/bash
82-
export CONFIG_SHELL="$SHELL"
83-
export SHELL_PATH="$SHELL"
84-
export PERL_PATH=%{_bindir}/perl
85-
export PERL=%{_bindir}/perl
86-
export M4=%{_bindir}/m4
8781
%autosetup -p1
8882

8983
%build
@@ -92,12 +86,6 @@ export EMACS=%{_bindir}/emacs
9286
%else
9387
export EMACS=%{_bindir}/false
9488
%endif
95-
export SHELL=%{_bindir}/bash
96-
export CONFIG_SHELL="$SHELL"
97-
export SHELL_PATH="$SHELL"
98-
export PERL_PATH=%{_bindir}/perl
99-
export PERL=%{_bindir}/perl
100-
export M4=%{_bindir}/m4
10189
%configure \
10290
%{?with_autoconf_enables_emacs:--with-lispdir=%{_emacs_sitelispdir}/autoconf}
10391
make %{?_smp_mflags}
@@ -112,12 +100,6 @@ make check %{?_smp_mflags}
112100

113101

114102
%install
115-
export SHELL=%{_bindir}/bash
116-
export CONFIG_SHELL="$SHELL"
117-
export SHELL_PATH="$SHELL"
118-
export PERL_PATH=%{_bindir}/perl
119-
export PERL=%{_bindir}/perl
120-
export M4=%{_bindir}/m4
121103
make install %{?_smp_mflags} DESTDIR=%{buildroot}
122104
mkdir -p %{buildroot}/share
123105
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}
@@ -146,6 +128,9 @@ install -p -m 0644 %{SOURCE2} %{buildroot}%{_emacs_sitestartdir}
146128

147129

148130
%changelog
131+
* Fri Apr 10 2020 Daniel Hams <[email protected]> - 2.69-32
132+
- Remove hard coded shell paths
133+
149134
* Wed Aug 28 2019 Ondrej Dubaj <[email protected]> - 2.69-31
150135
- Port tests to Bash 5
151136

packages/automake/SPECS/automake.spec

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
Summary: A GNU tool for automatically creating Makefiles
1818
Name: automake
1919
Version: %{api_version}.1
20-
Release: 13%{?dist}
20+
Release: 14%{?dist}
2121

2222
# docs ~> GFDL, sources ~> GPLv2+, mkinstalldirs ~> PD and install-sh ~> MIT
2323
License: GPLv2+ and GFDL and Public Domain and MIT
@@ -101,12 +101,6 @@ Makefiles.
101101

102102

103103
%prep
104-
export SHELL=%{_bindir}/bash
105-
export CONFIG_SHELL="$SHELL"
106-
export SHELL_PATH="$SHELL"
107-
export PERL_PATH=%{_bindir}/perl
108-
export PERL=%{_bindir}/perl
109-
export M4=%{_bindir}/m4
110104
%autosetup -p1
111105
%if %{with check} && %{with automake_enables_optional_test}
112106
autoreconf -iv
@@ -122,25 +116,13 @@ done
122116
%build
123117
# disable replacing config.guess and config.sub from redhat-rpm-config
124118
%global _configure_gnuconfig_hack 0
125-
export SHELL=%{_bindir}/bash
126-
export CONFIG_SHELL="$SHELL"
127-
export SHELL_PATH="$SHELL"
128-
export PERL_PATH=%{_bindir}/perl
129-
export PERL=%{_bindir}/perl
130-
export M4=%{_bindir}/m4
131119
%configure
132120
%make_build
133121
cp m4/acdir/README README.aclocal
134122
cp contrib/multilib/README README.multilib
135123

136124

137125
%install
138-
export SHELL=%{_bindir}/bash
139-
export CONFIG_SHELL="$SHELL"
140-
export SHELL_PATH="$SHELL"
141-
export PERL_PATH=%{_bindir}/perl
142-
export PERL=%{_bindir}/perl
143-
export M4=%{_bindir}/m4
144126
%make_install
145127

146128

@@ -166,6 +148,9 @@ make -k %{?_smp_mflags} check %{?TESTS_FLAGS: TESTS="%{TESTS_FLAGS}"} \
166148

167149

168150
%changelog
151+
* Fri Apr 10 2020 Daniel Hams <[email protected]> - 1.16-14
152+
- Remove hard coded shell paths
153+
169154
* Wed Jul 24 2019 Fedora Release Engineering <[email protected]> - 1.16.1-13
170155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
171156

0 commit comments

Comments
 (0)