Re: [leaf-devel] new tool: setup-builddir

2012-08-28 Thread Yves Blusseau
Le 27/08/2012 20:28, KP Kirchdoerfer a écrit :
 Am 26.08.2012 19:33, schrieb Yves Blusseau:
 Hi all,

 i have added a new tool: tool/setup-builddir and associate a makefile 
 variable to it: $(BT_SETUP_BUILDDIR)

 This tool help to uncompress source tarball in build directory.

 In the buildtool.mk you can rewrite all:
  bzcat $(XXX_SOURCE) | tar -xvf -
 or
  zcat $(XXX_SOURCE) | tar -xvf -

 with

  $(BT_SETUP_BUILDDIR) -v $(XXX_SOURCE)

 You can look at commit f515c8e for an example to use the new makefile 
 variable.

 setup-builddir tool can extract any tarball compressed in gzip, bzip2, lzip, 
 lzop, lzma or xz format.

 So in the futur try to focus on lzma or xz formats for the source tarballs 
 (it will take less space in the git repository).
 Hi Yves;

 I've tested the changes with dnsmasq and while
 buildtool.pl build dnsmasq
 with the entry
 DNSMASQ_DIR=$(CURDIR)/$(shell $(BT_TGZ_GETDIRNAME) $(DNSMASQ_SOURCE)
 2/dev/null )

 went fine, a
 buildtool.pl srcclean dnsmasq
 failed.

 make -C /opt/buildtool-master/source/i486-unknown-linux-uclibc/dnsmasq/
 clean
 Note the missing DNSMASQ_DIR in the command above.

 Looks like any of the variables that defines DNSMASQ_DIR is empty when
 called from buildtool.pl srcclean (and maybe also buildclean).

I see that.
The problem is that the buildtool do not set variables defined in 
buildtool.cfg when using the buildclean, srcclean commands.
I need to fix the buildtool perl modules, so the variables will be set 
in any case.
To resolv the problem you can use the DIRNAME hack. Look for samba 
package for example:

SAMBA_DIR:=$(shell $(BT_TGZ_GETDIRNAME) $(SAMBA_SOURCE) 2/dev/null )
ifeq ($(SAMBA_DIR),)
SAMBA_DIR:=$(shell cat DIRNAME)
endif

Then in .source:

.source:
 zcat $(SAMBA_SOURCE) | tar -xvf -
 echo $(SAMBA_DIR)  DIRNAME
 touch .source

So when the package is compiled it wrote the directory in the DIRNAME 
file, and when you use a clean command, as the SAMBA_DIR is empty it 
load is value from the DIRNAME file. It's ugly.
As soon as possible, i will try to make a fix.

Yves

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

___
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel


[leaf-devel] [Git] Good commit messages

2012-08-28 Thread Yves Blusseau
Hi all, it's very import to have good git commit messages.
The common use rule is to use a first short line (50 chars or less) that 
is the summary for the commit.
Then a blank line
Then a more detailed explanatory text (wrap at about 72 chars). Use 
paragraphs to separate topics.
If you use vim as your default editor with color syntax on, it will 
colorize the first 50 chars of the first line, then wrap automaticaly 
the third and above lines.

Please have a look at:
http://sethrobertson.github.com/GitBestPractices/#usemsg
and
http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html

I know that this implies some efforts, but it will make our life 
easier ( http://sethrobertson.github.com/GitBestPractices/#enforce ).

Yves

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

___
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel


[leaf-devel] SF FRS

2012-08-28 Thread Mike Noyes
Everyone,
The SF team is testing changes to the File Release System.

restful-default-download
http://sourceforge.net/p/forge/community-docs/restful-default-download/

-- 
Mike Noyes
http://sourceforge.net/users/mhnoyes
https://profiles.google.com/mhnoyes


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

___
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel