martes, 15 de abril de 2025

Oracle Linux V7.x actualizando paquete tzdata-2025b-1 con cambios zonas horarias Paraguay y Chile.

Imagen: leonardo.ai

Hace unos días atrás publiqué una nota en mi perfil de Linkedin, sobre el tema de las zonas horarias, sobre todo llamando la atención al cambio de horario en #Paraguay y #Chile America/Coyhaique, a partir del 22 de marzo de este año.

Les comenté que el paquete tzdata-2025b-1.el7 no esta disponible para descargar de los repositorios de Oracle Linux 7 y que había realizado la revisión en la ruta https://lnkd.in/euuhDb-E en donde sólo estaba el paquete tzdata-2025a-1.el7 en formato origen, que no contempla el cambio.

Esto porque Oracle Linux V7 ya no tiene soporte desde diciembre 2024.

Hoy revisando les tengo una buena noticia a todos aquellos que tienen Oracle Linux 7. !!!!

El paquete tzdata-2025b-1.el7.src.rpm para se compilado en su servidor, ya esta disponible. !!!

Recuerden este es un paquete que de origen que debe ser compilado.

Es requerido que tengas instalados los siguientes grupos de paquetes para poder compilar:

-groupinstall "Development Tools"
-rpm-build rpmdevtools
-java-devel

Bajamos el código que debemos compilar del paquete y recuerda hacerlo con el usuario "root".
wget https://oss.oracle.com/ol7/SRPMS-updates/tzdata-2025b-1.el7.src.rpm

Instalamos los paquetes prerequisto:

yum groupinstall "Development Tools" -y
yum install rpm-build rpmdevtools -y
yum install java-devel -y

Luego vamos a ejecutar:
rpmdev-setuptree

Esto genera la siguiente estructura de directorios en el lugar en donde estas ejecutando el proceso.

~/rpmbuild/
├── BUILD
├── RPMS
├── SOURCES
├── SPECS
└── SRPMS

Luego ejecutas:
rpm -ivh tzdata-2025b-1.el7.src.rpm

Esto colocará:

El archivo .spec en ~/rpmbuild/SPECS/
El código fuente en ~/rpmbuild/SOURCES/

Para compilar:

cd ~/rpmbuild/SPECS
rpmbuild -ba tzdata.spec

Esto generará los binarios en ~/rpmbuild/RPMS/.

Parte de la compilación del paquete:

-                        12:00  -       +12
+                        12:00  -       %z

 # Kiribati (except Gilbert Is)
 # See Pacific/Tarawa for the Gilbert Is.
 # Zone NAME            STDOFF  RULES   FORMAT  [UNTIL]
 Zone Pacific/Kanton      0     -       -00     1937 Aug 31
-                       -12:00  -       -12     1979 Oct
-                       -11:00  -       -11     1994 Dec 31
-....


+ exit 0
Provides: tzdata = 2025b-1.el7
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Conflicts: glibc-common <= 2.3.2-63
Processing files: tzdata-java-2025b-1.el7.noarch
Provides: tzdata-java = 2025b-1.el7
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/tzdata-2025b-1.el7.x86_64
Wrote: /root/rpmbuild/SRPMS/tzdata-2025b-1.el7.src.rpm
Wrote: /root/rpmbuild/RPMS/noarch/tzdata-2025b-1.el7.noarch.rpm
Wrote: /root/rpmbuild/RPMS/noarch/tzdata-java-2025b-1.el7.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.q0FDYz
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd tzdata-2025b
+ /usr/bin/rm -rf /root/rpmbuild/BUILDROOT/tzdata-2025b-1.el7.x86_64
+ exit 0
[root@lab-ol7-timezone SPECS]# cd ..
[root@lab-ol7-timezone rpmbuild]# ls -la
total 12
drwxr-xr-x. 8 root root 4096 Apr 15 16:50 .
dr-xr-x---. 7 root root 4096 Apr 15 16:49 ..
drwxr-xr-x. 3 root root   34 Apr 15 16:51 BUILD
drwxr-xr-x. 2 root root   10 Apr 15 16:51 BUILDROOT
drwxr-xr-x. 3 root root   28 Apr 15 16:51 RPMS
drwxr-xr-x. 2 root root 4096 Apr 15 16:50 SOURCES
drwxr-xr-x. 2 root root   33 Apr 15 16:50 SPECS
drwxr-xr-x. 2 root root   48 Apr 15 16:51 SRPMS
[root@lab-ol7-timezone rpmbuild]# cd RPMS
[root@lab-ol7-timezone RPMS]# ls -lat
total 4
drwxr-xr-x. 2 root root   97 Apr 15 16:51 noarch
drwxr-xr-x. 3 root root   28 Apr 15 16:51 .
drwxr-xr-x. 8 root root 4096 Apr 15 16:50 ..
[root@lab-ol7-timezone RPMS]# cd noarch/
[root@lab-ol7-timezone noarch]# ls -lat
total 692
drwxr-xr-x. 2 root root     97 Apr 15 16:51 .
-rw-r--r--. 1 root root 189376 Apr 15 16:51 tzdata-java-2025b-1.el7.noarch.rpm
-rw-r--r--. 1 root root 513552 Apr 15 16:51 tzdata-2025b-1.el7.noarch.rpm
drwxr-xr-x. 3 root root     28 Apr 15 16:51 ..

