LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-28-2015, 05:07 AM   #1
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38

Rep: Reputation: 1
Connection Linux --> PDA WindowsCE


Good morning,
My question is this Debian-Jessie:
In the company I have a PDA "Datalogic Memor X3 (WindowsCE)" USB connected "/ dev / ttyUSB0" used for making stock.

Currently with Debian Wheezy I get copy the "\ My Documents \ Datos.dat" file with the

"apt-get install synce-hal librapi2-tools"
https://packages.debian.org/es/wheezy/synce-hal
https://packages.debian.org/es/wheezy/librra-tools

package directly from a "sript" no need desktop.

My problem is that there is no package in Jessie.
I have the "deb" installation for Wheezy,
how could I do to install in Jessie?

Try the "synce-serial" existing in Jessie, installs and configures well, but can not find documentation to create a "script" to back pack.

You know any package that can connect to a WindowsCE, console or desktop?

As a last alternative would change Debian for windows, but I would not take a step back.

Thanks for reading and provide some knowledge or idea.

Last edited by barnarasta; 11-28-2015 at 12:03 PM.
 
Old 12-01-2015, 12:17 PM   #2
Ihatewindows522
Member
 
Registered: Oct 2014
Location: Fort Wayne
Distribution: Ubuntu 16.04 LTS
Posts: 616
Blog Entries: 2

Rep: Reputation: 166Reputation: 166
Well, all other things being equal, you should be able to just run
Code:
sudo dpkg -i [package(s)]
If this is a mission critical system, I'd try it in a VM first so you don't bork up your good system.
 
Old 12-02-2015, 10:07 AM   #3
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38

Original Poster
Rep: Reputation: 1
Thanks for your interest,Ihatewindows522,
no problem to do all kinds of tests, I use a non-critical computer exclusively for test before passing it to production-computer .

I made copies of the depends of synce-hal from Wheezy ==> Jessie.

Quote:
root@pruebajessie:/usr/bin# ldd synce-database
linux-vdso.so.1 => (0x00007ffc8059a000)
librapi.so.2 => /usr/lib/librapi.so.2 (0x00007ffb39e1e000)
libsynce.so.0 => /usr/lib/libsynce.so.0 (0x00007ffb39c05000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ffb399e8000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ffb3965d000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ffb393db000)
libhal.so.1 => /usr/lib/libhal.so.1 (0x00007ffb391c8000)
libdbus-glib-1.so.2 => /usr/lib/x86_64-linux-gnu/libdbus-glib-1.so.2 (0x00007ffb38fa1000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007ffb38d5b000)
libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007ffb38b0a000)
libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007ffb38908000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007ffb38700000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007ffb38407000)
/lib64/ld-linux-x86-64.so.2 (0x00007ffb3a04f000)
libgio-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007ffb380b4000)
libffi.so.5 => /usr/lib/x86_64-linux-gnu/libffi.so.5 (0x00007ffb37ea6000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007ffb37c69000)
libgmodule-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007ffb37a65000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ffb3784d000)
libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007ffb3762d000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007ffb37417000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ffb37212000)
and binaries files:
Quote:
root@pruebajessie:/usr/bin# ls -l synce*
-rwxr-xr-x 1 root root 17200 jun 11 2011 synce-database
-rwxr-xr-x 1 root root 706 jun 11 2011 synce-install-cab
-rwxr-xr-x 1 root root 8024 jun 11 2011 synce-list-programs
-rwxr-xr-x 1 root root 20216 jun 11 2011 synce-pcp
-rwxr-xr-x 1 root root 6864 jun 11 2011 synce-pkillall
-rwxr-xr-x 1 root root 17072 jun 11 2011 synce-pls
-rwxr-xr-x 1 root root 12312 jun 11 2011 synce-pmkdir
-rwxr-xr-x 1 root root 12632 jun 11 2011 synce-pmv
-rwxr-xr-x 1 root root 12312 jun 11 2011 synce-prm
-rwxr-xr-x 1 root root 12312 jun 11 2011 synce-prmdir
-rwxr-xr-x 1 root root 12704 jun 11 2011 synce-prun
-rwxr-xr-x 1 root root 6864 jun 11 2011 synce-psettime
-rwxr-xr-x 1 root root 13224 jun 11 2011 synce-pshortcut
-rwxr-xr-x 1 root root 11048 jun 11 2011 synce-pstatus
-rwxr-xr-x 1 root root 22504 jun 11 2011 synce-registry
-rwxr-xr-x 1 root root 448 jun 11 2011 synce-remove-program

dpkg -i synce-hal_0.15-1_amd64.deb
Quote:
root@pruebajessie:/tmp# dpkg -i synce-hal_0.15-1_amd64.deb
(Leyendo la base de datos ... 91140 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar synce-hal_0.15-1_amd64.deb ...
Desempaquetando synce-hal (0.15-1) ...
dpkg: problemas de dependencias impiden la configuraci≤n de synce-hal:
synce-hal depende de libgnet2.0-0 (>= 2.0.8); sin embargo:
El paquete `libgnet2.0-0' no estß instalado.
synce-hal depende de libsynce0; sin embargo:
El paquete `libsynce0' no estß instalado.
synce-hal depende de dhcp3-client; sin embargo:
El paquete `dhcp3-client' no estß instalado.
synce-hal depende de hal; sin embargo:
El paquete `hal' no estß instalado.

dpkg: error al procesar el paquete synce-hal (--install):
problemas de dependencias - se deja sin configurar
Procesando disparadores para dbus (1.8.20-0+deb8u1) ...
Se encontraron errores al procesar:
synce-hal
Ejecute file # synce-pls
Quote:
root@pruebajessie:/tmp# synce-pls

** (process:4654): WARNING **: synce_info_from_hal: Failed to obtain list of attached devices: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Hal was not provided by any .service files
synce-pls: Could not find configuration at path '(Default)'
 
Old 12-03-2015, 03:11 PM   #4
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38

Original Poster
Rep: Reputation: 1
Quote:
Hi SynCE users & developers,

it looks like the current Debian SynCE maintainer (Jonny Lamb) is not active anymore.

Debian SynCE packages seem to be outdated;
more to say, they depend on deprecated HAL, which may eventually lead to package removal:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613179
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613196

Thus, any volunteers are welcome

Ubuntu currently just pulls many packages from Debian and just rebuilds them without modification, so there's no need for a separate Ubuntu maintainer.

By the way, SynCE project already seems to have a Launchpad PPA:
https://launchpad.net/~synce/+archive/ppa
thus, the Debian packaging should not be a big problem
http://sourceforge.net/p/synce/discussion
 
Old 12-05-2015, 03:49 PM   #5
bobbib
LQ Newbie
 
Registered: Dec 2015
Distribution: Debian
Posts: 16

Rep: Reputation: 5
Question

Hi barnarasta, thanks for inviting me to this forum

Unfortunately, in the past, I didn't succeed trying to connect a WinCE device to a Linux PC with SynCE; more to say, currenlty I don't have a WinCE device at hand... So, related to this particular issue, maybe I'm more newbie than you

Well, from what I've read here:
  • to prepare a working environment on a fresh Debian Wheezy system, you only need to install 2 packages: "synce-hal" and "librapi2-tools";
  • after installing those packages, the only utility you use to work with your WinCE device is "synce-pls".
Is it right?
 
Old 12-07-2015, 09:12 AM   #6
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38

Original Poster
Rep: Reputation: 1
Welcome to the forum bobbid,
I confirm:
I'm using Wheezy with 'synce-hal' to read data from a (USB) PDA-DataLogix-Memor X3 with WindowsCE 6.0 from console.

The commands I use a '/bin/bash' are:
synce-pls / ===> to list the contents of the PDA.
synce-pcp ":\My Documents\Datos.dat" /tmp/datos.dat ===> copy Datos.dat the file (PDA) to Wheezy/tmp/datos.dat
synce-prm ":\My Documents\Datos.dat" ====> to delete the file to the PDA.

There are other commands that you can see and experience in /usr/bin/synce* I do not use.
I think you can also experiment with any mobile phone that has WindowsCE.

When I connect the PDA to the USB it appears on /dev/ttyUSB0.
and /var/log/syslog message:

Quote:
kernel: [ 1430.884028] usb 1-7: new high-speed USB device number 4 using ehci_hcd
kernel: [ 1431.032061] usb 1-7: New USB device found, idVendor=045e, idProduct=00ce
kernel: [ 1431.032068] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: [ 1431.032072] usb 1-7: Product: Datalogic USB Sync
kernel: [ 1431.032076] usb 1-7: Manufacturer: Datalogic S.p.A.
kernel: [ 1431.032079] usb 1-7: SerialNumber: e6461300-4604-0801-500e-004769090000 checking bus 1, device 4: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7"
mtp-probe: bus: 1, device: 4 was not an MTP device
kernel: [ 1431.104067] usbcore: registered new interface driver usbserial
kernel: [ 1431.104095] USB Serial support registered for generic
kernel: [ 1431.104147] usbcore: registered new interface driver usbserial_generic
kernel: [ 1431.104150] usbserial: USB Serial Driver core
kernel: [ 1431.118172] USB Serial support registered for PocketPC PDA
kernel: [ 1431.118216] ipaq 1-7:1.0: PocketPC PDA converter detected
kernel: [ 1431.118509] usb 1-7: PocketPC PDA converter now attached to ttyUSB0
kernel: [ 1431.118523] usbcore: registered new interface driver ipaq
kernel: [ 1431.118524] ipaq: v1.0:USB PocketPC PDA driver
modem-manager[2673]: <info> (ttyUSB0) opening serial port...
modem-manager[2673]: <info> (ttyUSB0) closing serial port...
acpid: client connected from 2749[0:0]
kernel: [ 1748.112048] usb 1-7: new high-speed USB device number 5 using ehci_hcd
kernel: [ 1748.260281] usb 1-7: New USB device found, idVendor=045e, idProduct=00ce
kernel: [ 1748.260287] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: [ 1748.260292] usb 1-7: Product: Datalogic USB Sync
kernel: [ 1748.260295] usb 1-7: Manufacturer: Datalogic S.p.A.
kernel: [ 1748.260299] usb 1-7: SerialNumber: e6461300-4604-0801-500e-004769090000
kernel: [ 1748.262490] ipaq 1-7:1.0: PocketPC PDA converter detected
kernel: [ 1748.263832] usb 1-7: PocketPC PDA converter now attached to ttyUSB0
mtp-probe: checking bus 1, device 5: "/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-7"
mtp-probe: bus: 1, device: 5 was not an MTP device
dbus[2335]: [system] Activating service name='org.freedesktop.Hal' (using servicehelper)
dbus[2335]: [system] Successfully activated service 'org.freedesktop.Hal'
acpid: client connected from 5638[116:124]
acpid: 1 client rule loaded
pppd[5646]: pppd 2.4.5 started by root, uid 0
kernel: [ 1794.900708] PPP generic driver version 2.4.2
pppd[5646]: Serial connection established.
pppd[5646]: Using interface ppp0
pppd[5646]: Connect: ppp0 <--> /dev/ttyUSB0
NetworkManager[2613]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
NetworkManager[2613]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
kernel: [ 1796.404499] PPP BSD Compression module registered
kernel: [ 1796.417983] PPP Deflate Compression module registered
pppd[5646]: local IP address 192.168.131.1
pppd[5646]: remote IP address 192.168.131.129
# lsusb
Quote:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 1307:0330 Transcend Information, Inc. 63-in-1 Multi-Card Reader/Writer
Bus 002 Device 002: ID 1bcf:0005 Sunplus Innovation Technology Inc.
Bus 001 Device 005: ID 045e:00ce Microsoft Corp. Generic PPC Flash device
# ifconfig
Quote:
eth0 Link encap:Ethernet HWaddr 10:78:d2:74:b9:34
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::1278:d2ff:fe74:b934/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6446 errors:0 dropped:0 overruns:0 frame:0
TX packets:4631 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2269456 (2.1 MiB) TX bytes:663274 (647.7 KiB)
Interrupt:42 Base address:0xe000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:480 (480.0 B) TX bytes:480 (480.0 B)

ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.131.1 P-t-P:192.168.131.129 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:113 errors:0 dropped:0 overruns:0 frame:0
TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:6352 (6.2 KiB) TX bytes:5839 (5.7 KiB)

Last edited by barnarasta; 12-07-2015 at 09:16 AM.
 
Old 12-13-2015, 09:23 PM   #7
bobbib
LQ Newbie
 
Registered: Dec 2015
Distribution: Debian
Posts: 16

Rep: Reputation: 5
Post

barnarasta, thanks for verbose logs.

Actually, both of the discussed Wheezy binary packages, synce-hal and librapi2-tools, depend (directly or indirectly) on hal package; HAL is a framework which had been abandoned upstream and was finally removed from Debian in 2014.

Those SynCE packages <synce-hal (0.15-1.1), libsynce (0.15-1.1), librapi2 (0.15-2.2) and maybe more> had become unmaintained (you've already read my "advertisement" on SF forums) and outdated in Debian, and were eventually removed in 2013 because of HAL dependencies. They've come from an old SynCE release 0.15.

And synce-serial (0.11-5.3) is even older (SynCE 0.11); it has been probably just overlooked.

---

I've looked into the "synce-core-0.17.tar.gz" tarball from the current synce-core, and it looks like the "pls", "pcp" and other utilities are now there.

Don't know for sure whether any other software packages are needed for it to work.

---

Probably, this PPA needs to be checked, to avoid packaging / compiling SynCE from scratch in Debian (maybe the packages can even be built with pbuilder without modifications).

---

Stay in touch for updates...

Last edited by bobbib; 12-13-2015 at 09:48 PM. Reason: update
 
Old 12-14-2015, 05:09 PM   #8
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38

Original Poster
Rep: Reputation: 1
Thanks for the info,
I look down the "synce-core-0.17.tar.gz",
I do not have much knowledge but will try to compile it in Jessie.

Last edited by barnarasta; 12-14-2015 at 05:10 PM.
 
Old 12-14-2015, 07:17 PM   #9
bobbib
LQ Newbie
 
Registered: Dec 2015
Distribution: Debian
Posts: 16

Rep: Reputation: 5
Lightbulb

Quote:
Originally Posted by barnarasta View Post
I do not have much knowledge but will try to compile it in Jessie.
Feel free to play; anyway, I wouldn't recommend installing too much software via the "make install" from root, since that can leave lots of garbage in the system; it's better to compile in a home directory... or use some discardable environment (chroot or VM solutions like VirtualBox, QEMU etc.)

---

Good news: "synce-core" source package from the aforementioned Ubuntu PPA, namely version for Ubuntu Trusty (" 0.17-0ubuntu0~ppa1~trusty2 "), compiles well on Debian with a little modification (replacing "dhcp3-client" with "isc-dhcp-client" in Build-Depends).

Last edited by bobbib; 12-15-2015 at 09:57 PM. Reason: update
 
Old 12-16-2015, 04:49 PM   #10
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by bobbib View Post
Feel free to play; anyway, I wouldn't recommend installing too much software via the "make install" from root, since that can leave lots of garbage in the system; it's better to compile in a home directory... or use some discardable environment (chroot or VM solutions like VirtualBox, QEMU etc.)

---

Good news: "synce-core" source package from the aforementioned Ubuntu PPA, namely version for Ubuntu Trusty (" 0.17-0ubuntu0~ppa1~trusty2 "), compiles well on Debian with a little modification (replacing "dhcp3-client" with "isc-dhcp-client" in Build-Depends).
Good night bobbid, I explain what i was doing for Jessie
compile the "synce-core-0.17.tar.gz" tarball downloaded to
http://sourceforge.net/projects/sync...CE/synce-core/

I installed the equipment to perform the compilation:
apt-get install build-essential
apt-get install kernel-package
apt-get install module-assistant


then perform the extraction of 'gz' and between the appropriate folder.
tar xvfz synce-core-0.17.tar.gz
cd synce-core-0.17
First attempt
./configure

Answered:
Quote:
configure: error: in `/synce-core-0.17 ':
configure: error: The pkg-config script Could not be found or is too old. Make sure it
or is in your PATH environment Variable Set the PKG_CONFIG to the full
path to pkg-config.

Alternatively, you May Set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http: //pkg-config.fr...edesktop.org/>.
See `config.log 'for more details
'apt-get install pkg-config'
Second attempt
Quote:
configure: error: Package requirements (glib-2.0 >= 2.7, gobject-2.0 >= 2.4, gio-2.0 >= 2.22, gio-unix-2.0 >= 2.22) were not met:

No package 'glib-2.0' found
No package 'gobject-2.0' found
No package 'gio-2.0' found
No package 'gio-unix-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GLIB_CFLAGS
and GLIB_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
Search and find the required packages:
apt-get install libgtk2.0-dev

third attempt
Quote:
configure: error: udev support requested but D-Bus could not be found
and I can not do more research, but the fact is that now if you do not know how to
continue.

In your note read:
"Little modification (Replacing" dhcp3-client "with" isc-dhcp-client "in Build-Depends)."
It is very interesting!

I look in the file "configure" the expression "dhcp3-client" to replace him, but found nothing,
that file is?

Thanks for your help and advice.

Last edited by barnarasta; 12-16-2015 at 04:53 PM.
 
Old 12-16-2015, 08:04 PM   #11
bobbib
LQ Newbie
 
Registered: Dec 2015
Distribution: Debian
Posts: 16

Rep: Reputation: 5
Post building Debian packages

barnarasta, now you see how complex the manual compilation process can be
Fortunately, when someone has prepared a package for Debian, it is no longer necessary.

---

Regarding the modifications, I didn't mean an upstream tarball from here;
instead, I mean a source package from this SynCE PPA (PPA is for personal package archives, unofficial Ubuntu repositories). To get the "synce-core" source package from there:
  1. click "View package details", and it'll go to https://launchpad.net/~synce/+archiv.../ppa/+packages
  2. select "Trusty" (it's the newest Ubuntu release in that list) instead of "Any series" and click "Filter", so it'll go to https://launchpad.net/~synce/+archiv..._filter=trusty
  3. click on the "synce-core" package name (currently, it's "synce-core - 0.17-0ubuntu0~ppa1~trusty2");
  4. download the source package files from the opened page ("synce-core_0.17.orig.tar.gz", "synce-core_0.17-0ubuntu0~ppa1~trusty2.debian.tar.gz", "synce-core_0.17-0ubuntu0~ppa1~trusty2.dsc").
You can notice there are also some binary packages there (*.deb), but they are built for Ubuntu Trusty and probably not compatible with Debian Jessie.

---

Source package modification.

Place the downloaded files ("synce-core_0.17.orig.tar.gz", "synce-core_0.17-0ubuntu0~ppa1~trusty2.debian.tar.gz", "synce-core_0.17-0ubuntu0~ppa1~trusty2.dsc") together in a dedicated folder (e. g., /home/user/synce-core), to be safe.

Install dpkg-dev:
# apt-get install dpkg-dev

$ cd /home/user/synce-core

Unpack the source package (will create a directory named "synce-core-0.17"):
$ dpkg-source -x synce-core_0.17-0ubuntu0~ppa1~trusty2.dsc

Edit build-depends (replace "dhcp3-client" with "isc-dhcp-client") in "syncecore/debian/control" and add a new entry into "synce-core-0.17/debian/changelog", to state it's a new package version; here's an intuitive diff:
Code:
diff -Nru synce-core-0.17/debian/changelog synce-core-0.17/debian/changelog
--- synce-core-0.17/debian/changelog
+++ synce-core-0.17/debian/changelog
@@ -1,3 +1,9 @@
+synce-core (0.17-0.1) UNRELEASED; urgency=low
+
+  * Try to build on Debian.
+
+ -- User <user@localhost>  Thu, 17 Dec 2015 01:02:03 +0000
+
 synce-core (0.17-0ubuntu0~ppa1~trusty2) trusty; urgency=low
 
   * add patch py-findallfiles-segfault.diff
diff -Nru synce-core-0.17/debian/control synce-core-0.17/debian/control
--- synce-core-0.17/debian/control
+++ synce-core-0.17/debian/control
@@ -2,7 +2,7 @@
 Section: libs
 Priority: optional
 Maintainer: Mark Ellis <mark@mpellis.org.uk>
-Build-Depends: debhelper (>= 5), libdbus-1-dev, pkg-config (>= 0.21), libglib2.0-dev (>= 2.26.0), python (>> 2.6.6), python-all-dev (>> 2.6.6), python-pyrex (>= 0.9.6), quilt, ppp, net-tools, dhcp3-client, libgudev-1.0-dev, udev, doxygen
+Build-Depends: debhelper (>= 5), libdbus-1-dev, pkg-config (>= 0.21), libglib2.0-dev (>= 2.26.0), python (>> 2.6.6), python-all-dev (>> 2.6.6), python-pyrex (>= 0.9.6), quilt, ppp, net-tools, isc-dhcp-client, libgudev-1.0-dev, udev, doxygen
 Standards-Version: 3.9.3.0
 Homepage: http://www.synce.org/
 
@@ -94,7 +94,7 @@
 
 Package: synce-dccm
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, libsynce0 (= ${binary:Version}), ppp, net-tools, dhcp3-client, python
+Depends: ${shlibs:Depends}, ${misc:Depends}, libsynce0 (= ${binary:Version}), ppp, net-tools, isc-dhcp-client, python
 Conflicts: synce-serial, synce-hal, synce-connector
 Replaces: synce-hal, odccm, synce-connector
 Breaks: synce-connector
@@ -105,7 +105,7 @@
 
 Package: synce-bluetooth
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, synce-dccm (= ${binary:Version}), bluez-compat, python
+Depends: ${shlibs:Depends}, ${misc:Depends}, synce-dccm (= ${binary:Version}), bluez, python
 Conflicts: synce-connector-bluetooth
 Replaces: synce-connector-bluetooth
 Breaks: synce-connector-bluetooth
Build an updated version of the source package (and notice the newly created files: "synce-core_0.17-0.1.debian.tar.xz" & "synce-core_0.17-0.1.dsc"):
$ dpkg-source -b synce-core-0.17

---

Preparing the build system (on Debian Jessie; needs access to Debian repositories, e. g., your default Debian Internet mirror).

Install pbuilder:
# apt-get install pbuilder

Create a configuration file ("/root/.pbuilderrc"; needs superuser privileges) with the following contents:
Code:
# Target distribution
DISTRIBUTION=jessie
# By default, pbuilder uses "/var/cache/pbuilder/aptcache" for package cache;
# why not try reusing the packages from the system's APT cache?
APTCACHE=/var/cache/apt/archives
Create the base build image:
# pbuilder create

In case you've created the base image long time ago, update it:
# pbuilder update

---

Actual binary packages building process from the source package.

Go to the directory where your source package's files ("synce-core_0.17.orig.tar.gz", "synce-core_0.17-0.1.debian.tar.xz", "synce-core_0.17-0.1.dsc") are stored:
$ cd /home/user/synce-core

Start the builder:
# pbuilder build synce-core_0.17-0.1.dsc

Wait...

If everything finishes well, you'll see a bunch of new files:
$ ls /var/cache/pbuilder/result
Code:
libsynce0_0.17-0.1_amd64.deb
libsynce0-dev_0.17-0.1_amd64.deb
libsynce-dbg_0.17-0.1_amd64.deb
python-rapi2_0.17-0.1_amd64.deb
synce-bluetooth_0.17-0.1_amd64.deb
synce-core_0.17-0.1_amd64.changes
synce-core_0.17-0.1.debian.tar.xz
synce-core_0.17-0.1.dsc
synce-core_0.17.orig.tar.gz
synce-dccm_0.17-0.1_amd64.deb
synce-doc_0.17-0.1_all.deb
synce-tools_0.17-0.1_amd64.deb
The highlighted ones are binaries; the rest is a repack of the source package, including a description of changes.

---

Then, you'll probably need to test installing some of those packages (the last command should install the missing dependencies, if any; it can also remove some packages with non-satisfied depends):
$ cd /var/cache/pbuilder/result
# dpkg -i libsynce0_0.17-0.1_amd64.deb synce-dccm_0.17-0.1_amd64.deb synce-tools_0.17-0.1_amd64.deb
# apt-get -f install

---

And finally, you can try testing the device connectivity etc.

Last edited by bobbib; 12-17-2015 at 09:28 PM. Reason: update
 
1 members found this post helpful.
Old 12-17-2015, 02:24 PM   #12
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38

Original Poster
Rep: Reputation: 1
Thanks for all this information, I'm really learning a lot.

Problems arose to build new package because the file format "changelog".

Summary of the activity:

1) Make the working directory <=============OK
/home/user/synce-core
--------------------------------------
2) Download Files in /home/user/synce-core <==== OK
synce-core_0.17-0ubuntu0~ppa1~trusty2.debian.tar.gz
synce-core_0.17-0ubuntu0~ppa1~trusty2.dsc
synce-core_0.17.orig.tar.gz
--------------------------------------
3) Install ,configure pbuilder and create <====== OK
-------------------------
4) dpkg-source -x synce-core_0.17-0ubuntu0~ppa1~trusty2.dsc
------------- It is self-created synce-core-0.17 <=============== OK
5) /home/user/synce-core/synce-core-0.17/debian file control
replacing 'dhcp3-client" ==> "isc-dhcp-client", lines 5 and 97 <=========== OK
---------------------------------------------
6) /home/user/synce-core/synce-core-0.17/debian file changelog
Quote:
synce-core (0.17-0.1) JESSIE; urgency=low

