Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Package installation possible BUG

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    8 Posts 4 Posters 3.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dvserg
      last edited by

      File /etc/inc/pkg-utils.inc
      Func install_package_xml

      
      		/*   if a require exists, include it.  this will
      		 *   show us where an error exists in a package
      		 *   instead of making us blindly guess
      		 */
      		if($pkg_config['include_file'] <> "") {
      			$static_output = "Loading package instructions...";
      			update_output_window($static_output);
      			fwrite($fd_log, "require_once('include_file')\n");
      
      # here variable $config['installedpackages']['package'][$pkgid]['name']  is exists
      
      			require_once($pkg_config['include_file']);
      
      # here variable $config['installedpackages']['package'][$pkgid]['name']  undefined
      		}
      

      If i install package squid3 (and other), then i have installed menu/service/package but not in installed_packages list.

      SquidGuardDoc EN  RU Tutorial
      Localization ru_PFSense

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        This sounds like the same thing I'm seeing with the OpenVPN Client Export package, it works fine, but it's not listed for uninstall. I opened a ticket, if you find a cause dvserg please comment on this ticket.
        http://redmine.pfsense.org/issues/show/309

        1 Reply Last reply Reply Quote 0
        • jimpJ
          jimp Rebel Alliance Developer Netgate
          last edited by

          I thought I opened a ticket for this but perhaps not.

          Any time a require is done on something that includes config.inc again, it blows away $config and package data is lost.

          Usually this can be fixed by altering the package's .inc file to stop including things that are no longer necessary.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • D
            dvserg
            last edited by

            Maybe say what config already loaded ?

            ! do not reload config file from packages include !

            global $config_inc_loaded ;
            $config_inc_loaded = true;
            require_once($pkg_config['include_file']);

            My packages after reinstall is showed in installed list.

            SquidGuardDoc EN  RU Tutorial
            Localization ru_PFSense

            1 Reply Last reply Reply Quote 0
            • E
              eri--
              last edited by

              config.inc is not anymore required neither exists in 2.0 !

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                If it's not supposed to exist on 2.0, perhaps it should be removed during upgrades. It's still present on my 2.0 test box.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • D
                  dvserg
                  last edited by

                  Probably need make temporary fix. This behavior can crash of config.xml.

                  SquidGuardDoc EN  RU Tutorial
                  Localization ru_PFSense

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    Ermal, is it really supposed to be gone in 2.0? I still show it as being present in the git repo in etc/inc/config.inc

                    And it's still included in quite a few places in /etc/rc, and in /usr/local/www and I imagine it is used in other places as well.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.