*: no longer require -fcommon

This commit is contained in:
Đoàn Trần Công Danh 2024-06-12 20:34:50 +07:00
parent f2ca88c445
commit c496f654fe
38 changed files with 8 additions and 76 deletions

View File

@ -38,7 +38,6 @@ if [ -n "$CROSS_BUILD" ]; then
configure_args+=" -DOCPN_BUILD_TEST=OFF"
fi
CFLAGS="-fcommon"
CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
post_install() {

View File

@ -17,7 +17,6 @@ distfiles="http://twilightedge.com/downloads/ReDoomEd.Sources.${version%.*}-${ve
checksum=256e4e63a6f109281673fd6fb1a11d3872aea6064ae8e104cd1238c9a7c21fa5
repository=nonfree
restricted=yes
make_build_args=OBJCFLAGS=-fcommon
if [ -e /usr/share/GNUstep/Makefiles/GNUstep.sh ]; then
. /usr/share/GNUstep/Makefiles/GNUstep.sh

View File

@ -17,8 +17,6 @@ lib32disabled=yes
# Build system look only under / for headers and libraries. Breaks cross.
nocross=yes
CFLAGS="-fcommon"
do_configure() {
sed -i 's:^TEST=="/lib/udev/usb-db", IMPORT{program}="usb-db %p":IMPORT{builtin}="hwdb --subsystem=usb":' usb/55-Argyll.rules
}

View File

@ -11,5 +11,3 @@ license="GPL-2.0-or-later"
homepage="https://wiki.gnome.org/Apps/Atomix"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=c8849317688d87da734c9063035631052007f2a8799b6c6cc915265880b55fb4
CFLAGS="-fcommon"

View File

@ -4,6 +4,7 @@ version=6.1
revision=3
build_style=gnu-configure
configure_args="--enable-libz"
hostmakedepends="automake"
makedepends="zlib-devel"
short_desc="Simple FTP server"
maintainer="Norbert Vegh <vegh@norvegh.com>"
@ -16,11 +17,14 @@ if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
makedepends+=" libxcrypt-devel"
fi
CFLAGS="-fcommon"
make_build_args=V=1
make_dirs="/var/run/bftpd 0755 root root"
conf_files="/etc/bftpd.conf"
pre_configure() {
autoreconf -fi
}
post_install() {
vsv bftpd
}

View File

@ -16,8 +16,6 @@ checksum=48e85c622de164756c132ea77ad1a8a95cc9fd0137ffd0d882746589ce75c75d
conf_files="/etc/bird.conf"
system_accounts="_bird"
CFLAGS="-fcommon"
post_install() {
vsv bird
}

View File

@ -18,8 +18,6 @@ checksum=d9a878d9fd7f18842c9c8ed83bc96cab684753c90f2751d575a3cdd776ec78a5
system_accounts="_bluez_alsa"
_bluez_alsa_groups="audio"
CFLAGS="-fcommon"
if [ "$XBPS_TARGET_ENDIAN" = "le" ]; then
makedepends+=" ldacBT-devel"
configure_args+=" --enable-ldac"

View File

@ -15,8 +15,6 @@ homepage="https://gitlab.freedesktop.org/bolt/bolt"
distfiles="https://gitlab.freedesktop.org/bolt/bolt/-/archive/${version}/bolt-${version}.tar.gz"
checksum=478b0a71da5587c0e142a3b91e821a7d857260647494fa9544d2d8df05d560f6
CFLAGS="-fcommon"
post_install() {
vsv boltd
}

View File

@ -11,8 +11,6 @@ homepage="https://github.com/baskerville/bspwm"
distfiles="https://github.com/baskerville/bspwm/archive/${version}.tar.gz"
checksum=0d0f5e465b9c27a5c2143c86189392fa297fad55253b9ed8f6854473d3928f8f
CFLAGS="-fcommon"
post_install() {
vlicense LICENSE
}

View File

@ -9,7 +9,6 @@ license="MIT"
homepage="https://github.com/posva/catimg"
distfiles="https://github.com/posva/catimg/archive/${version}.tar.gz"
checksum=3a6450316ff62fb07c3facb47ea208bf98f62abd02783e88c56f2a6508035139
CFLAGS="-fcommon"
post_install() {
vlicense LICENSE

View File

@ -5,7 +5,7 @@ revision=2
build_wrksrc="linux"
build_style=gnu-configure
configure_args="--enable-ocr --enable-hardsubx"
hostmakedepends="automake pkg-config"
hostmakedepends="automake pkg-config tesseract-ocr-devel"
makedepends="leptonica-devel tesseract-ocr-devel ffmpeg-devel"
short_desc="Extract subtitles from video streams"
maintainer="newbluemoon <blaumolch@mailbox.org>"
@ -14,11 +14,7 @@ homepage="https://www.ccextractor.org/"
changelog="https://raw.githubusercontent.com/CCExtractor/ccextractor/master/docs/CHANGES.TXT"
distfiles="https://github.com/CCExtractor/${pkgname}/archive/v${version}.tar.gz"
checksum=0e66d3e360db1b02a88271af11313ca4c9bbda1b03728e264a44c4c9f77192e3
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/tesseract -DPNG_POWERPC_VSX_OPT=0 -fcommon"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" tesseract-ocr-devel"
fi
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/tesseract -DPNG_POWERPC_VSX_OPT=0"
pre_configure() {
vsed -i configure.ac \

View File

@ -12,5 +12,3 @@ license="GPL-2.0-or-later"
homepage="http://cdemu.sourceforge.net"
distfiles="${SOURCEFORGE_SITE}/cdemu/cdemu-daemon-${version}.tar.xz"
checksum=a6e404e3ef75c6146e36354f65880dfd63b4b8ef1f54039dc5058e190f857d8f
CFLAGS="-fcommon"

View File

@ -18,8 +18,6 @@ distfiles="https://github.com/cxong/cdogs-sdl/archive/${version}.tar.gz"
checksum=3b863a092b23da8b210383831ff490a10dd6fda77b997fe2bf39cedcfa0a8937
replaces="cdogs-sdl-data<=0.7.3"
CFLAGS="-fcommon"
pre_configure() {
vsed -i CMakeLists.txt -e "s; -Werror;;"
}

View File

@ -15,8 +15,6 @@ homepage="https://github.com/ckb-next/ckb-next"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=dd7c9a30ce7bf4fafcdfff974c519b2b3d2ff888c99d3255a6e0194ece5056f4
CFLAGS="-fcommon"
post_install() {
vsv ckb-next-daemon
}

View File

@ -11,5 +11,3 @@ license="GPL-3.0-or-later"
homepage="http://www.gnu.org/software/cpio/"
distfiles="${GNU_SITE}/cpio/cpio-${version}.tar.bz2"
checksum=937610b97c329a1ec9268553fb780037bcfff0dcffe9725ebc4fd9c1aa9075db
CFLAGS="-fcommon"

View File

@ -12,8 +12,6 @@ homepage="https://github.com/fabiangreffrath/crispy-doom"
distfiles="https://github.com/fabiangreffrath/crispy-doom/archive/crispy-doom-${version}.tar.gz"
checksum=2b85649c615efeac7573883370e9434255af301222b323120692cb9649b7f420
CFLAGS="-fcommon"
pre_configure() {
autoreconf -fi
}

View File

@ -19,8 +19,7 @@ homepage="https://csound.com/"
distfiles="https://github.com/csound/csound/archive/${version}.tar.gz"
checksum=b84be8237fa9258ef60fdddf36fae27b20c11665811bf5ed12540da9a9a4414e
CFLAGS="-fcommon"
CXXFLAGS="-Wno-error -fcommon"
CXXFLAGS="-Wno-error"
case $XBPS_TARGET_MACHINE in
*-musl) makedepends+=" libexecinfo-devel";;

View File

@ -18,8 +18,6 @@ if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" espeak-ng"
fi
CFLAGS="-fcommon"
pre_configure() {
./autogen.sh
}

View File

@ -16,8 +16,6 @@ distfiles="https://github.com/Ettercap/ettercap/archive/v${version}.tar.gz"
checksum=d0c3ef88dfc284b61d3d5b64d946c1160fd04276b448519c1ae4438a9cdffaf3
lib32disabled=yes
CFLAGS="-fcommon"
post_extract() {
rm -rf bundled_deps
}

View File

@ -18,8 +18,6 @@ if [ "$CROSS_BUILD" ]; then
}
fi
CFLAGS="-fcommon"
post_install() {
# create symlinks for compatibility
vmkdir usr/include/gdbm

View File

@ -14,5 +14,3 @@ homepage="https://www.gnu.org/software/global/"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=9c3730bd9e975d94231f3402d5526b79c0b23cc665d624c9829c948dfad37b83
python_version=3
CFLAGS="-fcommon"

View File

@ -41,8 +41,6 @@ build_options="gir gme wayland"
build_options_default="gir wayland"
desc_option_gme="Build with Game Music Emulator support"
CFLAGS="-fcommon"
case "$XBPS_TARGET_MACHINE" in
mips*) ;; # libgme cannot be built for mips*
*) build_options_default+=" gme" ;;

