Opened 11 years ago

Closed 11 years ago

#10164 closed bug (fixed)

Old PKG files can't be installed anymore

Reported by: waddlesplash Owned by: sil2100
Priority: blocker Milestone: R1/beta1
Component: Applications/PackageInstaller Version: R1/Development
Keywords: Cc: gordonjcp@…, alansearchwell@…
Blocked By: Blocking:
Platform: All

Description

I'm on hrev46250. When you try to install an old .PKG file (any PKG file), no matter where you specify to install it, you get an error.

Example PKG file: http://darkwyrm.beemulated.net/downloads/Paladin.1.3.pkg

Attachments (2)

PackageInstaller.patch (1.5 KB ) - added by puckipedia 11 years ago.
PackageInstaller.2.patch (1.7 KB ) - added by puckipedia 11 years ago.
New version of the patch

Download all attachments as: .zip

Change History (20)

comment:1 by anevilyak, 11 years ago

Priority: highnormal

comment:2 by anevilyak, 11 years ago

Details as to what error you're actually seeing would be helpful. "you get an error." doesn't really yield any useful information for starting to determine where things might be going wrong.

comment:3 by diver, 11 years ago

Component: - GeneralApplications/PackageInstaller
Owner: changed from nobody to sil2100

comment:4 by waddlesplash, 11 years ago

Error is: "The requested package failed to install on your system. This might be a problem with the target package file. Please consult this issue with the package distributor."

Some packages will install some files, but then fail halfway through installation. Perhaps this has something to do with the removal of /boot/common?

comment:5 by bbjimmy, 11 years ago

This is more likely from removing /boot/apps and or the missing ~/config/be.

comment:6 by axeld, 11 years ago

It's just that the PackageInstaller hasn't been updated to the PM yet -- ie. it will try to install applications to locations that it must not/cannot do anymore. It needs to replace the find directory paths with non packaged ones.

I would prefer to make this ticket a release blocker.

comment:7 by X512, 11 years ago

Is is possible just to convert SoftwareValet Package to Haiku Package, or mount it directly without convertation? In such case "non-packaged" folders will be not required.

Last edited 11 years ago by X512 (previous) (diff)

comment:8 by sil2100, 11 years ago

Hello everyone! Thanks for filling in this bug. It's been a while since I last checked out the Haiku source - I will have to familiarize myself with the Haiku PM and see how I could help out to make it work again. Just I guess it might take a bit longer than usually, since there's probably some stuff that I need to get up-to-date knowledge-wise, while I can only spare some limited after-work time.

comment:9 by kallisti5, 11 years ago

It may be kind of cool to have PackageInstaller try and convert the old package installers to hpkg's. They wouldn't need any dependency tracking or anything, just wrapped up so packagefs could mount them.

comment:10 by waddlesplash, 11 years ago

Priority: normalblocker

Making a release blocker as per axeld's request.

comment:11 by diver, 11 years ago

Milestone: R1R1/beta1
Priority: blockernormal

comment:12 by axeld, 11 years ago

Priority: normalblocker

comment:13 by gordonjcp, 11 years ago

Cc: gordonjcp@… added

by puckipedia, 11 years ago

Attachment: PackageInstaller.patch added

comment:14 by puckipedia, 11 years ago

patch: 01

comment:15 by puckipedia, 11 years ago

Don't yet apply, I found some issue

by puckipedia, 11 years ago

Attachment: PackageInstaller.2.patch added

New version of the patch

comment:16 by puckipedia, 11 years ago

Okay, fixed the issue (it now replaces /boot/system with B_SYSTEM_NONPACKAGED_DIRECTORY, and /boot/home/config with B_USER_NONPACKAGED_DIRECTORY)

comment:17 by 6foot3, 11 years ago

Cc: alansearchwell@… added

comment:18 by pulkomandy, 11 years ago

Resolution: fixed
Status: newclosed

Patch applied in hrev46836.

Note: See TracTickets for help on using tickets.