Package: libfilesystem-ruby
Version: 0.5-2
Severity: normal
Tags: patch
Hi,
Attached is the diff for my libfilesystem-ruby 0.5-2.1 NMU.
bye,
- michael
diff -Nru /tmp/aaQQmmJzGB/libfilesystem-ruby-0.5/debian/changelog
/tmp/X07H5N7tMp/libfilesystem-ruby-0.5/debian/changelog
--- /tmp/aaQQmmJzGB/libfilesystem-ruby-0.5/debian/changelog 2006-08-03
13:44:27.000000000 +0200
+++ /tmp/X07H5N7tMp/libfilesystem-ruby-0.5/debian/changelog 2006-08-03
13:44:27.000000000 +0200
@@ -1,3 +1,11 @@
+libfilesystem-ruby (0.5-2.1) unstable; urgency=low
+
+ * Non-maintainer upload
+ * Do not build Package for soon-to-be-obsolete ruby 1.6 (Closes: #366569)
+
+ -- Michael Ablassmeier <[EMAIL PROTECTED]> Thu, 3 Aug 2006 13:42:28 +0200
+
+
libfilesystem-ruby (0.5-2) unstable; urgency=low
* fixed: 64bit arch problem. Very thanks for Kenshi Muto, Fumitoshi Ukai
diff -Nru /tmp/aaQQmmJzGB/libfilesystem-ruby-0.5/debian/control
/tmp/X07H5N7tMp/libfilesystem-ruby-0.5/debian/control
--- /tmp/aaQQmmJzGB/libfilesystem-ruby-0.5/debian/control 2006-08-03
13:44:27.000000000 +0200
+++ /tmp/X07H5N7tMp/libfilesystem-ruby-0.5/debian/control 2006-08-03
13:44:27.000000000 +0200
@@ -2,7 +2,7 @@
Section: interpreters
Priority: optional
Maintainer: Tatsuki Sugiura <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>> 3.0.0), ruby1.6, ruby1.8, ruby1.6-dev, ruby1.8-dev
+Build-Depends: debhelper (>> 3.0.0), ruby1.8, ruby1.8-dev
Standards-Version: 3.6.1.0
Uploaders: TAKU Yasui <[EMAIL PROTECTED]>
@@ -16,12 +16,3 @@
This is a Ruby extension for file-system information,
using the 'statvfs' and 'getmntent' system calls.
-Package: libfilesystem-ruby1.6
-Architecture: any
-Provides: libfilesystem-ruby
-Replaces: libfilesystem-ruby (<< 0.4-3)
-Conflicts: libfilesystem-ruby (<< 0.4-3)
-Depends: ${shlibs:Depends}
-Description: Ruby1.6 extension for file-system information
- This is a Ruby extension for file-system information,
- using the 'statvfs' and 'getmntent' system calls.
diff -Nru /tmp/aaQQmmJzGB/libfilesystem-ruby-0.5/debian/rules
/tmp/X07H5N7tMp/libfilesystem-ruby-0.5/debian/rules
--- /tmp/aaQQmmJzGB/libfilesystem-ruby-0.5/debian/rules 2006-08-03
13:44:27.000000000 +0200
+++ /tmp/X07H5N7tMp/libfilesystem-ruby-0.5/debian/rules 2006-08-03
13:44:27.000000000 +0200
@@ -55,12 +55,6 @@
dh_installdirs
# Add here commands to install the package into
debian/libfilesystem-ruby.
- # 1.6
- ruby1.6 extconf.rb
- $(MAKE)
- ruby1.6 Test.rb
- $(MAKE) install DESTDIR=$(CURDIR)/debian/libfilesystem-ruby1.6
- $(MAKE) clean
ruby1.8 extconf.rb
$(MAKE)
ruby1.8 Test.rb
diff -Nru /tmp/aaQQmmJzGB/libfilesystem-ruby-0.5/Makefile
/tmp/X07H5N7tMp/libfilesystem-ruby-0.5/Makefile
--- /tmp/aaQQmmJzGB/libfilesystem-ruby-0.5/Makefile 2006-08-03
13:44:27.000000000 +0200
+++ /tmp/X07H5N7tMp/libfilesystem-ruby-0.5/Makefile 2006-08-03
13:44:27.000000000 +0200
@@ -4,26 +4,30 @@
#### Start of system configuration section. ####
srcdir = .
-topdir = /usr/lib/ruby/1.8/i386-linux
+topdir = /usr/lib/ruby/1.8/x86_64-linux
hdrdir = $(topdir)
-VPATH = $(srcdir)
+VPATH = $(srcdir):$(topdir):$(hdrdir)
prefix = $(DESTDIR)/usr
exec_prefix = $(prefix)
-sitedir = $(prefix)/local/lib/site_ruby
+sitedir = $(DESTDIR)/usr/local/lib/site_ruby
rubylibdir = $(libdir)/ruby/$(ruby_version)
-builddir = $(ac_builddir)
+docdir = $(datarootdir)/doc/$(PACKAGE)
+dvidir = $(docdir)
+datarootdir = $(prefix)/share
archdir = $(rubylibdir)/$(arch)
sbindir = $(exec_prefix)/sbin
-compile_dir = $(DESTDIR)/tmp/ruby1.8-1.8.1+1.8.2pre1/build-tree/ruby-1.8.2
+psdir = $(docdir)
+localedir = $(datarootdir)/locale
+htmldir = $(docdir)
datadir = $(prefix)/share
includedir = $(prefix)/include
-infodir = $(prefix)/info
-top_builddir = $(ac_top_builddir)
+infodir = $(datarootdir)/info
sysconfdir = $(DESTDIR)/etc
mandir = $(datadir)/man
libdir = $(exec_prefix)/lib
sharedstatedir = $(prefix)/com
oldincludedir = $(DESTDIR)/usr/include
+pdfdir = $(docdir)
sitearchdir = $(sitelibdir)/$(sitearch)
bindir = $(exec_prefix)/bin
localstatedir = $(DESTDIR)/var
@@ -36,79 +40,95 @@
LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
-CFLAGS = -fPIC -Wall -g -O2 -fPIC
+CFLAGS = -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC
CPPFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir)
CXXFLAGS = $(CFLAGS)
DLDFLAGS =
-LDSHARED = gcc -shared
+LDSHARED = $(CC) -shared
AR = ar
EXEEXT =
RUBY_INSTALL_NAME = ruby1.8
-RUBY_SO_NAME = $(RUBY_INSTALL_NAME)
-arch = i386-linux
-sitearch = i386-linux
+RUBY_SO_NAME = ruby1.8
+arch = x86_64-linux
+sitearch = x86_64-linux
ruby_version = 1.8
ruby = /usr/bin/ruby1.8
RUBY = $(ruby)
-RM = $(RUBY) -run -e rm -- -f
-MAKEDIRS = $(RUBY) -run -e mkdir -- -p
-INSTALL_PROG = $(RUBY) -run -e install -- -vpm 0755
-INSTALL_DATA = $(RUBY) -run -e install -- -vpm 0644
+RM = rm -f
+MAKEDIRS = mkdir -p
+INSTALL = /usr/bin/install -c
+INSTALL_PROG = $(INSTALL) -m 0755
+INSTALL_DATA = $(INSTALL) -m 644
+COPY = cp
#### End of system configuration section. ####
+preload =
+libpath = $(libdir)
LIBPATH = -L"$(libdir)"
DEFFILE =
CLEANFILES =
DISTCLEANFILES =
+extout =
+extout_prefix =
target_prefix =
LOCAL_LIBS =
LIBS = $(LIBRUBYARG_SHARED) -lpthread -ldl -lcrypt -lm -lc
+SRCS = filesystem.c
OBJS = filesystem.o
TARGET = filesystem
DLLIB = $(TARGET).so
-STATIC_LIB = $(TARGET).a
+STATIC_LIB =
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
-CLEANLIBS = "$(TARGET).{lib,exp,il?,tds,map}" $(DLLIB)
-CLEANOBJS = "*.{o,a,s[ol],pdb,bak}"
+TARGET_SO = $(DLLIB)
+CLEANLIBS = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map
+CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak
all: $(DLLIB)
static: $(STATIC_LIB)
clean:
- @$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
+ @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
distclean: clean
- @$(RM) Makefile extconf.h conftest.* mkmf.log
- @$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
+ @-$(RM) Makefile extconf.h conftest.* mkmf.log
+ @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
realclean: distclean
-install: $(RUBYARCHDIR)
-install: $(RUBYARCHDIR)/$(DLLIB)
-$(RUBYARCHDIR)/$(DLLIB): $(DLLIB) $(RUBYARCHDIR)
- @$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
+install: install-so install-rb
+
+install-so: $(RUBYARCHDIR)
+install-so: $(RUBYARCHDIR)/$(DLLIB)
+$(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
+ $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
+install-rb: pre-install-rb install-rb-default
+install-rb-default: pre-install-rb-default
+pre-install-rb: Makefile
+pre-install-rb-default: Makefile
$(RUBYARCHDIR):
- @$(MAKEDIRS) $(RUBYARCHDIR)
+ $(MAKEDIRS) $@
-site-install: install
+site-install: site-install-so site-install-rb
+site-install-so: install-so
+site-install-rb: install-rb
-.SUFFIXES: .c .cc .m .cxx .cpp .C .o
+.SUFFIXES: .c .m .cc .cxx .cpp .C .o
.cc.o:
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
-.cpp.o:
+.cxx.o:
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
-.cxx.o:
+.cpp.o:
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
.C.o:
@@ -119,9 +139,8 @@
$(DLLIB): $(OBJS)
@-$(RM) $@
- $(LDSHARED) $(DLDFLAGS) $(LIBPATH) -o $(DLLIB) $(OBJS) $(LOCAL_LIBS)
$(LIBS)
+ $(LDSHARED) $(DLDFLAGS) $(LIBPATH) -o $@ $(OBJS) $(LOCAL_LIBS) $(LIBS)
+
-$(STATIC_LIB): $(OBJS)
- $(AR) cru $@ $(OBJS)
- @-ranlib $(DLLIB) 2> /dev/null || true
+$(OBJS): ruby.h defines.h