Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#13658 - [jpilot] is not easy to do hotsync
Attached to Project:
Arch Linux
Opened by Daniel YC Lin (dlin) - Wednesday, 04 March 2009, 10:14 GMT
Last edited by Roman Kyrylych (Romashka) - Tuesday, 21 July 2009, 21:59 GMT
Opened by Daniel YC Lin (dlin) - Wednesday, 04 March 2009, 10:14 GMT
Last edited by Roman Kyrylych (Romashka) - Tuesday, 21 July 2009, 21:59 GMT
|
DetailsDescription:
Additional info: jpilot 1.6.2-1 * package version(s) * config and/or log files etc. Steps to reproduce: do hotsync with usb hotplug. I modify the PKGBUILD as build() { cd ${startdir}/src/${pkgname}-${pkgver} # for wait dynamic /dev/pilot apprear when hotsync patch sync.c ${srcdir}/pilot_udev.patch || return 1 ./configure --prefix=/usr --disable-pl-test make || return 1 make DESTDIR=${startdir}/pkg install } and the pilot_udev.patch diff -r b1d2ee43c305 sync.c --- a/sync.c Mon Jul 07 12:26:22 2008 +0800 +++ b/sync.c Mon Jul 07 13:49:53 2008 +0800 @@ -484,8 +484,23 @@ int sd; int ret; struct SysInfo sys_info; + int wait_seconds=10; + struct stat st; *Psd=0; + + jp_logf(JP_LOG_GUI, _("Checking device %s exist for %d seconds\n"), + device, wait_seconds); + while (wait_seconds) { + jp_logf(JP_LOG_GUI, _("wait left %d seconds\n"), wait_seconds); + if (lstat(device, &st) == 0) { + jp_logf(JP_LOG_GUI, _("found %s\n"), device); + break; + } + sleep(1); + wait_seconds--; + } + jp_logf(JP_LOG_GUI, _("Checking finished\n")); sd = pi_socket(PI_AF_PILOT, PI_SOCK_STREAM, PI_PF_DLP); if (sd < 0) { |
This task depends upon
and the PKGBUILD should add as what I've post on PKGBUILD
patch sync.c ${srcdir}/pilot_udev.patch || return 1
It is not work smoothly, I found sometimes it can not work. I don't know how to really fix this problem.