* Try to build on Debian.

-- User <user@localhost> Thu, 17 Dec 2015 01:02:03 +0000
Section: libs
Priority: optional
Maintainer: Mark Ellis <mark@mpellis.org.uk>
-Build-Depends: debhelper (>= 5), libdbus-1-dev, pkg-config (>= 0.21), libglib2.0-dev (>= 2.26.0), python (>> 2.6.6), python-all-dev (>> 2.6.6), python-pyrex (>= 0.9.6), quilt, ppp, net-tools, dhcp3-client, libgudev-1.0-dev, udev, doxygen
+Build-Depends: debhelper (>= 5), libdbus-1-dev, pkg-config (>= 0.21), libglib2.0-dev (>= 2.26.0), python (>> 2.6.6), python-all-dev (>> 2.6.6), python-pyrex (>= 0.9.6), quilt, ppp, net-tools, isc-dhcp-client, libgudev-1.0-dev, udev, doxygen
--------------------------------------------------------
7) Build an updated source package
# cd /home/user/synce-core
# dpkg-source -b synce-core-0.17
It has these errors:
Quote:
parsechangelog/debian: warning: synce-core-0.17/debian/changelog(l6): line header have invalid format.
LINE: Section: libs
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l7): line header have invalid format.
LINE: Priority: optional
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l8): line header have invalid format.
LINE: Maintainer: Mark Ellis <mark@mpellis.org.uk>
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l9): line header have invalid format.
LINE: -Build-Depends: debhelper (>= 5), libdbus-1-dev, pkg-config (>= 0.21), libglib2.0-dev (>= 2.26.0), python (>> 2.6.6), python-all-dev (>> 2.6.6), python-pyrex (>= 0.9.6), quilt, ppp, net-tools, dhcp3-client, libgudev-1.0-dev, udev, doxygen
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l10): line header have invalid format.
LINE: +Build-Depends: debhelper (>= 5), libdbus-1-dev, pkg-config (>= 0.21), libglib2.0-dev (>= 2.26.0), python (>> 2.6.6), python-all-dev (>> 2.6.6), python-pyrex (>= 0.9.6), quilt, ppp, net-tools, isc-dhcp-client, libgudev-1.0-dev, udev, doxygen
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l6): line header have invalid format.
LINE: Section: libs
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l7): line header have invalid format.
LINE: Priority: optional
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l8): line header have invalid format.
LINE: Maintainer: Mark Ellis <mark@mpellis.org.uk>
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l9): line header have invalid format.
LINE: -Build-Depends: debhelper (>= 5), libdbus-1-dev, pkg-config (>= 0.21), libglib2.0-dev (>= 2.26.0), python (>> 2.6.6), python-all-dev (>> 2.6.6), python-pyrex (>= 0.9.6), quilt, ppp, net-tools, dhcp3-client, libgudev-1.0-dev, udev, doxygen
parsechangelog/debian: aviso: synce-core-0.17/debian/changelog(l10): line header have invalid format.
LINE: +Build-Depends: debhelper (>= 5), libdbus-1-dev, pkg-config (>= 0.21), libglib2.0-dev (>= 2.26.0), python (>> 2.6.6), python-all-dev (>> 2.6.6), python-pyrex (>= 0.9.6), quilt, ppp, net-tools, isc-dhcp-client, libgudev-1.0-dev, udev, doxygen
I did the same order with the original 'changelog' and also gave the same type of error.

