Compare commits

..

No commits in common. 'c9' and 'i8c' have entirely different histories.
c9 ... i8c

@ -1,47 +0,0 @@
From a4ba0ead6c82b3efe409c04d17de7ca06054356a Mon Sep 17 00:00:00 2001
From: Colin Walters <walters@verbum.org>
Date: Wed, 3 Oct 2018 15:11:52 +0000
Subject: [PATCH] build-sys: Inherit LDFLAGS
So that we can respect e.g. the Fedora hardening flags.
---
Makefile | 2 +-
configure | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 8d9b7d2..badecdc 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ O := files-pwd.o \
files-have_o_cloexec.o
CFLAGS += $(EXTRA_CFLAGS) -pthread -fpic
-LDFLAGS += $(CFLAGS) -Wl,-soname,$T -Wl,-as-needed -nostdlib -lpthread
+LDFLAGS += $(CFLAGS) $(EXTRA_LDFLAGS) -Wl,-soname,$T -Wl,-as-needed -nostdlib -lpthread
CPPFLAGS += -D_GNU_SOURCE
ifneq ($(strip $(DATADIR)),)
diff --git a/configure b/configure
index 3336c3d..8d0bf6d 100755
--- a/configure
+++ b/configure
@@ -34,13 +34,14 @@ done
#
test -n "${CXXFLAGS}" && EXTRA_CXXFLAGS=${CXXFLAGS}
test -n "${CFLAGS}" && EXTRA_CFLAGS=${CFLAGS}
+test -n "${LDFLAGS}" && EXTRA_LDFLAGS=${LDFLAGS}
# Inspect arguments and generate config.mk
#
echo "# autogenerated by: $0 $*" > config.mk
for var in "$@" ; do
case ${var} in
- CFLAGS=* | CXXFLAGS=*)
+ CFLAGS=* | CXXFLAGS=* | LDFLAGS=* )
echo "Setting EXTRA_${var}"
echo "EXTRA_${var}" >> config.mk
;;
--
2.17.1

@ -0,0 +1,41 @@
Only in nss-altfiles-2.18.1.new: config.mk
diff -ur nss-altfiles-2.18.1/configure nss-altfiles-2.18.1.new/configure
--- nss-altfiles-2.18.1/configure 2014-03-14 13:13:43.000000000 +0000
+++ nss-altfiles-2.18.1.new/configure 2019-04-02 14:44:03.399819940 +0000
@@ -34,13 +34,14 @@
#
test -n "${CXXFLAGS}" && EXTRA_CXXFLAGS=${CXXFLAGS}
test -n "${CFLAGS}" && EXTRA_CFLAGS=${CFLAGS}
+test -n "${LDFLAGS}" && EXTRA_LDFLAGS=${LDFLAGS}
# Inspect arguments and generate config.mk
#
echo "# autogenerated by: $0 $*" > config.mk
for var in "$@" ; do
case ${var} in
- CFLAGS=* | CXXFLAGS=*)
+ CFLAGS=* | CXXFLAGS=* | LDFLAGS=* )
echo "Setting EXTRA_${var}"
echo "EXTRA_${var}" >> config.mk
;;
Only in nss-altfiles-2.18.1.new: debugfiles.list
Only in nss-altfiles-2.18.1.new: debuglinks.list
Only in nss-altfiles-2.18.1.new: debugsourcefiles.list
Only in nss-altfiles-2.18.1.new: debugsources.list
Only in nss-altfiles-2.18.1.new: elfbins.list
Only in nss-altfiles-2.18.1.new: files-grp.o
Only in nss-altfiles-2.18.1.new: files-have_o_cloexec.o
Only in nss-altfiles-2.18.1.new: files-pwd.o
Only in nss-altfiles-2.18.1.new: libnss_altfiles.so.2
diff -ur nss-altfiles-2.18.1/Makefile nss-altfiles-2.18.1.new/Makefile
--- nss-altfiles-2.18.1/Makefile 2014-03-14 13:13:43.000000000 +0000
+++ nss-altfiles-2.18.1.new/Makefile 2019-04-02 14:44:28.023780755 +0000
@@ -10,7 +10,7 @@
files-have_o_cloexec.o
CFLAGS += $(EXTRA_CFLAGS) -pthread -fpic
-LDFLAGS += $(CFLAGS) -Wl,-soname,$T -Wl,-as-needed -nostdlib -lpthread
+LDFLAGS += $(CFLAGS) $(EXTRA_LDFLAGS) -Wl,-soname,$T -Wl,-as-needed -nostdlib -lpthread
CPPFLAGS += -D_GNU_SOURCE
ifneq ($(strip $(DATADIR)),)

@ -4,27 +4,24 @@
Summary: NSS module to look up users in /usr/lib/passwd too
Name: nss-altfiles
Version: 2.18.1
Release: 20%{?dist}
Release: 12%{?dist}
#VCS: https://github.com/aperezdc/nss-altfiles
Source0: https://github.com/aperezdc/nss-altfiles/archive/v%{version}.tar.gz
# From pull request: https://github.com/marineam/nss-altfiles/commit/dda5073238b88b4537f2d2707b0ef67bdd11fe06
# FIXME: Change nss-altfiles to not use glibc internal symbols
#Patch0: 0001-Explicitly-link-to-libc.patch
Patch1: 0001-build-sys-Inherit-LDFLAGS.patch
Patch1: ldflags.patch
License: LGPLv2+
URL: https://github.com/aperezdc/nss-altfiles
BuildRequires: make
BuildRequires: glibc-devel
BuildRequires: gcc
BuildRequires: git
%description
When installed, this package allows looking up users
in %{prefix}/lib/passwd, similarly, groups in %{prefix}/lib/group.
%prep
%autosetup -Sgit
%autosetup
%build
./configure --prefix=%{_prefix} --libdir=%{_libdir} CFLAGS="%{optflags}" LDFLAGS="%{build_ldflags}"
@ -37,38 +34,17 @@ make install DESTDIR=$RPM_BUILD_ROOT
%doc README.md
%{_libdir}/*.so.*
%ldconfig_scriptlets
%post -p /sbin/ldconfig
%changelog
* Mon Aug 02 2021 Colin Walters <walters@verbum.org> - 2.18.1-20
- Pointless rebuild to re-trigger gating etc
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.18.1-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.18.1-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.18.1-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.18.1-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
%postun -p /sbin/ldconfig
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.18.1-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.18.1-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 20 2018 Colin Walters <walters@verbum.org> - 2.18.1-13
- BR gcc
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.18.1-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
%changelog
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 2.18.1-12
- Rebuilt for MSVSphere 8.8
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.18.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Tue Apr 02 2019 Colin Walters <walters@redhat.com> - 2.18.1-12
- Add system LDFLAGS
- Resolves: rhbz#1630609
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.18.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

Loading…
Cancel
Save