Closed Bug 296390 Opened 20 years ago Closed 19 years ago

'make xpi' fails

Categories

(Calendar :: Internal Components, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mvl, Assigned: mvl)

Details

Attachments

(2 files, 2 obsolete files)

make xpi dies on:
cp libxpical/libxpical.so ./xpi/components
cp: cannot stat `libxpical/libxpical.so': No such file or directory

The filelist needs to be updated, because of all the new calFoo.js components.
OR even better, this should be done automaticly.
Attached patch patch v1 β€” β€” Splinter Review
This patch uses a xpi dir, which contains a modified copy of the lighting
Makefile.in, and packages everything into calendar.xpi. This way,
--enable-calendar still creates a build with calendar enabled without needing
extra steps to install it.
Tested on linux seamonkey.
Comment on attachment 185149 [details] [diff] [review]
patch v1

The install.js in this patch is a copy of the existing install.js, with the
installation of the icons removed. That part is still broken.
The install.rdf that should be in the patch is a copy of the
calendar/install.rdf file. (something went wrong when creating the patch)
Attachment #185149 - Flags: first-review?(mostafah)
Comment on attachment 185149 [details] [diff] [review]
patch v1

Finally, the correct way for building the xpi, well, almost.
Attachment #185149 - Flags: first-review?(mostafah) → first-review+
patch checked in, leaving bug open for further cleanup, like removing the old
xpi targers in Makefile.in
Summary: make xpi fails → 'make xpi' fails
Is this bug the reason calendar extension is not being built as detailed in http://weblogs.mozillazine.org/calendar/2005/11/the_calendar_extensions_status.html
?

Perhaps someone can go to the Third Party Builds forum here http://forums.mozillazine.org/viewforum.php?f=42 and ask someone to try doing some calendar extension builds.

(In reply to comment #5)
> Is this bug the reason calendar extension is not being built as detailed in
> http://weblogs.mozillazine.org/calendar/2005/11/the_calendar_extensions_status.html
> ?

No. Please read the entire bug before commenting (especially comment 4). Then read the blog entiry entry. It would answer your question.
Attached patch remove references to libxpical dir (obsolete) β€” β€” Splinter Review
I tried to make a calendar XPI from the trunk and it seems that the lines referring to the dir libxpical (that doesn't exist any more) in the Makefile are obsolete. At least I had to comment them to get "make xpi" to work fully.
Attachment #206926 - Flags: first-review?(mvl)
Comment on attachment 206926 [details] [diff] [review]
remove references to libxpical dir

make xpi is obsolete. You need to make in the xpi dir.
There is no need to try to fix make xpi. We should just remove it.
Attachment #206926 - Flags: first-review?(mvl) → first-review-
Attached patch Redirect xpi target to xpi dir (obsolete) β€” β€” Splinter Review
OK, I don't usually work on Calendar and got confused (among other things) by the title of this bug. This new patch now removes all the XPI related stuff from calendar/Makefile.in and just redirects "make xpi" to call make in the xpi dir. (I hope I didn't delete too much.)
Attachment #206926 - Attachment is obsolete: true
Attachment #206934 - Flags: first-review?(mvl)
Comment on attachment 206934 [details] [diff] [review]
Redirect xpi target to xpi dir

>-ifndef MOZ_SUNBIRD
>-ifneq ($(OS_ARCH),Darwin)
>-DIRS += xpi
>-endif
>-endif

Just leave that part. Then there is no need for a seperate target to build the xpi. It will be built automaticly. (excpet when building sunbird, but then you don't need an xpi anyway)
Attachment #206934 - Flags: first-review?(mvl) → first-review-
The idea behind removing that part was that if one builds with --enable-calendar one doesn't really need an XPI. But then package doesn't handle the calendar files so I agree that to build the XPI automatically makes more sense.
Attachment #206934 - Attachment is obsolete: true
Attachment #206943 - Flags: first-review?(mvl)
Comment on attachment 206943 [details] [diff] [review]
remove all xpi targets (but nothing else)

r=mvl
Attachment #206943 - Flags: first-review?(mvl) → first-review+
patch checked in
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: