Re: [Powertop] Fix out of tree builds [Was: PowerTOP v2.6.1 released]

Joerg Mayer <jmpt at loplof.de>
Newsgroups dev.linux.lists.powertop
Message-ID <[email protected]>
Hello Alexandra,

On Mon, Jun 09, 2014 at 04:14:50PM -0700, Alexandra Yates wrote:
> > On Wed, Jun 04, 2014 at 02:20:18PM -0700, Alexandra Yates wrote:
> >> Unfortunately the patches you sent don't fix the issue.  Here is how to
> >> reproduced the issue:
...
> >> The error still points that /bin/bash: ./csstoh.sh: No such file or
> >> directory
...
> I still get the error, even after following your steps.  You may have
> other commits I don't.

I don't have any other patches applied (the only differences result from
my patches and some regenerated files):

jmayer(a)egg:~/work/power/powertop/git(master)> git status --ignored
#       modified:   po/ca.po           <==== Automagically regenerated
#       modified:   po/cs_CZ.po        <==== (only timestamps and
#       modified:   po/de_DE.po        <==== line numbers differ. The
#       modified:   po/en_GB.po        <==== differing line numbers
#       modified:   po/en_US.po        <==== indicate that these files
#       modified:   po/es_ES.po        <==== should be regenerated before
#       modified:   po/hu_HU.po        <==== doing a distribution as well)
#       modified:   po/id_ID.po
#       modified:   po/nl_NL.po
#       modified:   po/powertop.pot
#       modified:   po/zh_TW.po
#       modified:   src/Makefile.am    <==== My changes

And git diff for src/Makefile.am only shows my two changes.

>From the top of your git directory please run
grep -r \\./csstoh.sh .
If something is found, delete it. Even better (assuming you have no extra
directories in your source tree that are not checked in and not worth
keeping): Please run "git clean -dfX" from the top of your git tree.
Verify that the changes are applied ("git diff src/Makefile.am").
Then rebuild.

I'm very sure that my tree is clean as I do development in branches:
jmayer(a)egg:~/work/power/powertop/git(master)> git branch
* master
  out-of-tree-build-fix
  tuning-packaging-fix
I tested my patches on top of master to make sure I work on a pristine
source tree.

I'm a) quite sure it's something in your setup/workflow and b) quite
determined to find out what it going wrong there if you are willing to
let me :)

OK, I've written a small script that tries to insure that things are build
correctly - please try (note that it will run "git clean -dfX").

Thanks
   Jörg
-- 
Joerg Mayer                                           <jmayer(a)loplof.de>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
build-release.sh (application/x-sh, 683 B)
#!/bin/sh

# Terminate script on error
set -e

if [ ! -d .git ]; then
  echo
  echo "Please run from top of git source tree"
  echo
  exit 1
fi

echo
echo "=========== Cleaning up source tree ================="
echo
git clean -dfX

echo
echo "=========== List of modified files =================="
echo
git status --ignored

echo
echo "=========== Setting up build environmnet ============"
echo
./autogen.sh >/dev/null
./configure >/dev/null

echo
echo "=========== Packaging source ========================"
echo
make dist >/dev/null

echo
echo "=========== Checking packaged source ================"
echo
make distcheck >/dev/null

echo
echo " All good for release"
echo

exit 0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.