Skip to content

Commit e03365c

Browse files
author
Matt Westphall
committed
Re-add ARM build to frontier-squid
git-svn-id: https://vdt.cs.wisc.edu/svn/native/redhat/branches/23-main@28285 4e558342-562e-0410-864c-e07659590f8c
1 parent db0ca4f commit e03365c

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

Diff for: frontier-squid/osg/frontier-squid.spec

+23-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Summary: The Frontier distribution of the Squid proxy caching server
1010
Name: frontier-squid%{?squidsuffix}
1111
Version: 5.9
1212
%define release4source 3
13-
%define releasenum 2%{?dist}
13+
%define releasenum 3%{?dist}
1414
Release: %{?release4source}.%{?releasenum}
1515
Epoch: 11
1616
License: GPL
@@ -70,7 +70,7 @@ BuildRequires: redhat-rpm-config
7070
BuildRequires: libffi-devel
7171
BuildRequires: cargo
7272

73-
ExclusiveArch: x86_64
73+
# ExclusiveArch: x86_64
7474

7575
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
7676

@@ -102,6 +102,11 @@ tar zxf %{SOURCE1}
102102
# starts out in the shoal-downloads directory
103103

104104
set -ex
105+
106+
107+
# Shoal-agent has an x86_64 exclusive python wheel dependency
108+
%ifarch x86_64
109+
105110
PYVERS="python3$(python3 -V|cut -d. -f2)"
106111
PYDIR=$PWD/$PYVERS/.local
107112
PATH=$PYDIR/bin:$PATH
@@ -151,6 +156,8 @@ ln -s %{etcdirsquid}/shoal_agent.conf dist/shoal-agent/
151156

152157
cd ..
153158

159+
%endif
160+
154161
# unpack squid code and patch it
155162
cd ../%{frontiersquidtarball}/squid
156163
make INSTALL_DIR=$RPM_BUILD_ROOT PORT_ROOT=$PWD/.. unpack .common_patch
@@ -304,6 +311,9 @@ rm -f ${RPM_BUILD_ROOT}$CRON_DIR/crontab.dat
304311

305312
# Finally, install the shoal files
306313
popd
314+
315+
# Shoal-agent has an x86_64 exclusive python wheel dependency
316+
%ifarch x86_64
307317
cd ../shoal-%{shoalname}
308318
# fix bad permissions on cryptography directory (causes problem on src rebuild)
309319
find shoal-agent/dist/shoal-agent -type d ! -perm -1|xargs -r chmod +x
@@ -319,6 +329,7 @@ touch ${RPM_BUILD_ROOT}%{etcdirsquid}/shoal_agent.conf
319329
# make symlink for shoal_agent.conf https://github.com/hep-gc/shoal/issues/168
320330
mkdir ${RPM_BUILD_ROOT}/etc/shoal
321331
ln -s ../squid/shoal_agent.conf ${RPM_BUILD_ROOT}/etc/shoal
332+
%endif
322333

323334
# In the squid4 to squid5 update, there is a problem in yum (not rpm) where
324335
# files in the "es" directory cause conflict errors in the transaction test.
@@ -336,7 +347,11 @@ rm -rf $RPM_BUILD_ROOT
336347
/usr/sbin/fn-local-squid%{?squidsuffix}.sh
337348
/usr/sbin/squid%{?squidsuffix}
338349
/usr/bin/*
350+
351+
%ifarch x86_64
339352
%config(noreplace) %verify(not owner group mtime) /etc/shoal/shoal_agent.conf
353+
%endif
354+
340355
%{libexecdirsquid}
341356
%{datadirsquid}
342357
%{homedirsquid}
@@ -364,8 +379,10 @@ rm -rf $RPM_BUILD_ROOT
364379
# this rpm is uninstalled
365380
%verify(not user group mode) %ghost %{etcdirsquid}/squid.conf.old
366381
# shoal_agent.conf is a ghost file because it is generated
382+
%ifarch x86_64
367383
%verify(not user group mode) %ghost %{etcdirsquid}/shoal_agent.conf
368384
%verify(not user group size md5 mtime) %{etcdirsquid}/shoal_agent.conf.frontierdefault
385+
%endif
369386
# cachedirsquid and logdirsquid are ghost in case someone turned them
370387
# into symlinks (since they're commonly relocated); if we let rpm install
371388
# these directories it will change the symlink target's owner to root
@@ -538,6 +555,10 @@ fi
538555

539556
%changelog
540557

558+
* Tue Mar 11 2025 Matt Westphall <[email protected]> 5.9-3.3
559+
- Re-add ARM build
560+
- Exclude shoal-agent frrom ARM builds
561+
541562
* Fri Dec 13 2024 Carl Vuosalo <[email protected]> 5.9-3.2
542563
- Fix building of RPM to properly choose Python36 or Python39.
543564
Also, restrict building to x86_64 architecture.

0 commit comments

Comments
 (0)