View File

@ -11,8 +11,6 @@ homepage="https://www.hebcal.com/"
distfiles="https://github.com/hebcal/hebcal/archive/v${version}.tar.gz"
checksum=6295bc183d8a9694f2546100909fb0b1943f0acc55c9743937f435f17d47ddbc
CFLAGS="-fcommon"
pre_configure() {
autoreconf -fi
# aclocal && autoconf && automake --foreign --add-missing

View File

@ -46,9 +46,6 @@ pre_configure() {
# remove option not supported by clang
CFLAGS=${CFLAGS/-fstack-clash-protection/}
CXXFLAGS=${CXXFLAGS/-fstack-clash-protection/}
# prevent multiple definitions
CFLAGS+=" -fcommon"
CXXFLAGS+=" -fcommon"
fi
}

View File

@ -12,8 +12,6 @@ homepage="http://www.heyu.org"
distfiles="https://github.com/HeyuX10Automation/heyu/archive/v${version}.tar.gz"
checksum=0c3435ea9cd57cd78c29047b9c961f4bfbec39f42055c9949acd10dd9853b628
CFLAGS="-fcommon"
pre_configure() {
sed -i 's:local/::' Configure
sed -i 's:/man:/share/man:' Configure

View File

@ -15,8 +15,6 @@ changelog="https://raw.githubusercontent.com/i3/i3lock/main/CHANGELOG"
distfiles="https://i3wm.org/i3lock/i3lock-${version}.tar.xz"
checksum=5711ae5255e82b1dc8d8b4c035c520230921aba7ceee23d66f79765b21a84baa
CFLAGS="-fcommon"
pre_build() {
vsed -i 's:login:system-auth:' pam/i3lock
}

View File

@ -12,4 +12,3 @@ license="GPL-3.0-only"
homepage="https://rime.im/"
distfiles="https://github.com/rime/ibus-rime/archive/${version}.tar.gz"
checksum=e633bde71055b9298837c7fdd73c5694594633e08bf58b6e5cf17bac4959dacb
CFLAGS="-fcommon"

View File

@ -12,8 +12,6 @@ homepage="http://kernel.org/pub/linux/utils/kernel/kexec/"
distfiles="${KERNEL_SITE}/utils/kernel/kexec/${pkgname}-${version}.tar.xz"
checksum=d2f0ef872f39e2fe4b1b01feb62b0001383207239b9f8041f98a95564161d053
CFLAGS="-fcommon"
case "$XBPS_TARGET_MACHINE" in
ppc-musl) nopie=yes;; # textrels not supported
esac

View File

@ -14,8 +14,6 @@ changelog="https://github.com/lastpass/${pkgname}/blob/v${version}/CHANGELOG.md"
distfiles="https://github.com/lastpass/${pkgname}/archive/v${version}.tar.gz"
checksum=3fb1373fc05d568599da7657fcff801cbaa704254f00bb8e13d4510cb236be90
CFLAGS="-fcommon"
do_check() {
cd build
ninja "${makejobs}" lpass-test

View File

@ -11,8 +11,6 @@ homepage="http://freeglut.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/freeglut/freeglut-${version}.tar.gz"
checksum=c5944a082df0bba96b5756dddb1f75d0cd72ce27b5395c6c1dde85c2ff297a50
CFLAGS="-fcommon"
post_install() {
vlicense COPYING
}

View File

@ -17,8 +17,6 @@ checksum=fa892480d7954bcca8292ad00f2e08b7b3e23e54d288eb14a05c50d454bdb3d3
build_options="gir"
build_options_default="gir"
CFLAGS="-fcommon"
libmirage-devel_package() {
short_desc+=" - development files"
depends="libmirage-${version}_${revision}"

View File

@ -12,8 +12,6 @@ distfiles="https://www.fefe.de/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=311ec8b3f4b72bb442e323fb013a98f956fa745547f2bc9456287b20d027cd7d
disable_parallel_build=yes
CFLAGS="-fcommon"
do_build() {
make ${makejobs} CC="$CC" OPT_REG="$CFLAGS" OPT_PLUS="$CFLAGS -O3"
}

View File

@ -14,8 +14,6 @@ checksum=ddf0e32dd5fafe5283198d37e4bf9decf7ba1770b6e7e006c33e6df79e6a6157
# many test failures
make_check=no
CFLAGS="-fcommon"
# Enable C++ exception handling (doesn't work too well on x86)
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*) ;;

View File

@ -12,7 +12,6 @@ homepage="http://www.joonet.de/lilo"
distfiles="${DEBIAN_SITE}/main/l/${pkgname}/${pkgname}_${version}.orig.tar.gz"
checksum=e158f19de4560c935ebe0507c21b79bff17618b9230d8076fe8c5fff9fdbd5b1
CFLAGS="-fcommon"
pre_build() {
sed -i Makefile src/Makefile \

View File

@ -18,8 +18,6 @@ checksum=1e318f57d7e36b61c23a504d03d2430c78dad142c1804451061f1b3ea5441ee8
lib32disabled=yes
CFLAGS="-fcommon"
lxpanel-devel_package() {
depends="menu-cache-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"

View File

@ -13,5 +13,3 @@ license="GPL-2.0-or-later"
homepage="http://lxde.org/"
distfiles="${SOURCEFORGE_SITE}/lxde/${pkgname}-${version}.tar.xz"
checksum=2216df9bc4bb2d80733e788966512ac58c421e0a0a1ff85210f34a29d1eb4e2c
CFLAGS="-fcommon"

View File

@ -12,8 +12,6 @@ changelog="https://raw.githubusercontent.com/troglobit/nemesis/master/ChangeLog.
distfiles="https://github.com/troglobit/nemesis/releases/download/v${version}/nemesis-${version}.tar.gz"
checksum=c480570284ba86aa8643eac0d582aaedaeaefa4773b7d0ac9549e4f42c40e78a
CFLAGS="-fcommon"
post_install() {
vlicense LICENSE
}

View File

@ -40,9 +40,6 @@ case "$XBPS_TARGET_MACHINE" in
*) configure_args+=" -Dint10=false" ;;
esac
# gcc10 needs to be hinted when symbols have multiple definitions
CFLAGS="-fcommon"
# Symbols must be resolved lazily for modules to work.
# See https://bugs.freedesktop.org/show_bug.cgi?id=41208#c5
LDFLAGS="-Wl,-z,lazy"