Maybe Jessie format for CHANGELOG has changed. ???

Thanks again for your time.
 
Old 12-17-2015, 05:10 PM   #13
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38

Original Poster
Rep: Reputation: 1
I discovered the "DCH" tool to build and validate "changelog".

http://manpages.ubuntu.com/manpages/...an1/dch.1.html

Tomorrow I test it and comment.
 
Old 12-17-2015, 08:56 PM   #14
bobbib
LQ Newbie
 
Registered: Dec 2015
Distribution: Debian
Posts: 16

Rep: Reputation: 5
barnarasta, I supposed you're familiar with diff format, sorry;
in short words, it's a summary of differences between the original and modified files: "+" meaning insertion, "-" meaning deletion;
for detailed description, please refer to https://en.wikipedia.org/wiki/Diff_u...Unified_format and https://en.wikipedia.org/wiki/Patch_...Usage_examples.

-

BTW, just to make sure everyone understands this forum thread correctly: command lines starting with "$" are meant to be run from an ordinary users; "#" means superuser ("root"), and are supposed to be executed with "sudo" (or switching to the root user with "su" at first and then running that command).

---

Oh, I've missed one instance of "dhcp3-client" to replace; thanks for noticing!
I haven't tried to install the built packages, so I've missed something.
So I've just updated the long post

