Skip to contentSkip to conversation

multipath-tools: delete spec/rpm traces from Makefile

PATCH New Xose Vazquez Perez 1 participant 5 messages Jun 30, 2016 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/5 multipath-tools: delete spec/rpm traces from Makefile

spec file was deleted time ago.

Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 Makefile | 9 ---------
 1 file changed, 9 deletions(-)
Makefile +0 -9
index 06f50c8..bd7cfc1 100644
@@ -60,8 +60,6 @@ recurse_uninstall:
 	done
 
 clean:	recurse_clean
-	rm -f multipath-tools.spec
-	rm -rf rpms
 
 install:	recurse_install
 
@@ -73,10 +71,3 @@ TAGS:
 	etags -a libmultipath/*.h
 	etags -a multipathd/*.c
 	etags -a multipathd/*.h
-
-release:
-	sed -e "s/__VERSION__/${VERSION}/" \
-	multipath-tools.spec.in > multipath-tools.spec
-
-rpm: release
-	rpmbuild -bb multipath-tools.spec
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/5 multipath-tools: merge RPM_OPT_FLAGS into OPTFLAGS

In reply to a message not in the archive
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 Makefile.inc | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
Makefile.inc +2 -4
index d7fc444..c4bea67 100644
@@ -59,11 +59,9 @@ mpathcmddir = $(TOPDIR)/libmpathcmd
 GZIP        = gzip -9 -c
 INSTALL_PROGRAM = install
 
-ifndef RPM_OPT_FLAGS
-	RPM_OPT_FLAGS = -O2 -g -pipe -Wformat-security -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4
-endif
+OPTFLAGS     = -Wunused -Wstrict-prototypes -O2 -g -pipe -Wformat-security -Wall \
+		-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4
 
-OPTFLAGS     = $(RPM_OPT_FLAGS) -Wunused -Wstrict-prototypes
 CFLAGS	     = $(OPTFLAGS) -fPIC -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\"
 SHARED_FLAGS = -shared
 
Signature · 1 line
2.7.4
#3 lore raw

PATCH 3/5 multipath-tools: don't create /usr/share/doc/mpathpersist/ from make install

In reply to a message not in the archive

Useless, it's empty.

Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmpathpersist/Makefile | 1 -
 1 file changed, 1 deletion(-)
libmpathpersist/Makefile +0 -1
index dd02158..70b2974 100644
@@ -32,7 +32,6 @@ install: $(LIBS)
 	$(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(syslibdir)
 	$(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(man3dir)
 	$(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(incdir)
-	$(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)/usr/share/doc/mpathpersist/
 	ln -sf $(DESTDIR)$(syslibdir)/$(LIBS) $(DESTDIR)$(syslibdir)/$(DEVLIB)
 	install -m 644 mpath_persistent_reserve_in.3.gz $(DESTDIR)$(man3dir)
 	install -m 644 mpath_persistent_reserve_out.3.gz $(DESTDIR)$(man3dir)
Signature · 1 line
2.7.4
#4 lore raw

PATCH 4/5 multipath-tools: don't create /etc/init.d from make install

In reply to a message not in the archive

sysv scripts were deleted time ago.

Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 Makefile.inc        | 1 -
 multipathd/Makefile | 2 --
 2 files changed, 3 deletions(-)
Makefile.inc +0 -1
index c4bea67..7adeb46 100644
@@ -48,7 +48,6 @@ multipathdir = $(TOPDIR)/libmultipath
 mandir      = $(prefix)/usr/share/man/man8
 man5dir     = $(prefix)/usr/share/man/man5
 man3dir      = $(prefix)/usr/share/man/man3
-rcdir	    = $(prefix)/etc/init.d
 syslibdir   = $(prefix)/$(LIB)
 incdir      = $(prefix)/usr/include
 libdir	    = $(prefix)/$(LIB)/multipath
multipathd/Makefile +0 -2
index 9b0210f..7fb1d3f 100644
@@ -46,7 +46,6 @@ $(EXEC): $(OBJS)
 install:
 	$(INSTALL_PROGRAM) -d $(DESTDIR)$(bindir)
 	$(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)
-	$(INSTALL_PROGRAM) -d $(DESTDIR)$(rcdir)
 ifdef SYSTEMD
 	$(INSTALL_PROGRAM) -d $(DESTDIR)$(unitdir)
 	$(INSTALL_PROGRAM) -m 644 $(EXEC).service $(DESTDIR)$(unitdir)
@@ -57,7 +56,6 @@ endif
 
 uninstall:
 	rm -f $(DESTDIR)$(bindir)/$(EXEC)
-	rm -f $(DESTDIR)$(rcdir)/$(EXEC)
 	rm -f $(DESTDIR)$(mandir)/$(EXEC).8.gz
 	rm -f $(DESTDIR)$(unitdir)/$(EXEC).service
 	rm -f $(DESTDIR)$(unitdir)/$(EXEC).socket
Signature · 1 line
2.7.4
#5 lore raw

PATCH 5/5 multipath-tools: make uninstall leaves traces behind

In reply to a message not in the archive

delete mpath_persist.h and libmpathpersist.so

Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmpathpersist/Makefile | 2 ++
 1 file changed, 2 insertions(+)
libmpathpersist/Makefile +2 -0
index 70b2974..e6a7eb8 100644
@@ -41,6 +41,8 @@ uninstall:
 	rm -f $(DESTDIR)$(syslibdir)/$(LIBS)
 	rm $(DESTDIR)$(man3dir)/mpath_persistent_reserve_in.3.gz
 	rm $(DESTDIR)$(man3dir)/mpath_persistent_reserve_out.3.gz
+	rm -f $(DESTDIR)$(incdir)/mpath_persist.h
+	rm -f $(DESTDIR)$(syslibdir)/$(DEVLIB)
 
 clean:
 	rm -f core *.a *.o
Signature · 1 line
2.7.4