For Smoking the Ribs: Place ribs, bone side up, on a cutting board. Using paper towels to grip, pull the transparent membrane off the bones. It should come off easily in one large strip (see photo for reference). Rub ribs generously on all surfaces with barbecue rub, then split them into 4- to 5-rib sections with a sharp chef's knife or boning knife. Transfer to a covered container and refrigerate for at least 4 hours and up to overnight.
Meanwhile, in a large bowl, combine pork shoulder, salt, and sugar and toss to coat. Transfer to a zipper-lock bag and refrigerate for at least 4 hours or up to overnight.
Open bottom vent of a charcoal grill completely. Light large charcoal chimney starter filled ⅓ of the way with charcoal briquettes (about 2 quarts). When top coals are partially covered with ash, pour evenly over half of the bottom grill grate. Place a few wood chunks directly on top of charcoal. Set cooking grate in place, cover, and open lid vent completely. Heat until 275°F (135℃), about 5 minutes. Clean and oil cooking grate then arrange ribs, bone side down, on cooler side of grill. Cover, with vents over ribs. Smoke, covered, adjusting vents as needed and adding more coals as needed to maintain a grill temperature between 225°F to 275°F (105℃ to 135℃), and adding a wood chunk every 45 minutes, until ribs show a gentle bend when you lift them and show only slight resistance when a toothpick is inserted between the bones and an instant read thermometer inserted in thickest portion registers between 190°F to 200°F, 4 to 5 hours.
Brush tops and sides of ribs with barbecue sauce, cover, and continue smoking for 10 minutes. Repeat process 2 more times (about ½ cup sauce total), then transfer to a cutting board. Let cool slightly, about 15 minutes.
For Making the McRib Patties: Once cool enough to handle, twist bones out of ribs and discard bones. Roughly chop the meat. Spread on a large plate in a single layer and refrigerate until thoroughly chilled, about 2 hours.
In a food processor, pulse ¼ of the chilled rib meat with ¼ of the pork shoulder until roughly ground, about 12 pulses. Transfer to a large bowl and repeat the pulsing process with the rib meat and shoulder meat in 3 batches, keeping the meat refrigerated until ready to pulse. Toss the pulsed meat together with hands to evenly mix.
Set a double layer of parchment paper measuring 9-by 18-inches on work surface. Transfer meat mixture to the center of parchment paper. Cover mixture with parchment paper, then, using your hands over the parchment, spread mixture out to form a 9- by 18-inch rectangle.
Using a sharp chef's knife and cutting through the parchment paper, cut the large rectangle into 8 individual patties measuring 4 ½ by 4 ½ inches each. Slide the patties with the parchment to a rimmed baking sheet and refrigerate until ready to use. (Patties can be stacked with their parchment paper intact and stored in the refrigerator for up to 3 days, or in a freezer bag in the freezer for several months. If freezing, cook directly from frozen.)
Open bottom vent of charcoal grill completely. Light large charcoal chimney starter filled with charcoal briquettes (6 quarts). When top coals are partially covered with ash, pour evenly over bottom grill grate. Set cooking grate in place, cover, and open lid vent completely. Heat grill until hot, about 500°F (260℃), about 5 minutes. Cover and allow to preheat for 5 minutes.
Clean and oil cooking grate. Transfer prepared patties to grill and sprinkle with remaining spice rub. Cook, flipping once halfway through, until well charred, about 2 minutes per side. Brush patties with barbecue sauce (about 1 cup sauce total), cover, and cook until patties are cooked through and barbecue sauce forms a lacquered glaze, 1 to 2 minutes. remove from grill and transfer to plate. Toast cut sides on grill until golden brown, 1 to 2 minutes.
For Assembling the Sandwiches: Place one patty on each bun bottom. Brush with remaining sauce, and top with pickles, onion, and bun top. Serve.