Ahora vamos a instalar el binario creado.

[root@lab-ol7-timezone noarch]# yum localinstall tzdata-2025b-1.el7.noarch.rpm
Loaded plugins: langpacks, ulninfo
Examining tzdata-2025b-1.el7.noarch.rpm: tzdata-2025b-1.el7.noarch
Marking tzdata-2025b-1.el7.noarch.rpm as an update to tzdata-2024b-2.el7.noarch
Resolving Dependencies
--> Running transaction check
---> Package tzdata.noarch 0:2024b-2.el7 will be updated
---> Package tzdata.noarch 0:2025b-1.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================
 Package               Arch        Version        Repository                      Size
=======================================================================================
Updating:
 tzdata                noarch      2025b-1.el7    /tzdata-2025b-1.el7.noarch     1.8 M

Transaction Summary
=======================================================================================
Upgrade  1 Package

Total size: 1.8 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : tzdata-2025b-1.el7.noarch                                                                              1/2
  Cleanup    : tzdata-2024b-2.el7.noarch                                                                              2/2
  Verifying  : tzdata-2025b-1.el7.noarch                                                                              1/2
  Verifying  : tzdata-2024b-2.el7.noarch                                                                              2/2

Updated:
  tzdata.noarch 0:2025b-1.el7

Complete!

Cuando termine la instalación, validan la existencia de la clásula de cambio en la zona horaria respectiva.

[root@lab-ol7-timezone noarch]# rpm -q --changelog tzdata | head -20
* Mon Mar 24 2025 Patsy Griffin <patsy@redhat.com> - 2025b-1
- Update to tzdata-2025b (RHEL-84741)
- Chile's Aysén Region moves from -04/-03
to -03 year-round, diverging from America/Santiago and
creating a new zone America/Coyhaique.

* Tue Jan 21 2025 Patsy Griffin <patsy@redhat.com> - 2025a-1
Update to tzdata-2025a (RHEL-74308)
- Paraguay is now permanently at -03. This impacts timestamps
starting on 2025-03-22.
- Includes improvements to pre-1991 data for the Philippines.
- Etc/Unknown is now reserved.

* Fri Sep 27 2024 Patsy Griffin <patsy@redhat.com> - 2024b-2
- Harden against links to removed zones (RHEL-60063)

* Wed Sep 11 2024 Patsy Griffin <patsy@redhat.com> - 2024b-1
- Update to tzdata-2024b
- Improve historical data for Mexico, Mongolia, and Portugal.
- System V names are now obsolescent.
[root@lab-ol7-timezone noarch]# uname -a
Linux lab-ol7-timezone 5.4.17-2136.327.2.el7uek.x86_64 #2 SMP Fri Jan 5 14:53:41 PST 2024 x86_64 x86_64 x86_64 GNU/Linux
[root@lab-ol7-timezone noarch]#

No hay comentarios:

Publicar un comentario

Te agradezco tus comentarios. Te esperamos de vuelta.

Todos los Sábados a las 8:00PM