public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dennis Gilmore <dennis@ausil.us>
To: git-commits@fedoraproject.org
Subject: [rpms/fedora-release] f45: unbreak installs getting a broken symlink at /etc/os-release
Date: Mon, 10 Aug 2026 09:34:05 GMT	[thread overview]
Message-ID: <178635444531.1.12038599779929886577.rpms-fedora-release-96d956033645@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/fedora-release
Branch : f45
Commit : 96d9560336455329c76d4f7db83c21dce4bb3163
Author : Dennis Gilmore <dennis@ausil.us>
Date   : 2015-03-13T17:13:26-05:00
Stats  : +11/-8 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/fedora-release/c/96d9560336455329c76d4f7db83c21dce4bb3163?branch=f45

Log:
unbreak installs getting a broken symlink at /etc/os-release

---
diff --git a/fedora-release.spec b/fedora-release.spec
index a4c58fc..bd295fc 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -5,7 +5,7 @@
 Summary:        Fedora release files
 Name:           fedora-release
 Version:        23
-Release:        0.4
+Release:        0.5
 License:        MIT
 Group:          System Environment/Base
 URL:            http://fedoraproject.org
@@ -123,10 +123,11 @@ cp -p $RPM_BUILD_ROOT/usr/lib/os.release.d/os-release-fedora \
 echo "VARIANT=Workstation" >> $RPM_BUILD_ROOT/usr/lib/os.release.d/os-release-workstation
 
 # Create the symlink for /etc/os-release
-# This will be dangling until %post[trans] when the
+# This will be standard until %post when the
 # release packages will link the appropriate one into
 # /usr/lib/os-release
 ln -s ../usr/lib/os-release $RPM_BUILD_ROOT/etc/os-release
+ln -s os.release.d/os-release-fedora $RPM_BUILD_ROOT/usr/lib/os-release
 
 # Set up the dist tag macros
 install -d -m 755 $RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d
@@ -149,7 +150,6 @@ install -m 0644 80-workstation.preset %{buildroot}%{_prefix}/lib/systemd/system-
 mkdir -p %{buildroot}%{_datadir}/glib-2.0/schemas/
 install -m 0644 org.gnome.shell.gschema.override %{buildroot}%{_datadir}/glib-2.0/schemas/
 
-
 %posttrans
 # Only on installation
 if [ $1 = 0 ]; then
@@ -170,7 +170,7 @@ if [ $1 -eq 1 ] ; then
 
     # If the link exists but it points to a non-productized version,
     # replace it with this one
-    test \! -h /usr/lib/os-release -o "x$(readlink /usr/lib/os-release)" != "xos-release-fedora" ||
+    test \! -h /usr/lib/os-release -o "x$(readlink /usr/lib/os-release)" != "xos.release.d/os-release-fedora" ||
         ln -sf /usr/lib/os.release.d/os-release-cloud /usr/lib/os-release || :
 fi
 
@@ -195,7 +195,7 @@ if [ $1 -eq 1 ] ; then
 
     # If the link exists but it points to a non-productized version,
     # replace it with this one
-    test \! -h /usr/lib/os-release -o "x$(readlink /usr/lib/os-release)" != "xos-release-fedora" ||
+    test \! -h /usr/lib/os-release -o "x$(readlink /usr/lib/os-release)" != "xos.release.d/os-release-fedora" ||
         ln -sf /usr/lib/os.release.d/os-release-server /usr/lib/os-release || :
 
     # fix up after %%systemd_post in packages
@@ -225,7 +225,7 @@ if [ $1 -eq 1 ] ; then
 
     # If the link exists but it points to a non-productized version,
     # replace it with this one
-    test \! -h /usr/lib/os-release -o "x$(readlink /usr/lib/os-release)" != "xos-release-fedora" ||
+    test \! -h /usr/lib/os-release -o "x$(readlink /usr/lib/os-release)" != "xos.release.d/os-release-fedora" ||
         ln -sf /usr/lib/os.release.d/os-release-workstation /usr/lib/os-release || :
 
     # fix up after %%systemd_post in packages
@@ -255,7 +255,7 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 %license LICENSE Fedora-Legal-README.txt
 %dir /usr/lib/os.release.d
 %config %attr(0644,root,root) /usr/lib/os.release.d/os-release-fedora
-%ghost /usr/lib/os-release
+/usr/lib/os-release
 /etc/os-release
 %config %attr(0644,root,root) /etc/fedora-release
 /etc/redhat-release
@@ -286,6 +286,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
 %changelog
 * Fri Mar 13 2015 Dennis Gilmore <dennis@ausil.us> - 23-0.4
+- unbreak installs getting a broken symlink at /etc/os-release
+
+* Fri Mar 13 2015 Dennis Gilmore <dennis@ausil.us> - 23-0.4
 - add preset file for workstation to disable sshd
 
 * Thu Mar 12 2015 Stephen Gallagher <sgallagh@redhat.com> 23-0.3.1

diff --git a/sources b/sources
index 95a155e..8b5564f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-fdf186e711f503cd08417c7ed853c882  fedora-release-23.tar.bz2
+8ba1fa2cab653019cbb93538c607937d  fedora-release-23.tar.bz2

                 reply	other threads:[~2026-08-10  9:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178635444531.1.12038599779929886577.rpms-fedora-release-96d956033645@fedoraproject.org \
    --to=dennis@ausil.us \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox