72 Commits

Author SHA1 Message Date
boypt
cbc4df8b79 fix: harden distro detection fallback 2026-08-26 11:24:48 +08:00
boypt
3efa0bc606 fix: drop redundant EL5 dist define 2026-08-26 11:11:02 +08:00
boypt
370f4310df refactor: drop .keep placeholder files in favor of explicit mkdir
BUILD_RPM now creates the rpmbuild _topdir subdirs (BUILD/RPMS/SRPMS/
SOURCES/SPECS) itself, so the 11 tracked .keep placeholders (downloads,
output, el*/{BUILD,RPMS,SRPMS}) are no longer needed; output/ and
downloads/ were already created by compile.sh/pullsrc.sh.
2026-08-24 14:07:09 +08:00
boypt
a3be02a209 refactor: flatten GUESS_DIST -> TOPDIR_SELECT call chain
TOPDIR_SELECT now assigns rpmtopdir from GUESS_DIST directly and uses a
single -d guard instead of a 4-branch identity-mapping case; the el5/el6
WITH_OPENSSL=2 default is dropped (BUILD_RPM already falls back to 2),
keeping only the el7 system-openssl auto-detection. Main flow collapses
case fallthrough + manual-dir + trailing checks into one dispatch case.
2026-08-24 14:00:11 +08:00
boypt
e9a25bd29a refactor: simplify GUESS_DIST to generic el5/el6/el7 mapping
Drop per-distro special cases (Anolis an7/an8, UOS uel*) in favor of a
generic rule: only el5/el6 keep dedicated spec dirs, everything else
maps to el7. Collapse the redundant glibc fallback chain into default
branches.
2026-08-24 13:49:24 +08:00
boypt
cbb519644d lint: add shellcheck/shfmt rules to AGENTS.md, format compile.sh and pullsrc.sh 2026-08-16 11:21:01 +08:00
boypt
4c8b1fb2e9 fix: use '.' separator in UOS20 PKGREL prefix to avoid illegal '-' in Release field
RPM does not allow '-' in the Release field (it is the Version/Release
delimiter). The 'uos20-' prefix produced Release values like 'uos20-b1.el8'
which rpmbuild rejects with 'Illegal char '-' (0x2d)'. Switch to 'uos20.'.
2026-08-11 15:17:39 +08:00
boypt
d6bcab2809 fix: use 'uos20-' as PKGREL prefix to avoid unreadable 'uos201'
PKGREL=1 + 'uos20' prefix concatenated to 'uos201', which reads as
'uos two hundred one' rather than 'uos20 version 1'. Add a hyphen
('uos20-') so the resulting release tag is 'uos20-1' / 'uos20-b12' etc.

Update compile.sh logic and the three doc references (README,
AGENTS.md, docker/README.md) to match.
2026-08-07 16:48:38 +08:00
boypt
ef31f9cb53 refactor: consolidate UOS20 spec into main openssh.spec via UOS20=1
The UOS 20 build was previously a near-duplicate spec (openssh.uos20.spec)
with only the kernel-panic patch as an intentional difference. The
kerberos5 and gssapi drift was unintentional and caused maintenance pain
upstream changes had to be applied in two places.

Now there is one spec. The kernel-panic patch is gated on a uos20 macro
that compile.sh sets only when UOS20=1 is in the environment, so non-UOS
builds cannot accidentally pick it up. When UOS20=1, PKGREL is prefixed
with 'uos20' so the resulting RPMs are distinguishable from the standard
build (e.g. PKGREL=1 -> uos201).

