Bas van der Vlies wrote:
> Hello,
>
> I am trying to build the debian packages from the trunk version of
> systemimager.
>
> Here are some problems that i have encounterd:
> - First the trunk version is 2.9.3. So i changed the debian/changelog
> else we immediately get an error
s/2.9.3/3.9.2/ :-)
Fixed, thanks.
>
> - Second there is no manpage for si_installbtimage, debian/rules
> mv
> $(CURDIR)/debian/$(PKG)-server/usr/share/man/man8/si_installbtimage.8.gz\
> #$(CURDIR)/debian/$(PKG)-server-bittorrent/usr/share/man/man8
Sorry... I don't understand. It seems to be there:
$ dpkg --contents systemimager-server-bittorrent_3.9.3.svn4173_all.deb | grep
si_installbtimage
-rwxr-xr-x root/root 13446 2007-08-14 21:34 ./usr/sbin/si_installbtimage
-rw-r--r-- root/root 2939 2007-08-14 21:34
./usr/share/man/man8/si_installbtimage.8.gz
>
> - The process of building the amd64
> 1) systemimager-boot-amd64-standard_3.9.2_all.deb
> 2) systemimager-initrd-template-amd64_3.9.2_all.deb
>
> goes wrong because it tries to cd to amd64 directory. That is the
> architecture for a debian packagem but the directory is named x86_64. I
> did not rename the directory but i made an extra statement in
> debian/rules that
> if architecture is amd64 then use COPY_ARCH=x86_64:
>
> COPY_ARCH = $(shell if [ "${ARCH}" == "amd64" ]; then echo "x86_64";
> else echo ${ARCH}; fi)
>
> So in the amd64 package the directories have the name x86_64. So we do
> have to change a lot of scripts
>
> I have attached the rules file that i use and worked for me ;-)
>
> Also i changed all occurrences in debian/control file from x86_64 to
> amd64 else we also can not make the packages mentioned above
>
So do you suggest to replace x86_64 to amd64? What do you think about the
following patch?
Thanks for the hints. I'm a newbie in Debian packaging and this kind of help is
very useful.
-Andrea
---
Index: debian/control.in
===================================================================
--- debian/control.in (revision 4177)
+++ debian/control.in (working copy)
@@ -22,7 +22,7 @@
Package: systemimager-client
Architecture: all
-Depends: ${perl:Depends}, file, rsync, netcat,
systemimager-initrd-template-alpha | systemimager-initrd-template-i386 |
systemimager-initrd-template-ia64 | systemimager-initrd-template-parisc |
systemimager-initrd-template-ppc64-iSeries |
systemimager-initrd-template-ppc64-ps3 | systemimager-initrd-template-ppc64 |
systemimager-initrd-template-ppc64ydl | systemimager-initrd-template-ppc |
systemimager-initrd-template-x86_64, systemimager-common (= ${source:Version}),
systemconfigurator (>= 2.2.9)
+Depends: ${perl:Depends}, file, rsync, netcat,
systemimager-initrd-template-alpha | systemimager-initrd-template-i386 |
systemimager-initrd-template-ia64 | systemimager-initrd-template-parisc |
systemimager-initrd-template-ppc64-iSeries |
systemimager-initrd-template-ppc64-ps3 | systemimager-initrd-template-ppc64 |
systemimager-initrd-template-ppc64ydl | systemimager-initrd-template-ppc |
systemimager-initrd-template-amd64, systemimager-common (= ${source:Version}),
systemconfigurator (>= 2.2.9)
Description: Utilities for creating an image and upgrading client machines
SystemImager is a set of utilities for installing GNU/Linux software images to
clients machines over the network. Images are stored in flat files on the
Index: debian/systemimager-initrd-template-x86_64-standard.postinst
===================================================================
--- debian/systemimager-initrd-template-x86_64-standard.postinst
(revision 4177)
+++ debian/systemimager-initrd-template-x86_64-standard.postinst
(working copy)
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-ARCH=`uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e
s/sa110/arm/`
-INITRD_TEMPLATE_DIR=/usr/share/systemimager/boot/${ARCH}/standard/initrd_template
-
-cd ${INITRD_TEMPLATE_DIR}/dev && MAKEDEV std tty1 tty2 tty3 tty4 tty5 tty6
-
-#DEBHELPER#
Index: debian/systemimager-boot-x86_64-standard.postinst
===================================================================
--- debian/systemimager-boot-x86_64-standard.postinst (revision 4177)
+++ debian/systemimager-boot-x86_64-standard.postinst (working copy)
@@ -1,8 +0,0 @@
-#!/bin/sh
-if [ -e /tftpboot/kernel -o -e /tftpboot/initrd.img ]; then
- echo
- echo "WARNING: remember to update the kernel and initrd.img in
/tftpboot!"
- echo
-fi
-
-#DEBHELPER#
Index: debian/rules
===================================================================
--- debian/rules (revision 4177)
+++ debian/rules (working copy)
@@ -24,7 +24,7 @@
-p $(PKG)-server-flamethrowerd \
-p $(PKG)-server-bittorrent
-BOOTARCHS = alpha i386 ia64 parisc ppc64-iSeries ppc64-ps3 ppc64 ppc64ydl ppc
x86_64
+BOOTARCHS = alpha i386 ia64 parisc ppc64-iSeries ppc64-ps3 ppc64 ppc64ydl ppc
amd64
PATCHES=$(sort $(shell find $(CURDIR)/patches -name "*.patch"))
--- /dev/null 2007-04-17 07:20:02.000000000 +0200
+++ debian/systemimager-initrd-template-amd64-standard.postinst 2007-08-15
16:01:34.000000000 +0200
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+ARCH=`uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e
s/sa110/arm/`
+INITRD_TEMPLATE_DIR=/usr/share/systemimager/boot/${ARCH}/standard/initrd_template
+
+cd ${INITRD_TEMPLATE_DIR}/dev && MAKEDEV std tty1 tty2 tty3 tty4 tty5 tty6
+
+#DEBHELPER#
--- /dev/null 2007-04-17 07:20:02.000000000 +0200
+++ debian/systemimager-boot-amd64-standard.postinst 2007-08-15
16:01:13.000000000 +0200
@@ -0,0 +1,8 @@
+#!/bin/sh
+if [ -e /tftpboot/kernel -o -e /tftpboot/initrd.img ]; then
+ echo
+ echo "WARNING: remember to update the kernel and initrd.img in
/tftpboot!"
+ echo
+fi
+
+#DEBHELPER#
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users