---

Yes, you can create new Debian package changelog entries with "debchange" ("dch"). It's included in the "devscripts" Debian package. Great find

Last edited by bobbib; 12-17-2015 at 09:28 PM. Reason: update
 
Old 12-18-2015, 11:53 AM   #15
barnarasta
Member
 
Registered: Oct 2012
Location: Spain
Distribution: Debian Squeeze-Wheezy-stretch-Buster \/ Unix SCO 5.7. in production, not for play.
Posts: 38

Original Poster
Rep: Reputation: 1
Continuing WORK
6)# cd /home/user/synce-core/synce-core-0.17
dch -v 0.17-0.1
autogenerate changelog
Quote:
synce-core (0.17-0.1) UNRELEASED; urgency=medium
*
*< Build-Depends: debhelper (>= 5), libdbus-1-dev, pkg-config (>= 0.21), libglib2.0-dev (>= 2.26.0), python (>> 2.6.6), python-all-dev (>> 2.6.6), python-pyrex (>= 0.9.6), quilt, ppp, net-tools, dhcp3-client, libgudev-1.0-dev, udev, doxygen
*> Build-Depends: debhelper (>= 5), libdbus-1-dev, pkg-config (>= 0.21), libglib2.0-dev (>= 2.26.0), python (>> 2.6.6), python-all-dev (>> 2.6.6), python-pyrex (>= 0.9.6), quilt, ppp, net-tools, isc-dhcp-client, libgudev-1.0-dev, udev, doxygen
*< Depends: ${shlibsepends}, ${miscepends}, libsynce0 (= ${binary:Version}), ppp, net-tools, dhcp3-client, python
*> Depends: ${shlibsepends}, ${miscepends}, libsynce0 (= ${binary:Version}), ppp, net-tools, isc-dhcp-client, python
-- root <agb@debian.jessie.test> Fri, 18 Dec 2015 18:15:48 +0100

synce-core (0.17-0ubuntu0~ppa1~trusty2) trusty; urgency=low

* add patch py-findallfiles-segfault.diff
-- Mark Ellis <mark@mpellis.org.uk> Fri, 24 Jan 2014 11:27:38 +0000

synce-core (0.17-0ubuntu0~ppa1~saucy1) saucy; urgency=low

* New upstream release
* Switch to dpkg-source 3.0 (quilt) format
* add documentation package synce-doc
* remove build-dep on dbus-glib, depend on glib >= 2.26 and libdbus-1-dev,
building with GDBus instead of dbus-glib
* remove dh_pycentral in favour of dh_python2
* add python dependency to synce-tools and synce-bluetooth
* breaks synce-connector-*
* bump standards-version to 3.9.3.0
* correct bluetooth init script
* add debhelper token to maintainer scripts, and check for errors
* add build-arch and build-indep targets, add rules to binary-indep
target for documentation
* fix dccm package mainainer scripts
-- Mark Ellis <mark@mpellis.org.uk> Thu, 25 Jul 2013 16:37:26 +0100

synce-core (0.16-0ubuntu0~ppa1~precise1) precise; urgency=low

* Initial full release
* remove dep on libgnet, now use gio
* rename synce-connector to synce-dccm, synce-connector-bluetooth
to synce-bluetooth
* don't install libtool .la files
-- Mark Ellis <mark@mpellis.org.uk> Wed, 30 May 2012 15:38:46 +0100

synce-core (0.16~20110725-0ubuntu0~ppa1~oneiric1) oneiric; urgency=low

* Initial packaging.
-- Mark Ellis <mark@mpellis.org.uk> Mon, 25 Jul 2011 20:27:20 +0100
# dpkg-source -b synce-core-0.17
newfiles => synce-core_0.17-0.1.debian.tar.xz , synce-core_0.17-0.1.dsc

# pbuilder build synce-core_0.17-0.1.dsc
and several minutes later ........
/var/cache/pbuilder/result
Quote:
libsynce0_0.17-0.1_amd64.deb
libsynce0-dev_0.17-0.1_amd64.deb
libsynce-dbg_0.17-0.1_amd64.deb
python-rapi2_0.17-0.1_amd64.deb
synce-bluetooth_0.17-0.1_amd64.deb
synce-core_0.17-0.1_amd64.changes
synce-core_0.17-0.1.debian.tar.xz
synce-core_0.17-0.1.dsc
synce-core_0.17.orig.tar.gz
synce-dccm_0.17-0.1_amd64.deb
synce-doc_0.17-0.1_all.deb
synce-tools_0.17-0.1_amd64.deb
TEST INSTALLATION
# dpkg -i libsynce0_0.17-0.1_amd64.deb =====> OK
# dpkg -i synce-dccm_0.17-0.1_amd64.deb =====> OK
# dpkg -i synce-tools_0.17-0.1_amd64.deb =====> OK
# dpkg -i synce-doc_0.17-0.1_all.deb ========> OK
# dpkg -i libsynce0-dev_0.17-0.1_amd64.deb =====> OK
# dpkg -i libsynce-dbg_0.17-0.1_amd64.deb =======> OK
# dpkg -i python-rapi2_0.17-0.1_amd64.deb =======> OK