Delete openssh.uos20.spec, document UOS20=1 in AGENTS.md.
2026-08-07 16:12:21 +08:00
boypt
6eb13e831a refactor: map el8+ to el7 in GUESS_DIST, add AGENTS.md 2026-07-29 09:49:14 +08:00
boypt
aa5a4b8162 fix: upstream bug with GSSAPI options 2026-07-10 15:47:02 +08:00
boypt
fd02898584 fix: force gssapi enabled 2026-07-10 14:13:18 +08:00
boypt
e631cda76c fix: move the el5 krb5 linking hack to SPCE 2026-07-10 09:09:14 +08:00
boypt
fb9940fc8c fix: remove tab indent 2026-07-09 16:42:26 +08:00
boypt
ed95794b1f fix: el5 perl ver check 2026-07-09 16:12:38 +08:00
boypt
2d5684db77 fix: el5 fake perl src 2026-07-09 16:08:10 +08:00
boypt
9227ec48d8 fix: el5 build hacks 2026-07-09 15:59:10 +08:00
boypt
26bb728182 fix: el5 build 2026-07-09 15:48:02 +08:00
boypt
018d9130ab fix: krb5 in el5 hack 2026-07-09 13:48:41 +08:00
boypt
196031cca0 fix: support krb5 in M32=1 2026-07-09 13:14:52 +08:00
boypt
0317be588e fix: script may fail to report error code in EL5 2026-07-07 16:06:26 +08:00
boypt
50a8e37784 fix: default env vars 2026-04-10 16:12:24 +08:00
boypt
2bc8ccb42f add: accept env var SPECFILE 2026-04-09 16:25:40 +08:00
boypt
d4871f62d3 fix: rewrite el5 fixes 2026-04-09 05:32:13 +00:00
boypt
eab167afe1 fix: el5 dir match 2026-04-09 05:09:33 +00:00
boypt
b2eaa692fa docker: centos 5 builder; fix CMD 2026-04-09 03:45:27 +00:00
boypt
f6ac3ec47c feat: copy rpms to output 2026-04-08 07:39:52 +00:00
boypt
3f4f5801f6 docker: reduce depens; el5 add m32 2026-04-08 05:42:06 +00:00
boypt
60eb6f3244 use static ssl for older dist 2026-01-06 14:09:38 +08:00
boypt
286d2d072a add subcmd notice 2025-12-31 13:44:09 +08:00
boypt
05fc533165 try: version-local.env 2025-12-30 13:47:20 +08:00
boypt
58291e2c48 fix compatible 2025-12-26 17:34:01 +08:00
boypt
a2ab36729c WITH_OPENSSL accepts as env variable 2025-12-26 17:22:53 +08:00
boypt
9de9103bed fix el8 logic; uos 2025-12-26 15:48:12 +08:00
boypt
1a678d6092 use el8 logic 2025-12-26 15:43:43 +08:00
boypt
10c4588c2c drop amzn dist dir 2025-12-26 15:28:53 +08:00
boypt
3bbf1db8be refactor: with_openssl switch 2025-12-26 15:13:57 +08:00
boypt
1c454c0b5a avoid debug package 2025-12-24 16:34:43 +08:00
boypt
cd2fba3d5d fix: use rpm arch name 2025-04-10 14:49:06 +08:00
boypt
0031ccf0c9 fix: use array as build opt 2025-01-02 14:10:21 +08:00
boypt
b7a229e1ab avoid weird bash array subscribtion 2025-01-02 13:58:22 +08:00
boypt
1464e28cc3 fix bash array subs (fix #34) 2024-12-20 09:49:37 +08:00
boypt
cdf2a91ec1 add defined variable in argumets 2024-12-19 14:56:23 +08:00
boypt
a707b98ef7 fix: dist define 2024-12-18 16:31:05 +08:00
boypt
533bfd5b55 add dist if not defined 2024-12-18 15:31:37 +08:00
ChowRex
f0b2bf7905 Important Version Updates (#19)
* Important Version Updates
- Add dockerfile support for centos 8 series.
- Modify Dockerfile.centos to add CentOS 8 support and fix the problem of CentOS 5 series not being able to build.
- Modify modify_yum_source.sh to add CentOS 8 support and fix CentOS 5 series yum source problem.

* Update CentOS Stream support                                                                           INT ✘  base 
- Changed compile.sh to add support for CentOS Stream 8/9 series.
- Modified docker.README.md to add Stream series description.
- Modified Dockerfile.amazonlinux to add cleanup operations and reduce image size.
- Modify Dockerfile.centos, add cleanup operation, reduce image size
- Added Dockerfile.centos-stream to support Stream series build images.
- Added modify_dnf_source.pl to add Stream series yum source modification function.
- Modified README.md to add Stream series test pass information and correct formatting and word spelling errors.

---------

Co-authored-by: Rex Zhou <zhouruixi@goldwind.com>
2024-06-04 17:01:06 +08:00
boypt
ee23f00538 support anolisos 2024-03-12 16:59:07 +08:00
boypt
a9127e8f16 show rpm vendor 2024-02-27 16:02:57 +08:00
boypt
27f64b6e22 sub cmd 2024-02-27 15:58:21 +08:00
boypt
3964d561be script refactor 2024-02-27 13:41:34 +08:00