Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 155208 Details for
Bug 239745
symlink from /etc/alternatives/emacs to /usr/bin/emacs is not created
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
spec patch to implement %ghost /usr/bin/emacs and scriptlet conditionals
emacs-22.0.99-2-alternatives.patch (text/plain), 2.37 KB, created by
Charles R. Anderson
on 2007-05-22 22:29:06 UTC
(
hide
)
Description:
spec patch to implement %ghost /usr/bin/emacs and scriptlet conditionals
Filename:
MIME Type:
Creator:
Charles R. Anderson
Created:
2007-05-22 22:29:06 UTC
Size:
2.37 KB
patch
obsolete
>diff -ub emacs-22.0.99-2.fc7/emacs.spec emacs-22.0.99-2.0.1.fc7/emacs.spec >--- emacs-22.0.99-2.fc7/emacs.spec 2007-05-13 18:20:50.000000000 -0400 >+++ emacs-22.0.99-2.0.1.fc7/emacs.spec 2007-05-22 18:10:41.000000000 -0400 >@@ -141,6 +141,9 @@ > > # alternatives will create a symlink to /usr/bin/emacs-22.0.99 > rm %{buildroot}%{_bindir}/emacs >+# ghost install /usr/bin/emacs so upgrades work correctly where the old >+# package owned the /usr/bin/emacs symlink, and the new one uses alternatives. >+touch %{buildroot}%{_bindir}/emacs > > mv %{buildroot}%{_bindir}/{etags,etags.emacs} > mv %{buildroot}%{_mandir}/man1/{ctags.1,gctags.1} >@@ -184,16 +187,26 @@ > %define info_files ada-mode autotype calc ccmode cl dired-x ebrowse ediff efaq eintr elisp0 elisp1 elisp emacs emacs-mime emacs-xtra erc eshell eudc flymake forms gnus idlwave info message mh-e newsticker org pcl-cvs pgg rcirc reftex sc ses sieve smtpmail speedbar tramp url viper vip widget woman > > %post >+rm -f /usr/bin/emacs || : > alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version} 80 >+exit 0 > > %preun >-alternatives --remove emacs %{_bindir}/emacs-%{version} >+if [ $1 = 0 ]; then >+ alternatives --remove emacs %{_bindir}/emacs-%{version} >+fi >+exit 0 > > %post nox >+rm -f /usr/bin/emacs || : > alternatives --install %{_bindir}/emacs emacs %{_bindir}/emacs-%{version}-nox 70 >+exit 0 > > %preun nox >-alternatives --remove emacs %{_bindir}/emacs-%{version}-nox >+if [ $1 = 0 ]; then >+ alternatives --remove emacs %{_bindir}/emacs-%{version}-nox >+fi >+exit 0 > > %post common > for f in %{info_files}; do >@@ -214,15 +227,18 @@ > %defattr(-,root,root) > %{_bindir}/emacs-%{version} > %{_datadir}/applications/gnu-emacs.desktop >+%ghost %{_bindir}/emacs > > %files nox > %defattr(-,root,root) > %{_bindir}/emacs-%{version}-nox >+%ghost %{_bindir}/emacs > > %files -f common-filelist common > %defattr(-,root,root) > %config(noreplace) %{_sysconfdir}/skel/.emacs > %doc etc/NEWS BUGS README >+%exclude %{_bindir}/emacs > %exclude %{_bindir}/emacs-%{version} > %exclude %{_bindir}/emacs-%{version}-nox > %{_bindir}/* >@@ -243,6 +259,10 @@ > %dir %{_datadir}/emacs/%{version} > > %changelog >+* Tue May 22 2007 Charles R. Anderson <cra@wpi.edu> >+- ghost /usr/bin/emacs and conditionalize pre/post scriptlet invocation of >+ alternatives. >+ > * Sun May 13 2007 Chip Coldwell <coldwell@redhat.com> - 22.0.99-2 > - prevent mmapped pages during dumping (Ulrich Drepper) > - Resolves: bz239344
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 239745
: 155208