Remove auxarches macro
This commit does not change the generated RPM SPEC file in a material way: there are only whitespace and comment changes as a result.
This commit is contained in:
		
							parent
							
								
									eb8a860ab4
								
							
						
					
					
						commit
						0fb8a56d62
					
				
							
								
								
									
										49
									
								
								glibc.spec
									
									
									
									
									
								
							
							
						
						
									
										49
									
								
								glibc.spec
									
									
									
									
									
								
							| @ -54,12 +54,6 @@ | |||||||
| %undefine with_docs | %undefine with_docs | ||||||
| %undefine with_valgrind | %undefine with_valgrind | ||||||
| %endif | %endif | ||||||
| ############################################################################## |  | ||||||
| # Auxiliary arches are those arches that can be built in addition |  | ||||||
| # to the core supported arches. You either install an auxarch or |  | ||||||
| # you install the base arch, not both. You would do this in order |  | ||||||
| # to provide a more optimized version of the package for your arch. |  | ||||||
| %define auxarches athlon alphaev6 |  | ||||||
| 
 | 
 | ||||||
| # Only some architectures have static PIE support. | # Only some architectures have static PIE support. | ||||||
| %define pie_arches %{ix86} x86_64 | %define pie_arches %{ix86} x86_64 | ||||||
| @ -521,10 +515,7 @@ Supplements: (glibc and (]]..suppl..[[)) | |||||||
| 
 | 
 | ||||||
| The glibc-langpack-]]..lang..[[ package includes the basic information required | The glibc-langpack-]]..lang..[[ package includes the basic information required | ||||||
| to support the ]]..langname..[[ language in your applications. | to support the ]]..langname..[[ language in your applications. | ||||||
| %ifnarch %{auxarches} |  | ||||||
| %files -f langpack-]]..lang..[[.filelist langpack-]]..lang..[[ | %files -f langpack-]]..lang..[[.filelist langpack-]]..lang..[[ | ||||||
| 
 |  | ||||||
| %endif |  | ||||||
| ]])) | ]])) | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| @ -559,9 +550,7 @@ Requires: %{name}-common = %{version}-%{release} | |||||||
| This is a Meta package that is used to install minimal language packs. | This is a Meta package that is used to install minimal language packs. | ||||||
| This package ensures you can use C, POSIX, or C.UTF-8 locales, but | This package ensures you can use C, POSIX, or C.UTF-8 locales, but | ||||||
| nothing else. It is designed for assembling a minimal system. | nothing else. It is designed for assembling a minimal system. | ||||||
| %ifnarch %{auxarches} |  | ||||||
| %files minimal-langpack | %files minimal-langpack | ||||||
| %endif |  | ||||||
| 
 | 
 | ||||||
| ############################################################################## | ############################################################################## | ||||||
| # glibc "nscd" sub-package | # glibc "nscd" sub-package | ||||||
| @ -754,7 +743,7 @@ diff -u %{SOURCE11} localedata/SUPPORTED | |||||||
| # Build glibc... | # Build glibc... | ||||||
| ############################################################################## | ############################################################################## | ||||||
| %build | %build | ||||||
| # Log system information | # Log osystem information | ||||||
| uname -a | uname -a | ||||||
| LD_SHOW_AUXV=1 /bin/true | LD_SHOW_AUXV=1 /bin/true | ||||||
| cat /proc/cpuinfo | cat /proc/cpuinfo | ||||||
| @ -938,16 +927,12 @@ done | |||||||
| # Build and install: | # Build and install: | ||||||
| make -j1 install_root=%{glibc_sysroot} install -C build-%{target} | make -j1 install_root=%{glibc_sysroot} install -C build-%{target} | ||||||
| 
 | 
 | ||||||
| # If we are not building an auxiliary arch then install all of the supported |  | ||||||
| # locales. |  | ||||||
| %ifnarch %{auxarches} |  | ||||||
| pushd build-%{target} | pushd build-%{target} | ||||||
| # Do not use a parallel make here because the hardlink optimization in | # Do not use a parallel make here because the hardlink optimization in | ||||||
| # localedef is not fully reproducible when running concurrently. | # localedef is not fully reproducible when running concurrently. | ||||||
| make install_root=%{glibc_sysroot} \ | make install_root=%{glibc_sysroot} \ | ||||||
| 	install-locales -C ../localedata objdir=`pwd` | 	install-locales -C ../localedata objdir=`pwd` | ||||||
| popd | popd | ||||||
| %endif |  | ||||||
| 
 | 
 | ||||||
| # install_different: | # install_different: | ||||||
| #	Install all core libraries into DESTDIR/SUBDIR. Either the file is | #	Install all core libraries into DESTDIR/SUBDIR. Either the file is | ||||||
| @ -1058,7 +1043,6 @@ rm -f %{glibc_sysroot}%{_infodir}/libc.info* | |||||||
| # Create locale sub-package file lists | # Create locale sub-package file lists | ||||||
| ############################################################################## | ############################################################################## | ||||||
| 
 | 
 | ||||||
