Обсуждение: Compiling PgAdmin 1.8.x on Debian Lenny AMD64 ?
Hi, I tried to compile the source distribution on Debian Lenny AMD64 to create a Debian package, which failed. Running "dpkg-buildpackage -rfakeroot" in the root of the source distribution gave the following error: "dpkg-buildpackage -rfakeroot tail: cannot open `debian/changelog' for reading: No such file or directory dpkg-buildpackage: failure: tail of debian/changelog gave error exit status 1" Running "dpkg-buildpackage -rfakeroot" in the pkg directory of the source distribution errors that suggested that there should be a wxWidgets 2.7.0-1 source (?) installation somewhere in the PgAdmin source tree, which is not the case. I have a (compiled) version of wxWidgets 2.8.0 installed from a repository maintained by the wxWidgets people (http://apt.wxwidgets.org/ etch-wx main). Is it possible to build a .deb file from the source distribution, using my own version of wxWidgets or do I have to fall back to "./configure ; make make install"? TIA -- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 web: www.askesis.nl
then dpkg-source -x *.dsc
copy the pgadmin3-1.8.0/debian to the upstream source directory (it should be in a directory untitled pgadmin3-1.8.2)
then cd pgadmin3-1.8.2
type dch -i to add a changelog entry and modify the version number to something like 1.8.2-xxx
then dpkg-buildpackage -rfakeroot
it should build quite straightforward.
I know I'm late in releasing the package of 1.8.2 and I'm sorry about that.
Regards,
Raphaël
Hi,
I tried to compile the source distribution on Debian Lenny AMD64 to
create a Debian package, which failed.
Running "dpkg-buildpackage -rfakeroot" in the root of the source
distribution gave the following error:
"dpkg-buildpackage -rfakeroot
tail: cannot open `debian/changelog' for reading: No such file or directory
dpkg-buildpackage: failure: tail of debian/changelog gave error exit status 1"
Running "dpkg-buildpackage -rfakeroot" in the pkg directory of the
source distribution errors that suggested that there should be a
wxWidgets 2.7.0-1 source (?) installation somewhere in the PgAdmin
source tree, which is not the case.
I have a (compiled) version of wxWidgets 2.8.0 installed from a
repository maintained by the wxWidgets people (http://apt.wxwidgets.org/
etch-wx main).
Is it possible to build a .deb file from the source distribution, using
my own version of wxWidgets or do I have to fall back to "./configure ;
make make install"?
TIA
--
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
Hi Raphaël, On Fri, 2008-02-15 at 11:58 +0100, Raphaël Enrici wrote: > Hi Joost, > > > take an example from deb sources packages already published. > > > Download these three files: > ftp://ftp.fr.postgresql.org/pgadmin3/release/debian/dists/etch/pgadmin/source/misc/pgadmin3_1.8.0-1~pgaoetch1.diff.gz > > ftp://ftp.fr.postgresql.org/pgadmin3/release/debian/dists/etch/pgadmin/source/misc/pgadmin3_1.8.0-1~pgaoetch1.dsc > > ftp://ftp.fr.postgresql.org/pgadmin3/release/debian/dists/etch/pgadmin/source/misc/pgadmin3_1.8.0.orig.tar.gz > > > then dpkg-source -x *.dsc > > > copy the pgadmin3-1.8.0/debian to the upstream source directory (it > should be in a directory untitled pgadmin3-1.8.2) > > then cd pgadmin3-1.8.2 > > type dch -i to add a changelog entry and modify the version number to > something like 1.8.2-xxx > > then dpkg-buildpackage -rfakeroot > > > it should build quite straightforward. Nop: it keep complaining about an embedded wxWidgets: ..... dh_clean dpkg-source -b pgadmin3-1.8.2 dpkg-source: building pgadmin3 in pgadmin3_1.8.2-1.tar.gz dpkg-source: building pgadmin3 in pgadmin3_1.8.2-1.dscdebian/rules build debian/rules:83: warning: overriding commands for target `orig' debian/rules:29: warning: ignoring old commands for target `orig' mkdir -p /home/jkr/src/pgadmin3-1.8.2/wxWidgets-2.7.0-1 cd /home/jkr/src/pgadmin3-1.8.2/wxWidgets-2.7.0-1 && tar -z -xf /home/jkr/src/pgadmin3-1.8.2/wxWidgets-2.7.0-1.tar.gz tar: /home/jkr/src/pgadmin3-1.8.2/wxWidgets-2.7.0-1.tar.gz: Cannot open: No such file or directory tar: Error is not recoverable: exiting now tar: Child returned status 2 tar: Error exit delayed from previous errors make: *** [localwx-untar-stamp] Error 2 dpkg-buildpackage: failure: debian/rules build gave error exit status 2 > > > I know I'm late in releasing the package of 1.8.2 and I'm sorry about > that. Life would be easier without the wxWidgets maintainer's silly dispute with the wxWidgets people ... -- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 web: www.askesis.nl
Hi Raphaël,
On Fri, 2008-02-15 at 11:58 +0100, Raphaël Enrici wrote:
> Hi Joost,
>
>
> take an example from deb sources packages already published.
>
>
> Download these three files:
> ftp://ftp.fr.postgresql.org/pgadmin3/release/debian/dists/etch/pgadmin/source/misc/pgadmin3_1.8.0-1~pgaoetch1.diff.gz
>
> ftp://ftp.fr.postgresql.org/pgadmin3/release/debian/dists/etch/pgadmin/source/misc/pgadmin3_1.8.0-1~pgaoetch1.dsc
>
> ftp://ftp.fr.postgresql.org/pgadmin3/release/debian/dists/etch/pgadmin/source/misc/pgadmin3_1.8.0.orig.tar.gz
>
>
> then dpkg-source -x *.dsc
>
>
> copy the pgadmin3-1.8.0/debian to the upstream source directory (it
> should be in a directory untitled pgadmin3-1.8.2)
>
> then cd pgadmin3-1.8.2
>
> type dch -i to add a changelog entry and modify the version number to
> something like 1.8.2-xxx
>
> then dpkg-buildpackage -rfakeroot
>
>
> it should build quite straightforward.
Nop: it keep complaining about an embedded wxWidgets:
.....
dh_clean
dpkg-source -b pgadmin3-1.8.2
dpkg-source: building pgadmin3 in pgadmin3_1.8.2-1.tar.gz
dpkg-source: building pgadmin3 in pgadmin3_1.8.2-1.dsc
debian/rules build
debian/rules:83: warning: overriding commands for target `orig'
debian/rules:29: warning: ignoring old commands for target `orig'
mkdir -p /home/jkr/src/pgadmin3-1.8.2/wxWidgets-2.7.0-1
cd /home/jkr/src/pgadmin3-1.8.2/wxWidgets-2.7.0-1 && tar -z
-xf /home/jkr/src/pgadmin3-1.8.2/wxWidgets-2.7.0-1.tar.gz
tar: /home/jkr/src/pgadmin3-1.8.2/wxWidgets-2.7.0-1.tar.gz: Cannot open:
No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
make: *** [localwx-untar-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
>
>
> I know I'm late in releasing the package of 1.8.2 and I'm sorry about
> that.
Life would be easier without the wxWidgets maintainer's silly dispute with the wxWidgets people ...
--
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
On Fri, Feb 15, 2008 at 2:01 PM, Raphaël Enrici <raphael@pgadmin.org> wrote: > Well, if you can try to download the referred wxWidgets tarball from wx > site and put it in the right place, it should build it on the fly. > BTW, I'll build some packages until next week. If I can't find an AMD64 > machine, I'll ask you or other contributors to make a build so that I can > upload it to our repos. Thanks for the feedback. Why's it referring to wxWidgets 2.7.0? It should be built against 2.8.x. Regards, Dave.
I'll provide a build and its source package rapidly to get out of this mess.
Cheers,
Raphaël
On Fri, Feb 15, 2008 at 2:01 PM, Raphaël Enrici <raphael@pgadmin.org> wrote:
> Well, if you can try to download the referred wxWidgets tarball from wx
> site and put it in the right place, it should build it on the fly.
> BTW, I'll build some packages until next week. If I can't find an AMD64
> machine, I'll ask you or other contributors to make a build so that I can
> upload it to our repos. Thanks for the feedback.
Why's it referring to wxWidgets 2.7.0? It should be built against 2.8.x.
Regards, Dave.
then cd pgadmin3-1.8.2
type dch -i to add a changelog entry and modify the version number to something like 1.8.2-xxx
then dpkg-buildpackage -rfakeroot
Please note that these source packages are based on wxWidgets2.8 from experimental. If wxWidgets distributes a package named libwxgtk2.8-dev everything should be ok though.
Tell me if it's ok or not now.
Regards,
Raphaël
Hi Raphaël,
On Fri, 2008-02-15 at 11:58 +0100, Raphaël Enrici wrote:
> Hi Joost,
>
>
> take an example from deb sources packages already published.
>
>
> Download these three files:
> ftp://ftp.fr.postgresql.org/pgadmin3/release/debian/dists/etch/pgadmin/source/misc/pgadmin3_1.8.0-1~pgaoetch1.diff.gz
>
> ftp://ftp.fr.postgresql.org/pgadmin3/release/debian/dists/etch/pgadmin/source/misc/pgadmin3_1.8.0-1~pgaoetch1.dsc
>
> ftp://ftp.fr.postgresql.org/pgadmin3/release/debian/dists/etch/pgadmin/source/misc/pgadmin3_1.8.0.orig.tar.gz
>
>
> then dpkg-source -x *.dsc
>
>
> copy the pgadmin3-1.8.0/debian to the upstream source directory (it
> should be in a directory untitled pgadmin3-1.8.2)
>
> then cd pgadmin3-1.8.2
>
> type dch -i to add a changelog entry and modify the version number to
> something like 1.8.2-xxx
>
> then dpkg-buildpackage -rfakeroot
>
>
> it should build quite straightforward.
Nop: it keep complaining about an embedded wxWidgets:
.....
dh_clean
dpkg-source -b pgadmin3-1.8.2
dpkg-source: building pgadmin3 in pgadmin3_1.8.2-1.tar.gz
dpkg-source: building pgadmin3 in pgadmin3_1.8.2-1.dsc
debian/rules build
debian/rules:83: warning: overriding commands for target `orig'
debian/rules:29: warning: ignoring old commands for target `orig'
mkdir -p /home/jkr/src/pgadmin3-1.8.2/wxWidgets-2.7.0-1
cd /home/jkr/src/pgadmin3-1.8.2/wxWidgets-2.7.0-1 && tar -z
-xf /home/jkr/src/pgadmin3-1.8.2/wxWidgets-2.7.0-1.tar.gz
tar: /home/jkr/src/pgadmin3-1.8.2/wxWidgets-2.7.0-1.tar.gz: Cannot open:
No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
make: *** [localwx-untar-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
>
>
> I know I'm late in releasing the package of 1.8.2 and I'm sorry about
> that.
Life would be easier without the wxWidgets maintainer's silly dispute with the wxWidgets people ...
--
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
Hi Raphaël, On Tue, 2008-02-26 at 01:15 +0100, Raphaël Enrici wrote: > Hi Joost, > > > I need your time once again... Would you mind trying a build with the > following files: > > > pgadmin3_1.8.2-1~pgao1.diff.gz > pgadmin3_1.8.2-1~pgao1.dsc > pgadmin3_1.8.2-1~pgao1_i386.changes > pgadmin3_1.8.2.orig.tar.gz > Although you should already have the latest file ;) > > > then: > dpkg-source -x *.dsc > then cd pgadmin3-1.8.2 > > type dch -i to add a changelog entry and modify the version number to > something like 1.8.2-xxx > > then dpkg-buildpackage -rfakeroot > > > Please note that these source packages are based on wxWidgets2.8 from > experimental. If wxWidgets distributes a package named libwxgtk2.8-dev > everything should be ok though. > > > Tell me if it's ok or not now. I will take care of this at the end of the week (friday), OK? -- Groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 web: www.askesis.nl
Hi Raphaël,
I have tried to build PgAdmin but it doe not work OOTB.
It stops saying:
make[1]: Leaving directory `/home/jkr/src/pgadmin-src/pgadmin3-1.8.2'
[ ! -f TODO.txt ] && echo "Please consult: http://www.pgadmin.org/development/todo.php" > TODO.txt || true
# move pgadmin3.mo files to locales directory
# this part was written by Andreas Tille <tille@debian.org>
for loc in `find debian/tmp -name pgadmin3.mo` ; do \
LOC=`echo ${loc} | sed "s?.*pgadmin3/i18n/\(.*\)/pgadmin3.mo?\1?"` ; \
mkdir -p debian/pgadmin3/usr/share/locale/${LOC}/LC_MESSAGES ; \
mv ${loc} debian/pgadmin3/usr/share/locale/${LOC}/LC_MESSAGES/. ; \
done
# moved dh_install here as it is common to indep and arch
# by being there dh_install can warn about forgotten files as it is
# acting on both pgadmin3 and pgadmin3-data packages. (RE)
# (note that we could also use --fail-missing instead of --list-mising)
dh_install --list-missing
cp: cannot stat `debian/tmp/usr/share/pgadmin3/ui': No such file or directory
dh_install: command returned error code 256
make: *** [install] Error 1
dpkg-buildpackage: failure: fakeroot debian/rules binary gave error exit status 2
any ideas?
--
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
Hi Raphaël,
I have tried to build PgAdmin but it doe not work OOTB.
It stops saying:
make[1]: Leaving directory `/home/jkr/src/pgadmin-src/pgadmin3-1.8.2'
[ ! -f TODO.txt ] && echo "Please consult: http://www.pgadmin.org/development/todo.php" > TODO.txt || true
# move pgadmin3.mo files to locales directory
# this part was written by Andreas Tille <tille@debian.org>
for loc in `find debian/tmp -name pgadmin3.mo` ; do \
LOC=`echo ${loc} | sed "s?.*pgadmin3/i18n/\(.*\)/pgadmin3.mo?\1?"` ; \
mkdir -p debian/pgadmin3/usr/share/locale/${LOC}/LC_MESSAGES ; \
mv ${loc} debian/pgadmin3/usr/share/locale/${LOC}/LC_MESSAGES/. ; \
done
# moved dh_install here as it is common to indep and arch
# by being there dh_install can warn about forgotten files as it is
# acting on both pgadmin3 and pgadmin3-data packages. (RE)
# (note that we could also use --fail-missing instead of --list-mising)
dh_install --list-missing
cp: cannot stat `debian/tmp/usr/share/pgadmin3/ui': No such file or directory
dh_install: command returned error code 256
make: *** [install] Error 1
dpkg-buildpackage: failure: fakeroot debian/rules binary gave error exit status 2
any ideas?
--
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
Hi, i have followed the instructions and the build and install worked fine for me after installing the stated dependencies (on Ubuntu 7.10 - amd64). Furthermore, i managed to get pgadmin3 it to work fine after install (at least as far as creating a new table, column, key, inserting a row and selecting it out - all against postgreSQL 8.3.0). -which is a lot further than i could go with the previous version. Thanks for your work and clear instructions! As a user of PostgreSQL for one day, and (2 week) novice of *nix world, i am ecstatic at the documentation and support that has enabled me to get this far! Let me know if there's anything i can provide that may be of use to you in making this package available to everyone. Regards, RuiDC Raphaël Enrici-4 wrote: > > Hi Joost, > sorry, my fault. Can you please re-download updated files from [1], retry > the build and let me know if it's ok for you. > > > Thanks, > Raphaël > [1] http://www.enrici.com/debian/pgadmin/debian/1.8.2/ > > > On 01/03/2008, Joost Kraaijeveld <J.Kraaijeveld@askesis.nl> wrote: >> >> Hi Raphaël, >> >> I have tried to build PgAdmin but it doe not work OOTB. >> >> It stops saying: >> >> make[1]: Leaving directory `/home/jkr/src/pgadmin-src/pgadmin3-1.8.2' >> [ ! -f TODO.txt ] && echo "Please consult: >> http://www.pgadmin.org/development/todo.php" > TODO.txt || true >> # move pgadmin3.mo files to locales directory >> # this part was written by Andreas Tille <tille@debian.org> >> for loc in `find debian/tmp -name pgadmin3.mo` ; do \ >> LOC=`echo ${loc} | sed >> "s?.*pgadmin3/i18n/\(.*\)/pgadmin3.mo?\1?"` ; \ >> mkdir -p debian/pgadmin3/usr/share/locale/${LOC}/LC_MESSAGES ; >> \ >> mv ${loc} >> debian/pgadmin3/usr/share/locale/${LOC}/LC_MESSAGES/. >> ; \ >> done >> # moved dh_install here as it is common to indep and arch >> # by being there dh_install can warn about forgotten files as it is >> # acting on both pgadmin3 and pgadmin3-data packages. (RE) >> # (note that we could also use --fail-missing instead of --list-mising) >> dh_install --list-missing >> cp: cannot stat `debian/tmp/usr/share/pgadmin3/ui': No such file or >> directory >> dh_install: command returned error code 256 >> make: *** [install] Error 1 >> dpkg-buildpackage: failure: fakeroot debian/rules binary gave error exit >> status 2 >> >> >> any ideas? >> >> >> -- >> >> Groeten, >> >> Joost Kraaijeveld >> Askesis B.V. >> Molukkenstraat 14 >> 6524NB Nijmegen >> tel: 024-3888063 / 06-51855277 >> fax: 024-3608416 >> web: www.askesis.nl >> >> > > -- View this message in context: http://www.nabble.com/Compiling-PgAdmin-1.8.x-on-Debian-Lenny-AMD64---tp15496764p15905230.html Sent from the PostgreSQL - pgadmin support mailing list archive at Nabble.com.