fedora-release-workstation-24-2$>I ؓS'Sg>?>F?>6d  " f  5NT[:++|+ + + + , ,,--$-@-X- . /= (/p8/|9/:3g>:?: @:&G:0H:HI:`X:hY:|\:]:^;+b;d<e<f<l<t=u= v=8=>#>,>0Cfedora-release-workstation242Base package for Fedora Workstation-specific default configurationsProvides a base package for Fedora Workstation-specific configuration files to depend on.Wl(bkernel01.phx2.fedoraproject.orgFedora ProjectFedora ProjectMITFedora ProjectSystem Environment/Basehttp://fedoraproject.orglinuxnoarch-- This is intended to be run as an RPM scriptlet. -- Keep this file in sync with the convert-to-edition -- shell script local VARIANT_FILE = "/usr/lib/variant" -- Read in /usr/lib/variant and determine the edition local function read_variant() local variant local f = io.open(VARIANT_FILE, "r") if f ~= nil then while true do local line = f:read() if line == nil then break end local m = line:match("^VARIANT_ID=([^\n]+)") if m ~= nil then variant = m end end f:close() end return variant end -- Atomically replace a file with new contents local function writefile(path, data) local tmp = path .. ".convert-to-edition" local f = io.open(tmp, "w+") if f == nil then return end f:write(data) f:close() if not os.rename(tmp, path) then os.remove(tmp) end end -- Forcibly replace a symlink local function symlink(from, to) os.remove(to) assert(posix.symlink(from, to)) end -- Run a subroutine in a child process local function execute(...) local pid = posix.fork() if pid == 0 then posix.exec(...) posix.exit(1) elseif pid ~= -1 then local status = posix.wait(pid) if status ~= 0 then local program = ... error(program .. " exited with status " .. status) end end end -- Remove preset files for other editions -- This should never be necessary, but it's best to be safe local function clear_presets() local path = "/usr/lib/systemd/system-preset" for file in posix.files(path) do if file:match("^80.*%.preset$") then os.remove(path .. "/" .. file) end end end -- Get a list of presets that need to be enabled or disabled -- as part of the installation of this edition local function read_presets(path) local result = {} local f = assert(io.open(path)) if f ~= nil then while true do local line = f:read() if line == nil then break end local cmd, arg = line:match("^([^ \t]+)[ \t]+([^\n \t]+)") if cmd == "enable" or cmd == "disable" then result[#result + 1] = arg end end f:close() end return result end local function set_variant(variant) writefile(VARIANT_FILE, "VARIANT_ID=" .. variant .. "\n") end local function set_release(release) symlink("./os.release.d/os-release-" .. release, "/usr/lib/os-release") end local function set_issue(release) symlink("./os.release.d/issue-" .. release, "/usr/lib/issue") end -- release: the VARIANT_ID for os-release -- issue: which /etc/issue file to install -- presets: whether this edition has extra presets beyond the -- defaults to enable or disable local variants = { atomichost = {release = "atomichost", issue = "fedora", presets = false}, cloud = {release = "cloud", issue = "fedora", presets = false}, nonproduct = {release = "fedora", issue = "fedora", presets = false}, server = {release = "server", issue = "server", presets = true}, workstation = {release = "workstation", issue = "fedora", presets = true}, } -- Call out to systemctl to enable or disable presets local function set_presets(edition, apply_presets) if variants[edition].presets then local target = "/usr/lib/systemd/system-preset/80-" .. edition .. ".preset" symlink("../../os.release.d/presets/80-" .. edition .. ".preset", target) if apply_presets then local presets = read_presets(target) local systemctl = "/usr/bin/systemctl" if posix.access(systemctl, "x") then --fork off a systemctl call local pid = assert(posix.fork()) if pid == 0 then -- Child posix.exec(systemctl, "preset", "-q", table.unpack(presets)) -- In case exec() fails os.exit(17) else -- RPM assert(posix.wait(pid)) end end end end end local function convert_to_edition(edition, apply_presets) local variant = variants[edition] if variant == nil then error("undefined edition: " .. edition) end set_release(variant.release) set_issue(variant.issue) clear_presets() set_presets(edition, apply_presets) end local function install_edition(edition) -- Create the variant file if it does not already exist. This needs -- to be done on both installation and upgrade, to ensure that we -- upgrade from F23 and earlier properly. if not posix.access(VARIANT_FILE, "f") then set_variant(edition) end if read_variant() == edition then -- (On initial installation only), fix up after %systemd_post -- in packages possibly installed before our preset file was -- added -- On upgrades, do not enable or disable presets to avoid -- surprising the user local initial_install = arg[2] == 1 convert_to_edition(edition, initial_install) end end local function uninstall_edition(edition) -- If we are uninstalling, we need to reset the variant file and -- force the os-release file back to os-release-fedora. We do this -- in %preun so that we don't have any time where the os-release -- symlink is dangling (since in %postun, the os-release-$EDITION -- file will have already been removed) if arg[2] == 0 then if read_variant() == edition then set_variant("nonproduct") convert_to_edition("nonproduct", false) end end end install_edition("workstation")-- This is intended to be run as an RPM scriptlet. -- Keep this file in sync with the convert-to-edition -- shell script local VARIANT_FILE = "/usr/lib/variant" -- Read in /usr/lib/variant and determine the edition local function read_variant() local variant local f = io.open(VARIANT_FILE, "r") if f ~= nil then while true do local line = f:read() if line == nil then break end local m = line:match("^VARIANT_ID=([^\n]+)") if m ~= nil then variant = m end end f:close() end return variant end -- Atomically replace a file with new contents local function writefile(path, data) local tmp = path .. ".convert-to-edition" local f = io.open(tmp, "w+") if f == nil then return end f:write(data) f:close() if not os.rename(tmp, path) then os.remove(tmp) end end -- Forcibly replace a symlink local function symlink(from, to) os.remove(to) assert(posix.symlink(from, to)) end -- Run a subroutine in a child process local function execute(...) local pid = posix.fork() if pid == 0 then posix.exec(...) posix.exit(1) elseif pid ~= -1 then local status = posix.wait(pid) if status ~= 0 then local program = ... error(program .. " exited with status " .. status) end end end -- Remove preset files for other editions -- This should never be necessary, but it's best to be safe local function clear_presets() local path = "/usr/lib/systemd/system-preset" for file in posix.files(path) do if file:match("^80.*%.preset$") then os.remove(path .. "/" .. file) end end end -- Get a list of presets that need to be enabled or disabled -- as part of the installation of this edition local function read_presets(path) local result = {} local f = assert(io.open(path)) if f ~= nil then while true do local line = f:read() if line == nil then break end local cmd, arg = line:match("^([^ \t]+)[ \t]+([^\n \t]+)") if cmd == "enable" or cmd == "disable" then result[#result + 1] = arg end end f:close() end return result end local function set_variant(variant) writefile(VARIANT_FILE, "VARIANT_ID=" .. variant .. "\n") end local function set_release(release) symlink("./os.release.d/os-release-" .. release, "/usr/lib/os-release") end local function set_issue(release) symlink("./os.release.d/issue-" .. release, "/usr/lib/issue") end -- release: the VARIANT_ID for os-release -- issue: which /etc/issue file to install -- presets: whether this edition has extra presets beyond the -- defaults to enable or disable local variants = { atomichost = {release = "atomichost", issue = "fedora", presets = false}, cloud = {release = "cloud", issue = "fedora", presets = false}, nonproduct = {release = "fedora", issue = "fedora", presets = false}, server = {release = "server", issue = "server", presets = true}, workstation = {release = "workstation", issue = "fedora", presets = true}, } -- Call out to systemctl to enable or disable presets local function set_presets(edition, apply_presets) if variants[edition].presets then local target = "/usr/lib/systemd/system-preset/80-" .. edition .. ".preset" symlink("../../os.release.d/presets/80-" .. edition .. ".preset", target) if apply_presets then local presets = read_presets(target) local systemctl = "/usr/bin/systemctl" if posix.access(systemctl, "x") then --fork off a systemctl call local pid = assert(posix.fork()) if pid == 0 then -- Child posix.exec(systemctl, "preset", "-q", table.unpack(presets)) -- In case exec() fails os.exit(17) else -- RPM assert(posix.wait(pid)) end end end end end local function convert_to_edition(edition, apply_presets) local variant = variants[edition] if variant == nil then error("undefined edition: " .. edition) end set_release(variant.release) set_issue(variant.issue) clear_presets() set_presets(edition, apply_presets) end local function install_edition(edition) -- Create the variant file if it does not already exist. This needs -- to be done on both installation and upgrade, to ensure that we -- upgrade from F23 and earlier properly. if not posix.access(VARIANT_FILE, "f") then set_variant(edition) end if read_variant() == edition then -- (On initial installation only), fix up after %systemd_post -- in packages possibly installed before our preset file was -- added -- On upgrades, do not enable or disable presets to avoid -- surprising the user local initial_install = arg[2] == 1 convert_to_edition(edition, initial_install) end end local function uninstall_edition(edition) -- If we are uninstalling, we need to reset the variant file and -- force the os-release file back to os-release-fedora. We do this -- in %preun so that we don't have any time where the os-release -- symlink is dangling (since in %postun, the os-release-$EDITION -- file will have already been removed) if arg[2] == 0 then if read_variant() == edition then set_variant("nonproduct") convert_to_edition("nonproduct", false) end end end uninstall_edition("workstation")if [ $1 -eq 0 ] ; then glib-compile-schemas /usr/share/glib-2.0/schemas &> /dev/null || : fiJ'A큤Wl'Wl'Wl(Wl'Wl(Wl27bcdeacb29e7f0f73b4c747e90b0d60ae8274685490f51fdc8e61be84ac4bd85b097974f87acd00ee6c6e9f82614ada55c2f2a56755125f3a0ab6b59ae3ce8f7b096c7092b4d60338eeb1b8e1855fe037bc42119f6e30e545099c8a49d71738e98708047560db5a5bcf7495c3108709760cbf6202df7b216cbd7918725e7d0f@rootrootrootrootrootrootrootrootrootrootrootrootfedora-release-24-2.src.rpmconfig(fedora-release-workstation)fedora-release-workstationsystem-release-productsystem-release-workstationsystem-release-workstation(24)      /bin/sh/bin/sh/usr/bin/glib-compile-schemas/usr/bin/glib-compile-schemasNetworkManager-config-connectivity-fedoraconfig(fedora-release-workstation)fedora-releaserpmlib(BuiltinLuaScripts)rpmlib(CompressedFileNames)rpmlib(FileDigests)rpmlib(PayloadFilesHavePrefix)rpmlib(PayloadIsXz)24-224-24.2.2-13.0.4-14.6.0-14.0-15.2-14.13.0-rc1Wm WN@W=WVV@V޾V'@V2V>@VIV@VpV }@V +U@U@U@U@UDennis Gilmore - 24-2Dennis Gilmore - 24-1Stephen Gallagher - 24-0.18Dennis Gilmore - 24-0.17Dennis Gilmore - 24-0.16Dennis Gilmore - 24-0.15Stephen Gallagher - 24-0.14Stephen Gallagher - 24-0.13Stephen Gallagher - 24-0.12Stephen Gallagher - 24-0.11Dennis Gilmore - 24-0.10Stephen Gallagher 24-0.9Stephen Gallagher 24-0.8Stephen Gallagher 24-0.7Dennis Gilmore - 24-0.6Stephen Gallagher - 24-0.5Stephen Gallagher - 24-0.4Stephen Gallagher - 24-0.3Stephen Gallagher - 24-0.2Dennis Gilmore - 24-0.1- apply fix from adamw for lua globbing bug rhbz#1349664 - enable lircd.socket rhbz#1340061- setup for f24 final- Fix %posttrans to properly write /usr/lib/variant for nonproduct- enable virtlogd.socket- Fork to execute systemctl calls- Properly handle systemd presets in Lua scripts - convert-to-edition: Remove call to grub2-mkconfig- Add a subpackage for Atomic Host to provide /usr/lib/os-release differences- Rewrite scriptlets in Lua to avoid a circular dependency on coreutils - Be more specific with fedora-release-server's Cockpit requirement (Do not pull in all of the optional Cockpit components as mandatory)- Only run grub2-mkconfig for platforms that support it - Remove erroneous RPM_BUILD_ROOT variables in convert-to-edition- Fix upgrade bug in Workstation and Cloud- setup for f24 being branched- Install Edition presets only for the configured Edition - Add script to convert from non-edition to an Edition - Fix upgrade bugs with non-edition installs - Explicitly set issue-fedora for cloud installs - Resolves: rhbz#1288205- Fix copy-paste error for Workstation os-release and issue- Rework os-release and issue mechanism to avoid upgrade issues such as competing fedora-release-$EDITION packages - Make a non-product install persistent (it won't be converted to an Edition install if something pulls in a fedora-release-$EDITION package- set bug_version to be rawhide rhbz#1259287- Do not clobber /etc/issue[.net] customizations- Update preset file with FESCo decisions - https://fedorahosted.org/fesco/ticket/1472- Enclose IPv6 addresses in square brackets in /etc/issue- Make /etc/issue configurable per-edition - Resolves: RHBZ#1239089- setup for rawhide being f24/bin/sh24-224-2os-release-workstation80-workstation.preset80-workstation.presetorg.gnome.shell.gschema.overridefedora-release-workstationLICENSE/usr/lib/os.release.d//usr/lib/os.release.d/presets//usr/lib/systemd/system-preset//usr/share/glib-2.0/schemas//usr/share/licenses//usr/share/licenses/fedora-release-workstation/-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tablesdrpmxz2noarch-redhat-linux-gnuASCII textcannot open `/builddir/build/BUILDROOT/fedora-release-24-2.noarch/usr/lib/systemd/system-preset/80-workstation.preset' (No such file or directory)directoryglib-compile-schemas /usr/share/glib-2.0/schemas &> /dev/null || :/bin/shutf-8?7zXZ !#,4]"k%4l< sL!.}+UM7}43AimFyn$bġt9"Ȕ0,"R{ɺO:,7Y9C=:e__c${~0y\\q(͖. a5r9 #ZJRS*G+^Zk@̋5#uVMQd+M14\+KȃzYnM@Iq״.r(Y\`Z0zr+Bx 0Hc2I9d>7VxIr*TGwU9#D1&\Vubjkꠠ+8C_L J78M%5:mI$H<[*mM7;uV@yĻQ9UF15=6\Pl|D? PkիKqtQߕ~\ULuN]no*3̚j0OLŻN4&KJ>Y:?[1D=Ģ1#AgDwˌ, l0$J%dzl ÝR EM^*w(QP5ֻ%PqIvNvS-{ҍTSjY[->vEH3sZ p 'cԃ?[ǚSRThxf߀PIkx 1<^ 0>5y(Kj,&(jy8Oat!/=M#c0*FP ] qp@ȒLqhUсd$D&%=\#z3E:n\@J?֬lw6ԯ+\b5)aKLBiX*D;ۺ:pj4Wj{g2Ǎ^Ϗw#1Rcv!Aw/¼Zxiod@mFwnnT_stY%u^: w$ϕ4G.@r6|מSSy:Z7堒344=CAȨ-٧ze+3q YZ