| %ifnarch %{auxarches} |  | ||||||
| olddir=`pwd` | olddir=`pwd` | ||||||
| pushd %{glibc_sysroot}%{_prefix}/lib/locale | pushd %{glibc_sysroot}%{_prefix}/lib/locale | ||||||
| rm -f locale-archive | rm -f locale-archive | ||||||
| @ -1094,7 +1078,6 @@ do | |||||||
| done | done | ||||||
| popd | popd | ||||||
| mv  %{glibc_sysroot}%{_prefix}/lib/locale/*.filelist . | mv  %{glibc_sysroot}%{_prefix}/lib/locale/*.filelist . | ||||||
| %endif |  | ||||||
| 
 | 
 | ||||||
| ############################################################################## | ############################################################################## | ||||||
| # Install configuration files for services | # Install configuration files for services | ||||||
| @ -1102,25 +1085,21 @@ mv  %{glibc_sysroot}%{_prefix}/lib/locale/*.filelist . | |||||||
| 
 | 
 | ||||||
| install -p -m 644 nss/nsswitch.conf %{glibc_sysroot}/etc/nsswitch.conf | install -p -m 644 nss/nsswitch.conf %{glibc_sysroot}/etc/nsswitch.conf | ||||||
| 
 | 
 | ||||||
| %ifnarch %{auxarches} |  | ||||||
| # This is for ncsd - in glibc 2.2 | # This is for ncsd - in glibc 2.2 | ||||||
| install -m 644 nscd/nscd.conf %{glibc_sysroot}/etc | install -m 644 nscd/nscd.conf %{glibc_sysroot}/etc | ||||||
| mkdir -p %{glibc_sysroot}%{_tmpfilesdir} | mkdir -p %{glibc_sysroot}%{_tmpfilesdir} | ||||||
| install -m 644 %{SOURCE1} %{buildroot}%{_tmpfilesdir} | install -m 644 %{SOURCE1} %{buildroot}%{_tmpfilesdir} | ||||||
| mkdir -p %{glibc_sysroot}/lib/systemd/system | mkdir -p %{glibc_sysroot}/lib/systemd/system | ||||||
| install -m 644 nscd/nscd.service nscd/nscd.socket %{glibc_sysroot}/lib/systemd/system | install -m 644 nscd/nscd.service nscd/nscd.socket %{glibc_sysroot}/lib/systemd/system | ||||||
| %endif |  | ||||||
| 
 | 
 | ||||||
| # Include ld.so.conf | # Include ld.so.conf | ||||||
| echo 'include ld.so.conf.d/*.conf' > %{glibc_sysroot}/etc/ld.so.conf | echo 'include ld.so.conf.d/*.conf' > %{glibc_sysroot}/etc/ld.so.conf | ||||||
| truncate -s 0 %{glibc_sysroot}/etc/ld.so.cache | truncate -s 0 %{glibc_sysroot}/etc/ld.so.cache | ||||||
| chmod 644 %{glibc_sysroot}/etc/ld.so.conf | chmod 644 %{glibc_sysroot}/etc/ld.so.conf | ||||||
| mkdir -p %{glibc_sysroot}/etc/ld.so.conf.d | mkdir -p %{glibc_sysroot}/etc/ld.so.conf.d | ||||||
| %ifnarch %{auxarches} |  | ||||||
| mkdir -p %{glibc_sysroot}/etc/sysconfig | mkdir -p %{glibc_sysroot}/etc/sysconfig | ||||||
| truncate -s 0 %{glibc_sysroot}/etc/sysconfig/nscd | truncate -s 0 %{glibc_sysroot}/etc/sysconfig/nscd | ||||||
| truncate -s 0 %{glibc_sysroot}/etc/gai.conf | truncate -s 0 %{glibc_sysroot}/etc/gai.conf | ||||||
| %endif |  | ||||||
| 
 | 
 | ||||||
| # Include %{_libdir}/gconv/gconv-modules.cache | # Include %{_libdir}/gconv/gconv-modules.cache | ||||||
| truncate -s 0 %{glibc_sysroot}%{_libdir}/gconv/gconv-modules.cache | truncate -s 0 %{glibc_sysroot}%{_libdir}/gconv/gconv-modules.cache | ||||||
| @ -1201,11 +1180,9 @@ popd | |||||||
| rm -f %{glibc_sysroot}%{_infodir}/dir | rm -f %{glibc_sysroot}%{_infodir}/dir | ||||||
| %endif | %endif | ||||||
| 
 | 
 | ||||||
| %ifnarch %{auxarches} |  | ||||||
| mkdir -p %{glibc_sysroot}/var/{db,run}/nscd | mkdir -p %{glibc_sysroot}/var/{db,run}/nscd | ||||||
| touch %{glibc_sysroot}/var/{db,run}/nscd/{passwd,group,hosts,services} | touch %{glibc_sysroot}/var/{db,run}/nscd/{passwd,group,hosts,services} | ||||||
| touch %{glibc_sysroot}/var/run/nscd/{socket,nscd.pid} | touch %{glibc_sysroot}/var/run/nscd/{socket,nscd.pid} | ||||||
| %endif |  | ||||||
| 
 | 
 | ||||||
| # Move libpcprofile.so and libmemusage.so into the proper library directory. | # Move libpcprofile.so and libmemusage.so into the proper library directory. | ||||||
| # They can be moved without any real consequences because users would not use | # They can be moved without any real consequences because users would not use | ||||||
| @ -1256,9 +1233,7 @@ ar cr %{glibc_sysroot}%{_prefix}/%{_lib}/libpthread_nonshared.a | |||||||
| 
 | 
 | ||||||
| ############################################################################## | ############################################################################## | ||||||
| # Beyond this point in the install process we no longer modify the set of | # Beyond this point in the install process we no longer modify the set of | ||||||
| # installed files, with one exception, for auxarches we cleanup the file list | # installed files. | ||||||
| # at the end and remove files which we don't intend to ship. We need the file |  | ||||||
| # list to effect a proper cleanup, and so it happens last. |  | ||||||
| ############################################################################## | ############################################################################## | ||||||
| 
 | 
 | ||||||
| ############################################################################## | ############################################################################## | ||||||
| @ -1662,22 +1637,6 @@ exclude_common_dirs debuginfo.filelist | |||||||
| 
 | 
 | ||||||
| %endif | %endif | ||||||
| 
 | 
 | ||||||
| ############################################################################## |  | ||||||
| # Delete files that we do not intended to ship with the auxarch. |  | ||||||
| # This is the only place where we touch the installed files after generating |  | ||||||
| # the file lists. |  | ||||||
| ############################################################################## |  | ||||||
| %ifarch %{auxarches} |  | ||||||
| echo Cutting down the list of unpackaged files |  | ||||||
| sed -e '/%%dir/d;/%%config/d;/%%verify/d;s/%%lang([^)]*) //;s#^/*##' \ |  | ||||||
| 	common.filelist devel.filelist static.filelist headers.filelist \ |  | ||||||
| 	utils.filelist nscd.filelist \ |  | ||||||
| %ifarch %{debuginfocommonarches} |  | ||||||
| 	debuginfocommon.filelist \ |  | ||||||
| %endif |  | ||||||
| 	| (cd %{glibc_sysroot}; xargs --no-run-if-empty rm -f 2> /dev/null || :) |  | ||||||
| %endif |  | ||||||
| 
 |  | ||||||
| ############################################################################## | ############################################################################## | ||||||
| # Run the glibc testsuite | # Run the glibc testsuite | ||||||
| ############################################################################## | ############################################################################## | ||||||
| @ -1977,7 +1936,6 @@ fi | |||||||
| %{!?_licensedir:%global license %%doc} | %{!?_licensedir:%global license %%doc} | ||||||
| %license COPYING COPYING.LIB LICENSES | %license COPYING COPYING.LIB LICENSES | ||||||
| 
 | 
 | ||||||
| %ifnarch %{auxarches} |  | ||||||
| %files -f common.filelist common | %files -f common.filelist common | ||||||
| %dir %{_prefix}/lib/locale | %dir %{_prefix}/lib/locale | ||||||
| %dir %{_prefix}/lib/locale/C.utf8 | %dir %{_prefix}/lib/locale/C.utf8 | ||||||
| @ -2024,7 +1982,6 @@ fi | |||||||
| %attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/db/nscd/hosts | %attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/db/nscd/hosts | ||||||
| %attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/db/nscd/services | %attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /var/db/nscd/services | ||||||
| %ghost %config(missingok,noreplace) /etc/sysconfig/nscd | %ghost %config(missingok,noreplace) /etc/sysconfig/nscd | ||||||
| %endif |  | ||||||
| 
 | 
 | ||||||
| %files -f nss_db.filelist -n nss_db | %files -f nss_db.filelist -n nss_db | ||||||
| /var/db/Makefile | /var/db/Makefile | ||||||
| @ -2038,11 +1995,9 @@ fi | |||||||
| %if 0%{?_enable_debug_packages} | %if 0%{?_enable_debug_packages} | ||||||
| %files debuginfo -f debuginfo.filelist | %files debuginfo -f debuginfo.filelist | ||||||
| %ifarch %{debuginfocommonarches} | %ifarch %{debuginfocommonarches} | ||||||
| %ifnarch %{auxarches} |  | ||||||
| %files debuginfo-common -f debuginfocommon.filelist | %files debuginfo-common -f debuginfocommon.filelist | ||||||
| %endif | %endif | ||||||
| %endif | %endif | ||||||
| %endif |  | ||||||
| 
 | 
 | ||||||
| %if %{with benchtests} | %if %{with benchtests} | ||||||
| %files benchtests -f benchtests.filelist | %files benchtests -f benchtests.filelist | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user