Advanced search
Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings ESbox
Summary Forums Tracker Lists Tasks News SCM Files Wiki

Bugs: Browse | Download .csv

[#3955] Building debian package for template projects does not work on MacOS

Please login

State:
Open
Date:
2009-04-17 08:13
Priority:
3
Submitted By:
Henry Ovaskainen (henryov)
Assigned To:
Ed Swartz (eswartz)
Summary:
Building debian package for template projects does not work on MacOS

Detailed description
Building of debian package fails with all other template projects except gtkhello and hildonhelloworld. Error message
is quite much same with all projects.

"Failed to create a project directory copy on: /home/maemo/.mica/.dpkg-buildpackage-tmp"


-------------
Esbox on MacOS (intrepid server image running on virtualbox)
version: 2.0.0-I20090408

-------------
!ENTRY org.maemo.mica.linux.packages.core 4 0 2009-04-16 17:06:09.218
!MESSAGE Failed to build Debian package
!STACK 0
org.maemo.mica.common.core.MicaException: Failed to create a project directory copy on:
/home/maemo/.mica/.dpkg-buildpackage-tmp
	at org.maemo.mica.linux.packages.core.debian.DebianPackageBuilder.copyProjectToWorkingDir(DebianPackageBuilder.java:215
)
	at org.maemo.mica.linux.packages.core.debian.DebianPackageBuilder.createDebianPackage(DebianPackageBuilder.java:121)
	at org.maemo.mica.linux.packages.core.debian.DebianPackageBuilder.run(DebianPackageBuilder.java:301)
	at org.maemo.mica.linux.packages.core.debian.DebianPackageBuilder$1.runInWorkspace(DebianPackageBuilder.java:277)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.core.runtime.CoreException: File not found: /Users/maemo/Public/workspace/hildongui/conf28789.


*
*

maemos-mac-mini:hildongui maemo$ pwd
/Users/maemo/Public/workspace/hildongui
maemos-mac-mini:hildongui maemo$ 
maemos-mac-mini:hildongui maemo$ ls -la
total 1624
drwxr-xr-x  39 maemo  staff    1326 Apr 16 17:04 .
drwxr-xr-x  20 maemo  staff     680 Apr 16 17:00 ..
lrwxrwxrwx   1 maemo  staff      14 Apr 16 17:01 conf28789 -> conf28789.file
drwxr-xr-x   3 maemo  staff     102 Apr 16 17:01 conf28789.dir
lrwxrwxrwx   1 maemo  staff      14 Apr 16 17:01 conf29309 -> conf29309.file
drwxr-xr-x   3 maemo  staff     102 Apr 16 17:01 conf29309.dir

Followup

Message
Date: 2009-10-21 14:02
Sender: Arto Hyvarinen

Verified with Esbox_build.551 in Mac OS X 10.6.
Date: 2009-09-11 19:42
Sender: Ed Swartz

Fixed in trunk rev 2770

(There will still be some weirdness on MacOS due to the buggy
Samba.  The bug was caused by incorrectly making a test softlink
point to itself, leading to the recursive copy attempt which
caused the failure.)

You'll need to delete existing projects (fully, from the host
side) before trying the fix.
Date: 2009-09-09 14:07
Sender: Arto Hyvarinen

This bug still exist with C and C++ sharedlib templates.
Tested with mica_esbox_pluthon_3.4.2_build.467_prefinal_candidate
.

!ENTRY org.maemo.mica.linux.packages.core 4 0 2009-09-09
16:51:50.394
!MESSAGE Failed to generate Debian package structure
!STACK 0
org.maemo.mica.common.core.MicaException: Failed to create a
project directory copy on:
/home/maemo/shared/workspace/sharedlib/.dh_make-tmp
	at org.maemo.mica.internal.api.linux.packages.core.debian.Debian
PackageStructureGenerator.copyProjectToTempWorkingDir(DebianPacka
geStructureGenerator.java:202)
	at org.maemo.mica.internal.api.linux.packages.core.debian.Debian
PackageStructureGenerator.execute(DebianPackageStructureGenerator
.java:147)
	at org.maemo.mica.internal.api.linux.packages.core.debian.Debian
