Opened 6 years ago

Closed 6 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:
Has a Patch: yes 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 6 years ago.
PackageInstaller.2.patch (1.7 KB) - added by puckipedia 6 years ago.
New version of the patch

Download all attachments as: .zip

Change History (20)

comment:1 Changed 6 years ago by anevilyak

Priority: highnormal

comment:2 Changed 6 years ago by anevilyak

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 Changed 6 years ago by diver

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

comment:4 Changed 6 years ago by waddlesplash

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 Changed 6 years ago by bbjimmy

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

comment:6 Changed 6 years ago by axeld

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 Changed 6 years ago by X512

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 6 years ago by X512 (previous) (diff)

comment:8 Changed 6 years ago by sil2100

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 Changed 6 years ago by kallisti5

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 Changed 6 years ago by waddlesplash

Priority: normalblocker

Making a release blocker as per axeld's request.

comment:11 Changed 6 years ago by diver

Milestone: R1R1/beta1
Priority: blockernormal

comment:12 Changed 6 years ago by axeld

Priority: normalblocker

comment:13 Changed 6 years ago by gordonjcp

Cc: gordonjcp@… added

Changed 6 years ago by puckipedia

Attachment: PackageInstaller.patch added

comment:14 Changed 6 years ago by puckipedia

Has a Patch: set

comment:15 Changed 6 years ago by puckipedia

Don't yet apply, I found some issue

Changed 6 years ago by puckipedia

Attachment: PackageInstaller.2.patch added

New version of the patch

comment:16 Changed 6 years ago by puckipedia

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 Changed 6 years ago by 6foot3

Cc: alansearchwell@… added

comment:18 Changed 6 years ago by pulkomandy

Resolution: fixed
Status: newclosed

Patch applied in hrev46836.

Note: See TracTickets for help on using tickets.