diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2bef064 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/xauth-1.1.tar.bz2 diff --git a/.xorg-x11-xauth.metadata b/.xorg-x11-xauth.metadata new file mode 100644 index 0000000..6d87922 --- /dev/null +++ b/.xorg-x11-xauth.metadata @@ -0,0 +1 @@ +16180e36d75a23cb182cb91e78f24273f1a63967 SOURCES/xauth-1.1.tar.bz2 diff --git a/SOURCES/ISSOCK.patch b/SOURCES/ISSOCK.patch new file mode 100644 index 0000000..88a296e --- /dev/null +++ b/SOURCES/ISSOCK.patch @@ -0,0 +1,21 @@ +diff -r -u xauth-1.0.10-orig/gethost.c xauth-1.0.10/gethost.c +--- xauth-1.0.10-orig/gethost.c 2017-01-29 22:00:12.000000000 +0100 ++++ xauth-1.0.10/gethost.c 2020-08-20 16:18:08.399196240 +0200 +@@ -202,14 +202,14 @@ + strncpy(path, fulldpyname, sizeof(path)); + path[sizeof(path) - 1] = '\0'; + #endif +- if (0 == stat(path, &sbuf)) { ++ if (0 == stat(path, &sbuf) && S_ISSOCK(sbuf.st_mode) ) { + is_path_to_socket = 1; + } else { + char *dot = strrchr(path, '.'); + if (dot) { + *dot = '\0'; + /* screen = atoi(dot + 1); */ +- if (0 == stat(path, &sbuf)) { ++ if (0 == stat(path, &sbuf) && S_ISSOCK(sbuf.st_mode)) { + is_path_to_socket = 1; + } + } +Nur in xauth-1.0.10: gethost.c~. diff --git a/SPECS/xorg-x11-xauth.spec b/SPECS/xorg-x11-xauth.spec new file mode 100644 index 0000000..cca1831 --- /dev/null +++ b/SPECS/xorg-x11-xauth.spec @@ -0,0 +1,220 @@ +%global pkgname xauth + +Summary: X.Org X11 X authority utilities +Name: xorg-x11-%{pkgname} +Version: 1.1 +Release: 10%{?dist} +# NOTE: Remove Epoch line if package gets renamed +Epoch: 1 +License: MIT +URL: https://www.x.org + +Source0: https://www.x.org/pub/individual/app/%{pkgname}-%{version}.tar.bz2 +Patch0: ISSOCK.patch + +BuildRequires: make +BuildRequires: pkgconfig automake gcc +BuildRequires: libX11-devel +BuildRequires: libXau-devel +BuildRequires: libXext-devel +BuildRequires: libXmu-devel +%if 0 +BuildRequires: cmdtest +BuildRequires: python2-markdown +%endif + +Provides: xauth + +%description +xauth is used to edit and display the authorization information +used in connecting to an X server. + +%prep +%setup -q -n %{pkgname}-%{version} +%patch0 -p1 + +%build +%configure +%make_build + +%install +%make_install + +%if 0 +%check +make check || cat tests/test-suite.log +%endif + +%files +%doc COPYING README.md +%{_bindir}/xauth +%{_mandir}/man1/xauth.1* + +%changelog +* Tue Aug 10 2021 Mohan Boddu - 1:1.1-10 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 1:1.1-9 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Thu Jan 28 2021 Fedora Release Engineering - 1:1.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Nov 05 2020 Peter Hutterer 1:1.1-7 +- Add BuildRequires for make + +* Thu Aug 20 2020 Tilmann Bubeck - 1:1.1-6 +- Fix RHBZ #1870201 + +* Wed Jul 29 2020 Fedora Release Engineering - 1:1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 14 2020 Tom Stellard - 1:1.1-4 +- Use make macros +- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro + +* Fri Jan 31 2020 Fedora Release Engineering - 1:1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Jul 27 2019 Fedora Release Engineering - 1:1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jul 11 2019 Adam Jackson - 1:1.1-1 +- xauth 1.1 + +* Sun Feb 03 2019 Fedora Release Engineering - 1:1.0.9-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 1:1.0.9-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Mar 19 2018 Adam Jackson - 1.0.9-12 +- Nerf the python-related BuildRequires. They're only needed for 'make check', + and cmdtest is not yet a python3 package. + +* Mon Feb 19 2018 Peter Hutterer 1:1.0.9-11 +- Add BR for automake and gcc + +* Fri Feb 09 2018 Fedora Release Engineering - 1:1.0.9-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Tue Aug 08 2017 Adam Jackson - 1.0.9-9 +- BuildRequires: python-markdown to fix 'make check' + +* Thu Aug 03 2017 Fedora Release Engineering - 1:1.0.9-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1:1.0.9-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1:1.0.9-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Feb 05 2016 Fedora Release Engineering - 1:1.0.9-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jan 20 2016 Peter Hutterer +- s/define/global/ + +* Fri Jun 19 2015 Fedora Release Engineering - 1:1.0.9-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Feb 21 2015 Till Maas - 1:1.0.9-3 +- Rebuilt for Fedora 23 Change + https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code + +* Mon Aug 18 2014 Fedora Release Engineering - 1:1.0.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Thu Jul 3 2014 Hans de Goede - 1:1.0.9-1 +- Rebase to 1.0.9 (rhbz#1018603) +- Fixes ssh -Y failure from remote GDM session (rhbz#505545) + +* Sun Jun 08 2014 Fedora Release Engineering - 1:1.0.7-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 1:1.0.7-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 15 2013 Fedora Release Engineering - 1:1.0.7-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Jul 22 2012 Fedora Release Engineering - 1:1.0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Wed Apr 11 2012 Adam Jackson 1.0.7-1 +- xauth 1.0.7 (#806308) + +* Sat Jan 14 2012 Fedora Release Engineering - 1:1.0.6-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Aug 11 2011 Matěj Cepl - 1.0.6-2 +- Removed mkxauth with an extreme prejudice. + +* Tue Jun 21 2011 Adam Jackson 1.0.6-1 +- xauth 1.0.6 + +* Tue Feb 08 2011 Fedora Release Engineering - 1:1.0.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Aug 30 2010 Adam Jackson 1.0.2-8 +- Merge review cleanups (#226648) + +* Mon Jul 27 2009 Fedora Release Engineering - 1:1.0.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 1:1.0.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Jul 15 2008 Adam Jackson 1.0.2-5 +- Fix license tag + +* Wed Feb 20 2008 Fedora Release Engineering - 1:1.0.2-4 +- Autorebuild for GCC 4.3 + +* Tue Aug 21 2007 Adam Jackson - 1:1.0.2-3 +- Rebuild for build id + +* Sat Apr 21 2007 Matthias Clasen 1:1.0.2-2 +- Don't install INSTALL + +* Fri Jan 05 2007 Adam Jackson 1:1.0.2-1.fc7 +- Update to 1.0.2 + +* Wed Jul 12 2006 Jesse Keating - sh: line 0: fg: no job control +- rebuild + +* Wed Jun 21 2006 Mike A. Harris 1:1.0.1-2 +- Add missing documentation to doc manifest. +- Use "make install" instead of makeinstall macro. + +* Fri Feb 10 2006 Jesse Keating 1:1.0.1-1.2 +- bump again for double-long bug on ppc(64) + +* Tue Feb 07 2006 Jesse Keating 1:1.0.1-1.1 +- rebuilt for new gcc4.1 snapshot and glibc changes + +* Wed Jan 18 2006 Mike A. Harris 1:1.0.1-1 +- Updated to xauth 1.0.1 from X11R7.0 + +* Fri Dec 16 2005 Mike A. Harris 1:1.0.0-1 +- Updated to xauth 1.0.0 from X11R7 RC4 +- Changed manpage dir from man1x to man1 to match upstream default. + +* Fri Nov 11 2005 Mike A. Harris 1:0.99.2-1 +- Updated to xauth 0.99.2 from X11R7 RC2 +- Added Epoch 1 to package, to be able to change the version number from the + X11R7 release number to the actual twm version. +- Rename mkxauth manpage to mkxauth.1x + +* Mon Oct 31 2005 Mike A. Harris 6.99.99.0-3 +- Updated to xauth 0.99.1 from X11R7 RC1 +- Change manpage location to 'man1x' in file manifest + +* Wed Aug 24 2005 Mike A. Harris 6.99.99.0-2 +- Use Fedora-Extras style BuildRoot tag +- Update BuildRequires to use new library package names + +* Wed Aug 24 2005 Mike A. Harris 6.99.99.0-1 +- Initial build.