PackageStructureGenerator$1.runInWorkspace(DebianPackageStructure
Generator.java:504)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(
InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.core.runtime.CoreException: File not found:
/Users/maemo/Public/workspace/sharedlib/.__testdir__.
	at org.eclipse.core.internal.filesystem.Policy.error(Policy.java
:55)
	at org.eclipse.core.internal.filesystem.local.LocalFile.openInpu
tStream(LocalFile.java:365)
	at org.eclipse.core.filesystem.provider.FileStore.copyFile(FileS
tore.java:217)
	at org.eclipse.core.filesystem.provider.FileStore.copy(FileStore
.java:140)
	at org.eclipse.core.internal.filesystem.local.LocalFile.copy(Loc
alFile.java:109)
	at org.maemo.mica.common.core.EFSFileUtils.copyFile(EFSFileUtils
.java:130)
	at org.maemo.mica.common.core.EFSFileUtils.copyNoParent(EFSFileU
tils.java:115)
	at org.maemo.mica.internal.api.linux.packages.core.debian.Debian
PackageStructureGenerator.copyProjectToTempWorkingDir(DebianPacka
geStructureGenerator.java:199)
	... 4 more
Caused by: java.io.FileNotFoundException:
/Users/maemo/Public/workspace/sharedlib/.__testdir__ (Too many
levels of symbolic links)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106
)
	at org.eclipse.core.internal.filesystem.local.LocalFile.openInpu
tStream(LocalFile.java:356)
	... 10 more
Date: 2009-09-09 14:06
Sender: Arto Hyvarinen

This bug still exist with C and C++ sharedlib templates.
Tested with mica_esbox_pluthon_3.4.2_build.467_prefinal_candidate
.

!ENTRY org.maemo.mica.linux.packages.core 4 0 2009-09-09
16:51:50.394
!MESSAGE Failed to generate Debian package structure
!STACK 0
org.maemo.mica.common.core.MicaException: Failed to create a
project directory copy on:
/home/maemo/shared/workspace/sharedlib/.dh_make-tmp
	at org.maemo.mica.internal.api.linux.packages.core.debian.Debian
PackageStructureGenerator.copyProjectToTempWorkingDir(DebianPacka
geStructureGenerator.java:202)
	at org.maemo.mica.internal.api.linux.packages.core.debian.Debian
PackageStructureGenerator.execute(DebianPackageStructureGenerator
.java:147)
	at org.maemo.mica.internal.api.linux.packages.core.debian.Debian
PackageStructureGenerator$1.runInWorkspace(DebianPackageStructure
Generator.java:504)
	at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(
InternalWorkspaceJob.java:38)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.eclipse.core.runtime.CoreException: File not found:
/Users/maemo/Public/workspace/sharedlib/.__testdir__.
	at org.eclipse.core.internal.filesystem.Policy.error(Policy.java
:55)
	at org.eclipse.core.internal.filesystem.local.LocalFile.openInpu
tStream(LocalFile.java:365)
	at org.eclipse.core.filesystem.provider.FileStore.copyFile(FileS
tore.java:217)
	at org.eclipse.core.filesystem.provider.FileStore.copy(FileStore
.java:140)
	at org.eclipse.core.internal.filesystem.local.LocalFile.copy(Loc
alFile.java:109)
	at org.maemo.mica.common.core.EFSFileUtils.copyFile(EFSFileUtils
.java:130)
	at org.maemo.mica.common.core.EFSFileUtils.copyNoParent(EFSFileU
tils.java:115)
	at org.maemo.mica.internal.api.linux.packages.core.debian.Debian
PackageStructureGenerator.copyProjectToTempWorkingDir(DebianPacka
geStructureGenerator.java:199)
	... 4 more
Caused by: java.io.FileNotFoundException:
/Users/maemo/Public/workspace/sharedlib/.__testdir__ (Too many
levels of symbolic links)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106
)
	at org.eclipse.core.internal.filesystem.local.LocalFile.openInpu
tStream(LocalFile.java:356)
	... 10 more
Date: 2009-08-05 06:56
Sender: Juha  Hentunen

Verified using Esbox build mica_esbox_pluthon_3.4.2 build.371.
Date: 2009-06-30 22:38
Sender: Ed Swartz

Worked around this issue > 20090630
Date: 2009-06-30 20:14
Sender: Ed Swartz

Softlinks cannot be deleted, meaning these are nonexistent entries
which cannot be copied.  I can work around this.

This is a Samba bug.  Samba 3.0.25b-apple (which was my version,
via "smbclient --version") is too old.  There is a
fix in 3.0.25c.

http://lists.samba.org/archive/samba-technical/2007-July/054534.h
tml

Attached Files:

Name Download
No Files Currently Attached

Changes:

Field Old Value Date By
ResolutionFixed2009-10-21 14:02arhyvari
ResolutionNone2009-09-14 15:46eswartz
VersionNone2009-09-11 19:45eswartz
ResolutionVerified2009-09-09 14:06arhyvari
ResolutionFixed2009-08-05 06:56juhentun1
ResolutionAccepted as a Bug2009-06-30 22:38eswartz
ResolutionNone2009-06-29 20:43eswartz
assigned_tonone2009-06-29 20:43eswartz
File Added463: hildongui_nok.log2009-04-17 08:13henryov

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment