This was from Mathias Ulrich's work on Debian -- I presume he was matching
debian standards. I've included part of his diffs below.

I don't want to break current code or your scripts. I'll switch back. Is
there any roll for installing in both sbin and bin or does that create worse
problems.

Paul Alfille

----------------------------------
Hello,

here is my current set of diffs. All of these should make perfect sense. ;-)

*** We don't want to overwrite random memory ***

diff --git a/module/swig/ow.i b/module/swig/ow.i
index 768d173..e585117 100644
--- a/module/swig/ow.i
+++ b/module/swig/ow.i
@@ -85,7 +85,7 @@ static void getdir( struct one_wire_query * owq ) {
 *buffer will be returned as NULL on error
*/
static void getval( struct one_wire_query * owq ) {
-    size_t s = FullFileLength(PN(owq)) ;
+    ssize_t s = FullFileLength(PN(owq)) ;
   if ( s <= 0 ) return ;
   if ( (OWQ_buffer(owq) = malloc(s+1))==NULL ) return ;
   OWQ_size(owq) = s ;

*** owserver needs to be in .../sbin ***

index fc92ef4..62e6111 100644
--- a/module/owserver/src/c/Makefile.am
+++ b/module/owserver/src/c/Makefile.am
@@ -1,6 +1,6 @@
# $Id: Makefile.am <http://makefile.am/>,v 1.18 2007/01/16 19:08:39 alfille
Exp $

-bin_PROGRAMS = owserver
+sbin_PROGRAMS = owserver
owserver_SOURCES = owserver.c    \
                  from_client.c \
                  to_client.c   \


*** need to cleanup auto-generated Perl Makefiles ***

diff --git a/module/ownet/perl5/Makefile.am b/module/ownet/perl5/Makefile.am
index cd98863..b7d3b80 100644
--- a/module/ownet/perl5/Makefile.am
+++ b/module/ownet/perl5/Makefile.am
@@ -14,4 +14,4 @@ install-data-local: OWNet/Makefile
clean-generic:
      @RM@ -f *~ .*~
      if test -f OWNet/Makefile; then cd OWNet; $(MAKE) clean; fi
-       @RM@ -f OWNet/Makefile.old
+       @RM@ -f OWNet/Makefile.old OWNet/Makefile

*** Path fixes ***

diff --git a/src/man/Makefile.am b/src/man/Makefile.am
index e91294e..25be6d3 100644
--- a/src/man/Makefile.am
+++ b/src/man/Makefile.am
@@ -1,6 +1,6 @@
## $Id: Makefile.am <http://makefile.am/>,v 1.25 2007/01/05 10:24:38 d1mag
Exp $

-mandir = ${prefix}/man
+mandir = @mandir@

man_MANS = owfs.1 \
          owhttpd.1 \
diff --git a/module/ownet/perl5/Makefile.am b/module/ownet/perl5/Makefile.am
index cd98863..b7d3b80 100644
--- a/module/ownet/perl5/Makefile.am
+++ b/module/ownet/perl5/Makefile.am
@@ -5,7 +5,7 @@ EXTRA_DIST = OWNet/README OWNet/MANIFEST OWNet/Changes
OWNet/Makefile.PL OWNet/l
all: OWNet/Makefile

OWNet/Makefile: OWNet/Makefile.PL
-       ( cd OWNet; $(PERL) Makefile.PL )
+       ( cd OWNet; $(PERL) Makefile.PL [EMAIL PROTECTED]@ )

install-data-local: OWNet/Makefile
      ( cd OWNet; $(MAKE) install DESTDIR="$(DESTDIR)" )

diff --git a/module/swig/perl5/Makefile.am b/module/swig/perl5/Makefile.am
index 3938ba3..0ca614d 100644
--- a/module/swig/perl5/Makefile.am
+++ b/module/swig/perl5/Makefile.am
@@ -6,9 +6,9 @@ all: OW/OW.pm
.....
.....
....


On 5/22/07, Christian Magnusson <[EMAIL PROTECTED]> wrote:



Why should owserver be installed in sbin now… and all other binaries in
bin.



I'm not very happy about this update since it will require tons of changes
(in about 50 scripts here for all different platform builds) , so could we
go back to the bin directory for binaries?   There are many startup-scripts
and build scripts nowadays…



If owserver is moved, then owhttpd, owfs and owftpd should be moved too if
we should be consequent, but I don't see the point… They are all deamon or
background tasks.



/Christian



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to