Projects
home:cf-zhao:branches:Mega:23.03
Configuration
Project Config
Sign Up
Log In
Username
Password
Overview
Repositories
Monitor
Requests
Users
Subprojects
Project Config
Attributes
Meta
Status
Pulse
Staging
Project Configuration of home:cf-zhao:branches:Mega:23.03
%ifarch riscv64 #Constraint: sandbox lxc Constraint: sandbox docker #Constraint: sandbox qemu %endif %ifarch x86_64 Constraint: sandbox chroot %endif %ifarch aarch64 Constraint: sandbox chroot %endif Preinstall: strace ############## Preinstall ######################## Preinstall: audit-libs ncurses-libs libblkid libfdisk libmount libsmartcols libuuid libatomic Preinstall: libcap-ng iptables-libs libpcap hostname shadow kmod-libs p11-kit Preinstall: acl attr bash coreutils diffutils Preinstall: grep dbus lvm2 sudo kernel-headers Preinstall: libgcc m4 ncurses pam nspr python3-ldb python3-ldb-devel Preinstall: popt readline sed tar zlib Preinstall: pcre pcre-devel pcre2 info libselinux sqlite Preinstall: findutils xz zstd Preinstall: libcap libdb elfutils python3-libxml2 efibootmgr Preinstall: chkconfig util-linux lua dbus dbus-libs Preinstall: libxcrypt libacl systemd-libs rpm rpm-libs openssl-libs xz-libs perl perl-libs Preinstall: nss nss-util nss-softokn audit git Preinstall: perl-Exporter perl-Data-Dumper compat-openssl11-libs file device-mapper Preinstall: perl-constant perl-Getopt-Long perl-Carp perl-Digest-MD5 Preinstall: systemd libgcrypt-devel libgcrypt libgpg-error cryptsetup libsemanage Preinstall: glib2 dnf cmake copy-jdk-configs libffi libffi-devel gobject-introspection iputils iproute net-tools Preinstall: elfutils-extra ima-evm-utils-libs guile-devel libseccomp ############## Preinstall ######################## # Ignore: mvn(jline:jline) # Ignore: jline %ifarch x86_64 Ignore: glibc-debuginfo Substitute: glibc-debuginfo %endif %ifarch riscv64 Ignore: libasan Substitute: libasan Ignore: libquadmath-devel Substitute: libquadmath-devel Ignore: libquadmath-static Substitute: libquadmath-static Ignore: libitm-devel Substitute: libitm-devel Substitute: llvm15 llvm Substitute: llvm15-devel llvm-devel Substitute: llvm15-googletest llvm-googletest Substitute: llvm15-test llvm-test %endif # have choice for libLLVM-15.so()(64bit) needed by llvm-devel: llvm-libs llvm15-libs Prefer: llvm-libs clang-libs Preinstall: clang llvm compiler-rt llvm-googletest gcc libgcc Macros: %source_date_epoch_from_changelog Y %clamp_mtime_to_source_date_epoch Y %use_source_date_epoch_as_buildtime Y %glibc_abort_after_test_fail 1 %_without_storage_zfs 1 %dist .mg2303 #%define llvm %_lto_cflags %{nil} %debug_package %{nil} ### fix Unknown DWARF DW_FORM_0x25 ### # debugedit的bugzilla建议添加flags来重新使用DWARF4 # https://sourceware.org/bugzilla/show_bug.cgi?id=28728 # GDB无法识别DWARF5 # https://discourse.llvm.org/t/gdb-10-1-cant-read-clangs-dwarf-v5/6035 # binutils无法识别DWARF5 # https://sourceware.org/bugzilla/show_bug.cgi?id=28981 # %__global_compiler_flags %{?user_compiler_flags} -gdwarf-4 -fdebug-default-version=4 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches %{_hardened_cflags} # https://perldoc.perl.org/ExtUtils::MakeMaker#PERL_MM_OPT # 直接设置CCFLAGS会覆盖ExtUtils::MakeMaker获取的环境变量,需要更好的flags添加方式 #%__spec_build_pre %{___build_pre} \ # %{?user_build_pre} \ # export PERL_MM_OPT='CCFLAGS="-gdwarf-4 -fdebug-default-version=4"' ###################################### # -Wno-error=deprecated-non-prototype %toolchain clang %__toolchain_glibc gcc %__toolchain_gcc gcc #%__toolchain_clang15 gcc #%__toolchain_clang gcc #%__toolchain_llvm gcc #%__toolchain_llvm12 gcc %__toolchain_unzip gcc #%__toolchain_ceph gcc %__toolchain_libtool gcc # %__toolchain_python3 gcc %__toolchain_openjdk-1.8.0 gcc #%__toolchain_kernel gcc %__toolchain_liblockfile gcc %package_toolchain %{expand:%%{__toolchain_%{name}}} %toolchain %["%{package_toolchain}" == "gcc" ? "gcc" : "clang" ] %_distro_extra_cflags %["%{package_toolchain}" == "clang" ? "-Wno-error=int-conversion -Wno-error=unused-but-set-variable -gdwarf-4 -Wno-error=strict-prototypes" : "" ] %_distro_extra_cxxflags %["%{package_toolchain}" == "clang" ? "-Wno-error=int-conversion -Wno-error=unused-but-set-variable -gdwarf-4 -Wno-error=strict-prototypes" : "" ] %__spec_check_pre %{___build_pre} \ case %{name} in \ iproute | libgusb | libnetfilter_conntrack | numactl | libffi | systemd | coreutils | NetworkManager | procps-ng | sudo | cpio | util-linux | grep | libsigsegv | findutils | libseccomp | libaio) \ : disable check, iproute and libnetfilter_conntrack need root and missed Kconfig, libgusb need USB device \ : numactl need 5.12 kernel NUMA \ exit 0 ;; \ libreport | libaio | libmodulemd | m4 | libuser | vim | tar ) \ : disable for riscv64 \ exit 0 ;; \ llvm | clang | lld) \ : disable for riscv64 \ exit 0 ;; \ esac %__brp_strip /usr/lib/rpm/brp-strip %{__strip} || echo "skip strip" :Macros
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2