ls -1 /usr/bin/synce*
Quote:
/usr/bin/synce-database
/usr/bin/synce-install-cab
/usr/bin/synce-list-programs
/usr/bin/synce-pcp
/usr/bin/synce-pkillall
/usr/bin/synce-pls
/usr/bin/synce-pmkdir
/usr/bin/synce-pmv
/usr/bin/synce-prm
/usr/bin/synce-prmdir
/usr/bin/synce-prun
/usr/bin/synce-psettime
/usr/bin/synce-pshortcut
/usr/bin/synce-pstatus
/usr/bin/synce-registry
/usr/bin/synce-remove-program
/usr/bin/synce-serial
/usr/bin/synce-unlock
ls -1 /usr/lib/synce-core
Quote:
dccm
synce-serial-chat
It seems that everything is in place,
but I can not verify it completely because I have no PDA now at this time, to test the communication.
On Monday I hope to get them to leave me one PDA to the ultimate test.

Last edited by barnarasta; 12-18-2015 at 01:46 PM. Reason: sintax
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PDA under Linux ... aihaike Linux - Hardware 5 10-24-2009 05:34 AM
LXer: The GP2x PDA: A PDA focused on games and GNU/Linux LXer Syndicated Linux News 0 05-31-2006 05:03 PM
Free memory if convert Palm PDA to Linux PDA? linuxhippy Linux - Laptop and Netbook 1 12-13-2005 09:23 PM
PDA help. Looking for a good PDA for Linux. qwijibow Linux - Laptop and Netbook 11 10-11-2005 10:30 AM
Linux PDA crofty13 Linux - Laptop and Netbook 2 07-02-2005 11:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration