-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommit-centos-fix.sh
More file actions
executable file
·89 lines (71 loc) · 2.64 KB
/
commit-centos-fix.sh
File metadata and controls
executable file
·89 lines (71 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/bin/bash
# Script to commit the CentOS Stream 9 compatibility fixes
set -e
# Colors for output
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
NC='\033[0m'
print_status() {
echo -e "${BLUE}[INFO]${NC} $1"
}
print_success() {
echo -e "${GREEN}[SUCCESS]${NC} $1"
}
print_warning() {
echo -e "${YELLOW}[WARNING]${NC} $1"
}
print_status "Committing CentOS Stream 9 compatibility fixes..."
# Check if we have uncommitted changes
if ! git diff --quiet || ! git diff --cached --quiet; then
print_status "Found uncommitted changes, proceeding with commit..."
# Add all the modified files
git add .github/workflows/build-rpm.yml
git add RPM_PACKAGING.md
git add build-rpm.sh
git add CENTOS_STREAM9_FIX.md
git add commit-centos-fix.sh
# Show what's being committed
print_status "Files being committed:"
git diff --cached --name-only
# Commit with descriptive message
git commit -m "Fix CentOS Stream 9 build compatibility
- Replace python3-venv with python3-devel in dependencies
- Fix changelog date generation in RPM spec file
- Disable debug package generation for pre-built executable
- Update documentation with CentOS Stream 9 specifics
- Add troubleshooting guide for common build issues
Fixes GitHub Action build failures:
- No match for argument: python3-venv
- bad date in %changelog error
- Empty %files file debugsourcefiles.list
The venv module is built into python3 package in CentOS Stream 9,
and python3-devel provides the development headers needed for
PyInstaller and PyQt5 native extensions. Debug packages are
disabled since we're packaging a pre-built PyInstaller executable."
print_success "Changes committed successfully!"
# Ask about pushing
echo ""
echo "Next steps:"
echo "1. Push to GitHub:"
echo " git push"
echo ""
echo "2. Create and push a test tag:"
echo " git tag v1.0.2"
echo " git push origin v1.0.2"
echo ""
echo "3. Or manually trigger GitHub Action workflow"
else
print_warning "No uncommitted changes found. All files are already committed."
# Show current status
print_status "Current git status:"
git status --porcelain
fi
print_status "Summary of fixes applied:"
echo "✅ Removed python3-venv dependency (not available in CentOS Stream 9)"
echo "✅ Added python3-devel dependency (provides development headers)"
echo "✅ Fixed changelog date generation in GitHub Action"
echo "✅ Disabled debug package generation (not needed for pre-built executable)"
echo "✅ Updated documentation and troubleshooting guide"
echo ""
print_success "Ready to test the build process!"